The web site is translated using Django's internationalization framework. The list of strings to translate is available in this file: django.pot and are edited through maposmatic resource on Transifex.
Add code for your language in: http://git.savannah.gnu.org/cgit/maposmatic/ocitysmap.git/tree/ocitysmap/i18n.py
The three methods to code are:
language_code(): returns the language code of the specific language supported, e.g. fr_FR.UTF-8;user_readable_street(name): transforms a street name into a suitable form for the map index, e.g. Paris (Rue de) for French;first_letter_equal(a, b): returns True if the letters a and b are equal in the map index;isrtl(): returns True if the language is written Right to Left (RTL).
Then add a construction of this object in the hash-table language_map at the end of i18n.py.
To add a new language for a map index in maposmatic, one should:
You shoud recompile .po files for ocitysmap (see I18N doc file) and maposmatic.
You should configure needed locales on your maposmatic server.
dpkg-reconfigure localesless /usr/share/i18n/SUPPORTED
locale-gen fr_FR.UTF-8 locale-gen fr_FR locale-gen fr_FR@euro
for code in en es fr de it ar ru nb sl sv et da cs ca hr sk fi el hu is lt pl ro tr eo ; do locale-gen --lang $code done locale-gen fr_FR@euro locale-gen fr_BE@euro locale-gen fr_LU@euro