Last post Jan 15, 2018 02:16 AM by AngelinaJolie
Jan 09, 2018 12:45 PM|Lacrim|LINK
Hi guys, sorry for boddering but after few hours of serching the internet for a loggical solution I've finnaly surrenderd and thought that you could help me.
The problem is that when I run my app locally filds are translated (the default asp .net EF model translation), as shown below on the image are corrent depending on my culture info pl-PL. But after pasting my project on production serwer languge of the text
is always in English... shown below. Other texts that are not auto but using resuorces files work fine. When I change the culture info the language changes - only the default translation are not correct...
Oh and meybe thats important too: locally when I change to EN texts are also correct (in English). I've copied all files that are in my bin folder to the production server.
Jan 10, 2018 06:09 AM|AngelinaJolie|LINK
But after pasting my project on production serwer language of the text is always in English..
Sir, I guess that your production server 's languge is English. So you hope people who in Japan view the site could get the default language( "pl-PL", not English).
I am not sure your code looks like, but please add this code, it will fix your current question, to set default client language when custom view your site the first time;
You want pl-PL as default language :
Then add it in RouteConfig, or global file;
public class RouteConfig
public static void RegisterRoutes(RouteCollection routes)
Thread.CurrentThread.CurrentCulture = new CultureInfo("pl-PL");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("pl-PL");
With regards, Angelina Jolie
Jan 10, 2018 10:19 AM|Lacrim|LINK
I'm doing what You wrote above... the languge which the user is using is viewed on screen but regarding the correct languge and manual language change only the translations being in my resources file are used. I'm writing only about default translations
like 'required' filed.
Jan 15, 2018 02:16 AM|AngelinaJolie|LINK
but regarding the correct languge and manual language change only the translations being in my resources file are used. I'm writing only about default translations like 'required' filed.
Sorry, but I can't imagine your real requirement, could you tell me your current code, or what steps I can do for you.
I'm writing only about default translations like 'required' filed.
and I guess that you mean that to select the default translation.
if so, I recommend this http://afana.me/archive/2011/01/14/aspnet-mvc-internationalization.aspx/ , it tells full steps.