PACo supports a multi-language implementation:

  • All canvas components which show text support this.
  • The header contains functionality to show a languages menu to be able to switch to another language.
  • The canvas app PACoCo has an implementation to define the default language by using a parameter.

Text is not automagically translated.

The canvas app PACoCo contains a multi-language implementation. Here, a translation table containing all text translations is used. This table is an imported Microsoft Excel table with the following structure:

  • Column 1
    • Name: ID
    • This column contains an unique number per language for the location(s) where the text must be displayed.
  • Column 2
    • Name: Language
    • This column contains an identifier for the language.
  • Column 3
    • Name: Text
    • This column contains the text to display for the related language.
  • Column 4
    • Name: Memo
    • This column allows for documentation about the record. This column is not used in the canvas app PACoCo.

Using this translation table, text is displayed in the canvas app PACoCo with the following logic (expression):

LookUp(coll_Text, ID = 2, Text)

coll_Text is a collection containing only the records from the translation table for the default/selected language. ID is the unique number per language for the location(s) where the text must be displayed. Text is the text to show.

The PACo GitHub reposity contains the file “PACoCo_Text.xlsx” which is used in the canvas app PACoCo:

You can of course create your own feature to switch to another language instead of using the available feature in the canvas component PACo_Header_A. For example: PACo version 2.x had a settings menu item to navigate to a screen where the language could be selected.