It is actually very simple, it will not take much time.
The main idea is that you write something like "i18n:xxx.com_name" instead of "Company Name" into the text property of a label that stands in front of a field that holds a company name.
xxx is a shortcut for your project, so that you have an own name space with that prefix.
I would choose only one character as a prefix, so that you can type those i18n codes as fast as possible.
I also found it very comfortable to have unique names for all fields (with a prefix like com_ for all fields in a table 'companies') and then write the label exactly like the field name, as in the example above.
Did you already have a look at the Servoy wiki?
https://wiki.servoy.com/display/public/DOCS/Internationalization+-+I18NIn the Servoy menu "Actions/Show i18n dialog" you can create the i18n keys.
We do it totally different, however, by creating the i18n file ourselves from our own dictionary which holds all fields of all tables (keeping that in sync to the tables is a bit of a challenge...).
After doing so, we start Servoy new so that it will read our freshly created i18n keys.
The i18n files can be found in the ressources\messages folder of your workspace, like this.
The main i18n file holds the default translation which is usually English
- res.png (28.01 KiB) Viewed 2498 times
The format of those files is simple, Example (our prefix is 'bob'):
- Code: Select all
bob.bp_is_freelancer=Freelancer
bob.bp_is_imported_record=Imported Record
bob.bp_is_reference_customer=Reference Customer
bob.bp_key_account_id=Key Account
bob.bp_key_account_manager_id=Key Account Manager
bob.bp_last_customer_invoice=Last Customer Invoice
bob.bp_last_customer_order=Last Order
bob.bp_last_purchase_order=Last Purchase Order