maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] (no subject)


From: Konstantin Mochalov
Subject: [Maposmatic-dev] (no subject)
Date: Wed, 4 Apr 2012 10:50:26 +0400

Tried to do as I suggested, with exporting translation strings from ocitysmap.

Created gettext_noop function (this function exist in gettext library but
there is no such function in gettext python binding, however any function that
does nothing can be used, it is just for xgettext utility to find strings).

Changed xgettext invocation in i18n.py in root dir of project. Run it so it
updated .pot file.

Also updated new strings in russian translation.

Not tested at all, even if new imports succeed.

Stylesheet names are not exported to translation, because they are defined
in config. It is possible to export stylesheet names by creating .py file
that will not be imported anywhere, just listing names of possible
stylesheets. I.e.:

_("The default OSM style")
_("MapQuest European stylesheet")
_("MapOSMatic stylesheet suitable for printing")

And adding this file to xgettext invocation in i18n.py.

Not yet done anything with maposmatic (django app). It is possible to load
translation catalogs from ocitysmap:
https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#how-django-discovers-translations




reply via email to

[Prev in Thread] Current Thread [Next in Thread]