Last post Oct 05, 2012 01:55 PM by Shaahin
Oct 21, 2009 02:41 PM|ilearn|LINK
I would like to create a bilingual web application and to do so I use Resources files.
If my web page (lets say Default.aspx) is in the root folder I create resource files (Default.aspx.resx and Default.aspx.fr.resx in the App_LocalRessources folder) and everything works fine.
But If i have a web page in a sub foider (lets say test.aspx inside a ~/Test folder), I can't just create resource files (test.aspx.resx and test.aspx.fr.resx in the App_LocalRessources folder). It don't work.
Does anybody know how to make this works? Or any other way of creating bilingual web application will be appraciated.
Oct 22, 2009 11:38 AM|ilearn|LINK
Oct 22, 2009 02:04 PM|ilearn|LINK
I've found the solution. Just add an App_LocalResources file in the subfolder.
This means, if you have a file in ~/TestFolder/Test.aspx file
You should also have ~/TestFolder/App_LocalResources/Test.aspx.resx, and Test.aspx.fr.resx in the same folder.
Hope this will help someone.
Oct 30, 2009 09:08 PM|Ich|LINK
great you already found the answer. Just one short additionall information: You might also create subdirectories within App_LocalResources, so you hat App_LocalResources/Test.aspx.resx, and App_LocalResources/fr/Test.aspx.fr.resx. This makes it (for me)
easier to differ between the languages.
Oct 05, 2012 01:55 PM|Shaahin|LINK
Hi ileran, thanx, it was nice challenge and explanation, actually i used too much time, now I have to revise my app, at least, I have better app now, thanx again.