Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4003 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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 )

Posted

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.

Posted

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

This topic is 4003 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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