Base solution for your next web application
Open Closed

Configuring Default Language For Application #1305


User avatar
0
arash created

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)
  • User Avatar
    0
    hikalkan created
    Support Team

    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.