Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Translation of user interface using a table

Featured Replies

  • Newbies

I am new to FM and a novice with relational databases and can't figure out how to do this. I have a DB I need to translate and allow users to switch the language (user interface) on the fly. My thinking was to do the following:

1- build a "Dictionnary" table with: LabelID, Labelname, French, English, Spanish

2- On existing DB, create "text_items" (using labelnames) using for displaying titles, field labels, etc...

3- Have a global store the language in use

4- When the user clicks a button (or drop down), change the all the user interface "text_items" by using the "Dictionnary table" and the global variable

Here are my questions:

A- Is that the best way to do it? What else?

B- How do I implement my approach? I have tried mergefield, relationship, calculations, but cannot get around to do what I need...

Thanks for the help,

Greetings Nanoyow.

I think you are trying to have field labels and static interface text switch languages with a selection in a drop down list?

You could have a table "LanguageLabels" that would have text fields

Language

Name

Phone

Label3

Label4...

Each record would have all the labels for an individual language.

Then, in your main table, create a globaltext field (formatted as a drop down list)"gLanguage" and relate it to LanguageLabels::Language

you can then just use merge fields from the related LanguageLabel::Label on your UI.

HTH

-Raz

  • Author
  • Newbies

Wow... It seems so easy put this way. I was trying to store info by LabelName (row) and language (column), but now understands it is the other way around. That now makes the relationship straightforward.

I will definitely try that!

Thanks Raz,

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.