{{tpl:lang}}

Displays a localized version of string used as parameter.

  1. if the string exists in the default locale files of Dotclear (you will find the .po translation files at the root of your installation in /locales/xx/xxxxx.po) AND
  2. if this string exists in the language files corresponding to your blog's language settings (defined in the admin interface)

If the string used as parameter does not exist in the default locale files, the <tpl:lang> tag will display your exact string.

Examples

In a case where the character string exists in the locale files

For a blog with default language as French (fr):

{{tpl:lang Add a comment}}

displays, in French: "Ajoutez un commentaire."

{{tpl:lang Your comment has been published.}}

displays, in French "Votre commentaire a été publié."

In a case where the character string does **not** exist in the locale files

For a blog with default language as English (en):

{{tpl:lang C'est la vie !}}

displays "C'est la vie !"

Related links :

Wiki powered by Dokuwiki.