Translations
The Translations tab gathers every text of the project on a grid, one column per language, so you can translate the application without hunting for texts window by window.
Application languages
"Add a language" offers sixteen languages:
- French: France, Canada, Belgium, Switzerland;
- English: United States, United Kingdom;
- German, Spanish, Italian;
- Portuguese: Portugal, Brazil;
- Dutch, Polish, Japanese, Simplified Chinese, Arabic.
The first language is the design language, the one in which you write the texts; double-clicking another language makes it the design language. "Remove this language" deletes a language and its translations.
Each language shows its progress: "Complete", or the number of texts still to translate.
The text grid
Each row is a text, with its location (for example FEN_Clients › BTN_Valider › texte) and its translation in each language. The search filters by text or by location; "Untranslated texts only" keeps only the incomplete rows.
The texts gathered are:
- the project description and the window titles;
- the texts, placeholders, tooltips, items and column titles of controls;
- the messages and titles of actions;
- the labels of entities and fields;
- the titles and fixed texts of reports.
The message catalog
Texts used in code go into the message catalog: a key (welcome, stock_error…) and its translation in each language. In Argile, translate("welcome") returns the message in the current language.
At run time
The application starts in the system language if it offers it (or a variant: a system in fr-CA gets fr-FR), otherwise in the design language. The "Change language" action and the set_language("en-US") function change the language on the fly; language() returns the current language.