Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Excerpt

With a module translation you can translate certain parts of your Module module for all existing frontend languages.

...

The function to call a module translation is "mi18n". Since CONTENIDO 4.9 it supports multiple parameters which can be later replaced in the location string. 

Code Block
languagephp
titleExample
$labelSearch = mi18n("LABEL_SEARCH"); // LABEL_SEARCH = "Search"
 
$results = 10;
$labelSearchResults = mi18n("LABEL_SEARCH_RESULTS", $results); // LABEL_SEARCH_RESULTS = "Found %s search results"
Info
titleNote

Module translations currently are only are recognized, if the language string is surround with double quotes!

...

Recognized module translations then are provided on the translation page of a module or in the mass translation /wiki/spaces/FFBCIN/pages/185893018 in the content area for translation in all available frontend languages. 

Info
titleNote

Since CONTENIDO 4.9 location strings must be translated, otherwise an error is displayed.
The previous behaviour was displaying the translation string instead.