Skip 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.

Multilingual script?

Featured Replies

Hi,

What would be the best practice to develop multilingual script?

Some script have string variables and I would like to make the solution multilingual.

I though about a "getText (stringID, langCode)" custom function that would fetch the string from a global variable, but I'm not sure about this practice. Otherwise, I don't think creating a script to fetch the data is best method.

Example :(

Set Variable [$title; getText (4; "EN")];

Set Variable [$msg; getText (1; "EN")];

Show custom dialog [$title; $msg];

Thanks for help

If you had a string table that you could load in to an array of global variables on startup via a looping script, or a single script step.

$$strings[1], $$strings[2], $$strings[3]

the first could be a return sep list of english and the second be Spanish, etc.

This way you could modify them and not have to change the CF should the strings need to be modified.

You can use your CF to grab the known value from the appropriate language.

getText ( 4 ; 2 )

GetValue ( $$strings[ 2 ] ; 4 )

  • Author

I was thinking more of reloading the global list via a script if the user interface changed value.

I think there's no more need to set the language in the fetch function. Since the global list would be the language the user interface would be.

The list could be in this format

English

Do you really want to delete this record?

Create a new record?

...

French

Désirez-vous vraiment supprimer cet enregistrement?

Créer un nouvel enregistrement?

...

Spanish

Sorry, no habla spanol

Their could also be some place holders for some parameters.

  • Author

What would be the best way to create a catalog for such usage?

Creating a distinct field for each message?

or

Creating a single field with let say a 1000 repetitions?

Thanks

  • 4 years later...

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.