Base solution for your next web application
Open Closed

Can not find 'MainMenu' in localization source 'Abp'! #6560


User avatar
0
Leonardo.Willrich created

Hi,

I am getting a Warn in my log files in the server:

naries.DictionaryBasedLocalizationSource - Can not find 'MainMenu' in localization source 'Abp'!

It only happens when my application is published and running in IIS server. In my local develop machine it doesn't happen.

Futhermore, in my .xml file I have it specified: <text name="MainMenu">Main menu</text>

Some idea what is going on?

Cheers.


9 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can refer to the relevant discussion to see if it works for you?https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2218

  • User Avatar
    0
    Leonardo.Willrich created

    Hi, I have already read that question, but it doesn't work for me.

    I have in my AbpLanguages table just one record:

    And in my Source folder I have just one file with en-GB culture:

    I wonder if somehow it is looking for "en" culture instead of "en-GB". Is this possible?

  • User Avatar
    0
    aaron created
    Support Team

    Check the default language in settings table.

  • User Avatar
    0
    Leonardo.Willrich created

    Hi Aaron,

    I have one line with TenantId = Null and UserId = Null

    Do I need to have this configuration per Tenant?

  • User Avatar
    0
    aaron created
    Support Team

    No, I believe you don't need.

    Try removing default language suffix from XML file name.

  • User Avatar
    0
    Leonardo.Willrich created

    Do you mean changing "en-GB" to "en"?

    Do I need to change from Language and Settings table as well?

  • User Avatar
    0
    aaron created
    Support Team

    No, I mean changing Avalanche-en-GB.xml to Avalanche.xml.

    No need to change elsewhere.

  • User Avatar
    1
    Leonardo.Willrich created

    Resolved.

    I changed the culture from "en-GB" to "en" and filename to "Avalanche-en.xml".'

    Changed the settings to "en" be the default language.

  • User Avatar
    0
    Leonardo.Willrich created

    Changing the culture, I got some erros parsing date from parameters and database. So, I left the original culture, I just added one more language in the AbpLanguages table with name = 'en'.