Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Native multilanguage support and nuTranslate()

Questions related to using nuBuilder Forte.
Post Reply
capstefano
Posts: 28
Joined: Sat Jan 21, 2023 12:17 am
Has thanked: 26 times
Been thanked: 4 times

Native multilanguage support and nuTranslate()

Unread post by capstefano »

Hi everyone,
I’m working on an app with multilingual support in nuBuilder, but the docs on this topic feel a bit thin for non-pros like me. I’ve been trying to figure out how things work and just wanted to check if I got this right (I've analyzed some system forms):

All object labels and table titles should get automatically translated into the user’s language, as long as there’s a matching record in the zzzzsys_translate table.

The nuTranslate() function can be used in custom code and follows the same logic above.

Did I miss something? Or am I misunderstanding how this works?

Thanks a lot for the awesome work you’re doing with nuBuilder!
kev1n
nuBuilder Team
Posts: 4449
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 75 times
Been thanked: 488 times
Contact:

Re: native multilanguage support and nuTranslate()

Unread post by kev1n »

Hello,

You’ve understood the basics correctly.

Yes — if there’s a matching entry in zzzzsys_translate for the object’s text, nuBuilder will display the translation according to the user’s chosen language.
- nuTranslate(): Exactly — you can wrap any custom text with nuTranslate() and it will look up the same table.

A couple of small points that might help:
- Translations only work from English as the base language. In practice this means you should build your forms in English, and then provide translations into the user’s language.
- If a translation isn’t found for the current language, nuBuilder will fall back to the original English text.
- You can add or edit translations directly in the Translations form (Table zzzzsys_translate).
- Language is set per user record in the user form (Table zzzzsys_user, field sus_language).

:arrow: Also see Wiki
capstefano
Posts: 28
Joined: Sat Jan 21, 2023 12:17 am
Has thanked: 26 times
Been thanked: 4 times

Re: native multilanguage support and nuTranslate()

Unread post by capstefano »

thanks for your support!
Post Reply