MapOSMatic - A web interface for creating printable OpenStreetMap maps
 
 
 
 
 
 
Go to file
Hartmut Holzgraefe 388889cca4 finally added myself to AUTHORS and (C) headers 2019-04-13 00:35:37 +02:00
.tx translation updates 2018-03-10 23:10:56 +00:00
ci-scripts@4c472b586f Fix commit message 2013-06-20 14:20:50 +02:00
documentation fixed image captions and alignment 2018-11-24 15:29:10 +00:00
scripts newer Ubuntu versions of the ImageMagic package disable parsing 2018-11-25 10:13:45 +00:00
support use systemd instead of SysV init script 2016-04-03 12:20:24 +02:00
talks Add source and PDF files for 2013-11-13 talk on i18n in MapOSMatic 2013-11-14 20:34:58 +01:00
www finally added myself to AUTHORS and (C) headers 2019-04-13 00:35:37 +02:00
.bowerrc switched from OpenLayers to Leaflet, and having bower manage assets 2016-08-26 23:48:57 +02:00
.gitignore documentation integration part #3 2018-11-24 14:02:38 +00:00
.gitmodules Added submodule reference for ci-scripts 2013-04-30 08:33:09 +02:00
AUTHORS finally added myself to AUTHORS and (C) headers 2019-04-13 00:35:37 +02:00
COPYING Rename LICENSE into COPYING 2009-08-31 20:58:17 +02:00
INSTALL use django migrations instead of deprecated syncdb 2016-05-05 23:42:54 +02:00
README Mention that the --no-wrap option should be used for makemessages 2012-04-10 21:38:14 +02:00
bower.json add country flags to frontend language selection menu 2018-12-23 13:28:34 +00:00
manage.py finally added myself to AUTHORS and (C) headers 2019-04-13 00:35:37 +02:00

README

MapOSMatic is a web application to generate maps of cities or towns,
including index of streets, from OpenStreetMap data.

It is made of two components:

 * maposmatic, the web front-end. An application written using the
   Django framework allows to submit and visualize map rendering jobs.
   The rendering is done in the background by a daemon;

 * ocitysmap, the back-end that generates the map. It is available as a
   Python module, used both by the maposmatic daemon (above) and by a
   sample command line application.

This source tree contains maposmatic, the web front-end.

It is licensed under under GNU AGPLv3 (GNU Affero General Public
License 3.0).

Translation
===========

The .po files are stored in www/locale/<locale>/LC_MESSAGES/. To
generate or update a .po file:

  cd www/
  ./manage.py makemessages --no-wrap -a # for all locales

or

  cd www/
  ./manage.py makemessages --no-wrap -l xx_XX # for one locale

Note: Django 1.3 is needed for the --no-wrap option.

Then, edit the .po file manually, or using a graphical tool such as
poedit (available in the Debian/Ubuntu package of the same name). Once
done, don't forget to compile the .po file into an .mo file using:

 ./manage.py compilemessages

WARNING: There is a known bug in Django makemessages 1.2.x (and maybe
         other versions are affected as well): percent (%) signs in
         {%blocktrans%} tags are doubled (%%). This defeats the
         matching of a msgid against source code. As a workaround, %%
         signs in .po files must be replaced by single % signs. This
         is typically needed for the Wikipedia URL pointing to the
         Hacker culture.

         In order to workaround this bug, we recommend running:

         find locale/ -name 'django.po' | xargs sed -i 's/%%/%/g'

         after the execution of the makemessages command.