Table of Contents
Sympa was originally designed as a multilingual Mailing List Manager. Even in its earliest versions, Sympa separated messages from the code itself, messages being stored in NLS catalogues. Later a
langlist parameter was introduced. Nowadays, Sympa is able to keep track of individual users' language preferences.
If you are willing to provide Sympa into your native language, please check the translation howto: Instructions for translating Sympa.
Every message sent by Sympa to users, owners and editors is outside the code, in a message catalog. These catalogs are located in the
To tell Sympa to use a particular message catalog, you can should set the
langlist parameter defines the language for a list. It is used by WWSympa and to initialize users' language preferences at subscription time. And, all messages returned by Sympa concerning a list will be in the list's language.
The user language preference is currently used by WWSympa and email commands. There is no email-based command for a user to set his/her language. The language preference is initialized when the user subscribes to his/her first list. WWSympa allows the user to change it.
Sympa uses “language tag” to determine context of language and locale for users and lists. The language tag consists of one or more subtags: language, script, region and variant. Below are some examples.
Language tag Description
Arabic language (common)
Portuguese language in Brazil
Serbian language with Latin script
Catalan spoken in Valencia
Utinaaguti (around Okinawa island)
Until Sympa 6.1.x, language contexts are based on POSIX locale. Its naming rule was not standardized enough, and also had difficulties to handle particular languages. Language tag is roughly based on BCP 47 published by IETF. As of Sympa 6.2.0, POSIX locale names in old style are still supported but they are converted to language tags internally.
Sympa is designed to allow easy internationalization of its user interface (service mail messages and web interface). All translations for one language are gathered in a single .po file that can be manipulated by standard GNU gettext tools.
Instructions for translating Sympa are maintained on the Sympa website.
The “gettext locale name” is used for naming of .po file. Sympa maps language tags to gettext locale names and vice versa. Equivalents of language tags in example above are
ryu, respectively. If you don't know what name to use for your language, please ask Sympa authors.
Sympa templates refer to translatable strings using the
Examples:[%|loc%]User Email[% END %][%|loc(list.name,user.email)%]You have subscribed to list %1 with email address %2[% END %]
Sympa had previously been translated into 15 languages more or less completely. We have automatically extracted the translatable strings from previous templates but this process is awkward and is only seen as a bootstrap for translators. Therefore Sympa distribution will not include previous translations until a skilled translator has reviewed and updated the corresponding .po file.
The default Sympa templates are language independant, refering to catalogue entries for translations. When customizing either web or mail templates, you can define different templates for different languages. The template should be located in a language subdirectory of
mail_tt2with the language tag.
Example :/web_tt2/home.tt2 /web_tt2/de/home.tt2 /web_tt2/en-US/home.tt2 /web_tt2/fr/home.tt2
This mechanism also applies to
comment.tt2files used by create list templates.
Web templates can also make use of the
langvariable to make templates multi-lingual:
Example :[% IF lang == 'fr' %] Personnalisation [% ELSE %] Customization [% END %]
Until Sympa 6.1.x,
localevariable was used.
web_tt2/css.tt2for specific languages will override any portion of main css, not fully replacing it. So they may be used for customization for particular language.
For example, default css.tt2 specifies the font families covering Western scripts (Cyrillic, Latin, ...). East Asian users may prefer to consistent font family supporting Western along with Eastern scripts (hangeul, hanzi, ...). Sympa 6.1.18 and later include
css.tt2specific to these languages (
For another example, users using languages with right-to-left scripts (Arabic, Hebrew, ...) might wish web page layout to be fit in direction of texts. It may be possible to override attributes for alignment by
css.tt2for each language (
Topics are defined in a
topics.conffile. In this file, each entry can be given a title in different languages, see Topics.
Until version 5.3, Sympa web pages were using in each language's character set (iso-8859-1 for French, utf-8 for Japanese, ...) whereas every web page now uses utf-8. Sympa also expects every file to be UTF-8 including : configursation files, templates, authorization scenarios, .po files.
Note that the shared documents (see Shared documents) filenames are Q-encoded to make their storage encoding neutral. This encoding is transparent for end users.
Sympa fully supports Unicode. By default, all messages sent by Sympa will be encoded by
utf-8character set. However, in some language environments legacy character sets are preferred, for example
iso-2022-jpin Japanese language. Messages sent by Sympa may be encoded using legacy character sets spesific to each language. See legacy_character_support_feature parameter.
Note that this setting does not affect messages sent by users but only the messages mailing list robot will send.