Multiple languages in client and model

Good morning!

Is there a possibility to display a translation of the model application in the client UI? Currently, our whole application is built in English. However, there is some demand within our company for a Spanish version. Does a translate function exist? Thank you!

Yes, it is possible to translate model properties in custom languages like Spanish. The engine itself is currently only available in English and Dutch, so you will still see English text for built-in functionality and buttons such as ‘Edit’ and ‘Save’ etc.

Here is an example how to translate the names of collections Users and Passwords (as defined in your model) to another language. In this case we choose Dutch as the second language.

The main language is defined in your systems/client/settings.alan file:

application creator: "Kjerner"
application name: "Alan Application"
anonymous login: disabled
csv actions: enabled
report limit: 10000
announcement: "" [ ]
language: "English" // descriptive name of the language used for all model properties, used for the menu
engine language: english // language of default buttons like Edit and Save; options: dutch, english
generator: 'default'

If you want to translate model property names, you define them in systems/client/phrases.alan:

'Passwords'
'Users'

Then you create a translation file in systems/client/translations/NL.alan:

language: "Nederlands"
engine language: dutch
	'Passwords' : "Wachtwoorden"
	'Users' : "Gebruikers"

This will give a menu with two options:

After switching to ‘Nederlands’, the Users and Passwords collections will have their names translated:

1 Like