Base solution for your next web application
Open Closed

adding new language #3282


User avatar
0
factura created

Hi,

I have a question regarding the language module. I have an multi tenant application (asp.net mvc 5 & jQuery) running on production. Now I want to support also another language. I have added an xml file in the core project. I also added an entry to the table in the database manually. I can see in the dropdown menu that the language is added but it is not translating. What do I have to do more in order to work appropiate?

Thanks in advance.


8 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Actually it is better to add new language from UI but your version should work. Which language did you added ? Can you try to delete that from DB and add it from UI ? Also be sure that added language code must match with language code in your xml's name.

    Thanks.

  • User Avatar
    0
    factura created

    Hi,

    I've added the dutch language. Culture code in xml is culture="nl" and the xml file Factura-nl.xml

  • User Avatar
    0
    factura created

    Hi,

    If I add a new language with it's translation via UI for every tenant that's too much work.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Actually I only mean the language itself not the all keys. By the way, did you add your localization source according to this doc <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Localization#DocLocalizeXml">https://aspnetboilerplate.com/Pages/Doc ... ocalizeXml</a> ?

    Thanks.

  • User Avatar
    0
    factura created

    Hi,

    I added via the UI a language and also in Visual Studio the [name]-nl-NL.xml file. I can see in the dropdown the language is added but nothing is being translated.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Factura,

    Can you send your project to <a href="mailto:[email protected]">[email protected]</a> ?

    Thanks.

  • User Avatar
    0
    michaelhilgers created

    Hi,

    I got the same problem.

    Do you have a solution for it ?

    Thanks !

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @MichaelHilgers,

    The problem @Factura having was related to not marking localization files as embeded resource. You can try to mark your localization xml files as Embeded Resource and see if it works.

    Thanks.