.net - Change the "(default)" language in a C# app -
i'm making app in c#, lot of forms , other stuff. wanted localize it, used integrated localization functions in vs. app in french (cause am) english language translation resxes, on codeplex other developers doesn't speak french, want alter "default" language in app , resx files can translate other languages without reading french. cause when take language in vs form designer, shows default language (here, french). tried rename files, problem form properties stored in default resx, french one, if rename, break stuff. possible alter default language english?
edit: think need more precise. app in french. localized in english. there mainwindow.resx contains form properties + original french localization , mainwindow.en-us.resx contains english language localization. if in designer, in "language" take "(default)" shows me mainwindow.resx french, , if want translate, shows me french texts. create translation more easy other developers, want create mainwindow.resx english language localization , create seperate mainwindow.fr-fr.resx. tried alter "neutral language" in assemblyinfo.cs, no effect.
you can alter currentculture , currentuiculture in application through code. it's same approach used alter apps language @ runtime.
have @ code:
thread.currentthread.currentculture = new cultureinfo("en-us"); thread.currentthread.currentuiculture = new cultureinfo("en-us"); hope helps.
c# .net localization
No comments:
Post a Comment