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
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