i am trying to configure Farsi language as default language for application
he is my application PreInitialize()
public override void PreInitialize() { //Add/remove languages for your application Configuration.Localization.Languages.Add(new LanguageInfo("en", "English", "famfamfam-flag-england")); Configuration.Localization.Languages.Add(new LanguageInfo("fa", "Farsi", "famfamfam-flag-ir",true)); Configuration.Localization.Languages.Add(new LanguageInfo("tr", "Türkçe", "famfamfam-flag-tr"));
i have also disbaled //Configuration.Modules.Zero().LanguageManagement.EnableDbLocalization(); i have also added the following file to Localization/soure directory in core project myapplication-fa.xml
but i always get english language as default language
so what is problem ? how can i set default language ?
1 Answer(s)
-
0
Did you set "myapplication-fa.xml" as embedded resource? If not works, try to add Farsi before English. If this works, we check the code if there is a bug.