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?

10replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • 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.  

    Like
  • 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.  

    Like
    • Bobo
    • TESTXFREE
    • Bobo
    • 9 mths 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!

    Like
  • 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

    Like
  • Or simplyfied without a Settings table:

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

    Steven

    Like
  • 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?

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

    Like
  • 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!

    Like
  • 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!

    Like
  • Sorry for the double post while mid editing. 

    Like
Like Follow
  • Status Answered
  • 8 mths agoLast active
  • 10Replies
  • 608Views