Last post Mar 04, 2009 03:51 PM by MrPeds
Feb 20, 2009 06:18 PM|MrPeds|LINK
I have inherited some aspx pages code that has a variety of aspx markup and HTML .
We have got a requirement to localize the pages to be viewed in spanish, japanese, english and german.
I have found some information but I cant seem to work out which kind of syntax to localize code like this:
Some text to localise
I presume it is possible to localize this but dont know how.
Our requirement is that the page should be localized automatically based on the browser setting so I presume I need top set UICulture="auto" and Culture="auto" in the page declaration. I would also like to have 1 resx file per page - but am not sure if
the above will work without using global resource files.
Later on in the page a gridview is defined with markup such as below. I am hoping there is one syntax i can use to cope with both examples.
Any suggestions are appreciated.
Feb 21, 2009 01:28 AM|kwanann|LINK
You can take a look at http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx. It explains localization for asp.net :)
Mar 04, 2009 03:51 PM|MrPeds|LINK
Thank you for your response. This has helped me a great deal!
One tip i'd like to give people is that when you local resources (.resx files) you must have the files local to the aspx page in a app_localresources folder. I made the mistake thinking that there was only 1 app_localresources folder in a website. If
you have stored your aspx pages into different folders then you will need a app_localresources folder within each sub folder.