Mirror of maposmatic repository at savannah.nongnu.org
Pull request Compare This branch is 332 commits ahead of maposmatic:master.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.tx translation updates Mar 10, 2018
ci-scripts @ 4c472b5 Fix commit message Jun 20, 2013
scripts do not fail completely if ppmquant step fails Oct 6, 2018
support use systemd instead of SysV init script Apr 3, 2016
talks Add source and PDF files for 2013-11-13 talk on i18n in MapOSMatic Nov 14, 2013
www escape description texts to allow special characters like & Oct 18, 2018
.bowerrc switched from OpenLayers to Leaflet, and having bower manage assets Aug 26, 2016
.gitignore ignore emacs temporary files Sep 2, 2018
.gitmodules Added submodule reference for ci-scripts Apr 30, 2013
AUTHORS Update authors file Aug 6, 2010
COPYING Rename LICENSE into COPYING Aug 31, 2009
INSTALL use django migrations instead of deprecated syncdb May 5, 2016
README Mention that the --no-wrap option should be used for makemessages Apr 10, 2012
bower.json
manage.py Started porting to Django 1.11 Apr 4, 2018

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.