0

Labels in different languages

Well there it is. I now have the need to present views and forms in two different languages to a customer. This is a go or no go thing for him. I cannot see any other solution than to have to distinct databases in different languages, but it is not what he wants. He is thinking of having two different sets of people using the system in 2 different countries. I cannot see anyway to have labels change dinamically givena global setting so what can I do?

Any ideas?

10 replies

null
    • Nick_Massie
    • 3 yrs ago
    • Reported - view

    The language is set by the browser.  You could possibly set up two fields for each field.  For example if language is english then field a else field b.  You would have to trigger after create to create new entries in each other field.  It would take a lot of work but I think it is very possible.  

    • Nick_Massie
    • 3 yrs ago
    • Reported - view

    The language is set by the browser.  You could possibly set up two fields for each field.  For example if language is english then field a else field b.  You would have to trigger after create to create new entries in each other field.  It would take a lot of work but I think it is very possible.  

    • TESTXFREE
    • Bobo
    • 3 yrs ago
    • Reported - view

    Follow!!
    I have the same problem
    The solution suggests form Nick I think is not a good solution for complex applications with many fields!

    • Ninox partner
    • RoSoft_Steven.1
    • 3 yrs ago
    • Reported - view

    You can also hide the labels(but name them in the language of the developper) of every field and put formula fields instead for displaying the label with a value depending on the language setting.
    e.g. : if I have a 'Settings' table with a choice field 'Language' containing 4 options like 1 English - 2 French - 3 German - 4 Dutch you can set up your formula for the labels like this:

    switch record(Settings,1).Language do
    case 1:
    "Company"
    case 2:
    "Interprise"
    case 3:
    "Unternehmen"
    case 4:
    "Firma"
    end

    Styling the formula fields with the same background color as the form and hiding the labels of themselves would display them like they are labels.

    Steven

    • Ninox partner
    • RoSoft_Steven.1
    • 3 yrs ago
    • Reported - view

    Or simplyfied without a Settings table:

    switch clientLang() do
    case "en":
    "Company"
    case "fr":
    "Interprise"
    case "de":
    "Unternehmen"
    end

    Steven

    • Peter_Romao
    • 3 yrs ago
    • Reported - view

    Thanks for your inputs guys. I have made 2 different databases with two different solutions. How can I share them with you and the forum users?

    • Nick_Massie
    • 3 yrs ago
    • Reported - view

    You can post them on the Webinar Teams english or german.  If you send an email to support@ninox.com they can invite you.  

    • Peter_Romao
    • 3 yrs ago
    • Reported - view

    Webinar EN 2021?

    I'm already there, thanks. I'll upload them there. Hope to get some feedback and discuss this further with you and others.

    cheers!

    • Peter_Romao
    • 3 yrs ago
    • Reported - view

    Webinar EN 2021?

    I'm already there, thanks. I've uploaded them there. Hope to get some feedback and discuss this further with you and others.

    The 2 databases are called Language Selection and Language Selection 2 with a Bright Red Info icon. Enjoy!

    • Peter_Romao
    • 3 yrs ago
    • Reported - view

    Sorry for the double post while mid editing. 

Content aside

  • Status Answered
  • 3 yrs agoLast active
  • 10Replies
  • 659Views