Banner showing base of Eiffel tower

Github

Download version 1.4.8: Windows or Linux

Text Library: Internationalization

This library has 16 classes.

ECF: i18n.ecf

An internationalization library with support for translations rendered in Pyxis format. There are a number of tools in el_toolkit to support the use of this library.

Directory: library/text/i18n

[ . ]

. /command

. /share

. /support

. /table

. /test

[ . ]

EL_DEFAULT_LOCALE

Locale that defines the language used for translations keys via the country code id key_language.

Further Information

Click on class link to see client examples.

EL_LOCALE

Object accessible via EL_MODULE_LOCALE that returns translated strings using the syntax:

Locale * "<text>"

The translation files are named locale.x where x is a 2 letter country code, with expected location defined by Localization_dir, By default this is set to Directory.Application_installation accessible via EL_MODULE_DIRECTORY.

The locale data files are compiled from Pyxis format using the el_toolkit -compile_translations sub-application option.

Further Information

Click on class link to see client examples.

EL_MODULE_LOCALE

Localization implementation via once routine Locale. By calling the once routine Locale in the application before the once routine {EL_MODULE_DEFERRED_LOCALE}.Locale, any library classes that have deferred localization will now use Locale.

Further Information

Click on class link to see client examples.

command

EL_PYXIS_LOCALE_COMPILER

Compile a manifest list of Pyxis locale translation files into a directory locales binary data files. For example:

locales/en
locales/de
locales/fr

Further Information

Click on class link to see notes and client examples.

share

EL_SHARED_ADHOC_TRANSLATIONS

Shared FUNCTION to create Pyxis source for adhoc-translations. Useful for decrypted credit titles for application "about dialog".

EL_SHARED_KEY_LANGUAGE

Define the language that is be used for translation item identifiers

Further Information

Click on class link to see client examples.

support

EL_LANGUAGE_SET_READER

Compiles a set of language codes from a Pyxis translation source

Further Information

Click on class link to see client examples.

EL_TRANSLATION_ITEM

Translated storable item. Lookup keys may have an optional language prefix, "en." for example.

EL_TRANSLATION_ITEMS_LIST

Storable chain of translation items conforming to EL_TRANSLATION_ITEM

Further Information

Click on class link to see client examples.

table

EL_IMMUTABLE_TRANSLATION_TABLE

Translation table that stores all translation item text and lookup keys as a single shared UTF-8 encoded string of type IMMUTABLE_STRING_8

Further Information

Click on class link to see client examples.

EL_LOCALE_TABLE

Table of locale data file paths

Further Information

Click on class link to see client examples.

EL_MULTI_LANGUAGE_TRANSLATION_TABLE

Translation table for multiple languages with each key having a language code prefix: en. de. fr. for example.

Further Information

Click on class link to see client examples.

EL_PYXIS_ML_TRANSLATION_TABLE

EL_MULTI_LANGUAGE_TRANSLATION_TABLE that is initialized by a localization configuration file in Pyxis format.

pyxis-doc:
   version = 1.0; encoding = "ISO-8859-1"

# class TEST_PHRASES_TEXT
# Testing ISO-8859-1 encoding in EL_MERGED_PYXIS_LINE_LIST

translations:
   item:
      id = "Enter a passphrase"
      # first has no check
      translation:
         lang = de
         'Geben sie ein passphrase für "$NAME" tagebuch'
      translation:
         lang = en
         'Enter a passphrase for "$NAME" journal'

Further Information

Click on class link to see client examples.

EL_TRANSLATION_TABLE

Translation table

Further Information

Click on class link to see client examples.

EL_XML_ML_TRANSLATION_TABLE

EL_MULTI_LANGUAGE_TRANSLATION_TABLE that is initialized by a localization configuration file in XML format.

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- class TEST_PHRASES_TEXT -->
<translations>
   <item id = "Enter a passphrase">
      <!--first has no check-->
      <translation lang = "de">Geben sie ein passphrase für &quot;$NAME&quot; tagebuch</translation>
      <translation lang = "en">Enter a passphrase for &quot;$NAME&quot; journal</translation>
   </item>
   <item id = "Delete journal">
      <translation lang = "de" check = "true">
Löschen tagebuch: &quot;%S&quot;
Sind sie sicher?
      </translation>
      <translation lang = "en">
Delete journal: &quot;%S&quot;
Are you sure?
      </translation>
   </item>
</translations>

Further Information

Click on class link to see client examples.

test

EL_LOCALIZATION_TEST

Routines to test localization keys present

Further Information

Click on class link to see client examples.