Page Localizing question

S

SushiSean

I have question about pages localizability.
So for example I have 3 pages on my site
==================
main.aspx
users.aspx
products.aspx
==================
I want make Localizing for them. For this I add App_LocalResources folder
and put there
3 files for default language- main.aspx.resx, users.aspx.resx,
products.aspx.resx
and 3 files for russian language - main.aspx.ru.resx, users.aspx.ru.resx,
products.aspx.ru.resx

And can switch between them using thread culture. Something like this
CultureInfo culture = new CultureInfo("ru");
System.Threading.Thread.CurrentThread.CurrentUICulture = culture;

So it is works, but if I have on site 20 pages and I need support 10
languages in App_LocalResources folder I need have 200 language pages! It is
not useful at all.

So the question is - how I can one resx page per language for all pages on
site?
The problem it works only if resurce page have the same name as page, if not
it doesn't work. Exist any way to change it?

How I can make work Localizing for page users.aspx if I have only one file
per language - like this engish.resx, russian.resx, franch.resx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top