An updated translation for Bokmål (nb-NO) and a new Nynorsk (nn-NO) translation based on the nb-NO translation.
Fixes https://savannah.nongnu.org/bugs/?35372
All credit goes to Guttorm Flatabø <post@guttormflatabo.com>
Patch to MapOSMatic/www/settings.py to add Nynorsk and credit Guttorm to follow shortly.
Signed-off-by: Guttorm Flatabø <post@guttormflatabo.com>
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
Sent off as patch against current head on behalf of Simone Cortesi.
Signed-off-by: Simone Cortesi <simone@cortesi.com>
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
As of mapnik commit 14700dba16146902ca98fdcacb72b2fba4fa596a,
using 'import mapnik2' raises a DeprecationWarning.
See https://github.com/mapnik/mapnik/issues/941 for details.
Update imports of the mapnik module to use 'import mapnik' and assert
that the installed version is new enough.
We need mapnik 2.1.0 (or at least a version newer than 2.0.0
that supports placement-type="simple") for the Printable Stylesheet,
as per David's suggestion. Thomas pointed out that having the note
in all files was overkill, this patch takes that into account.
Also update INSTALL with instructions on how to build Mapnik from Git
and which specifically tested commit to use if the latest version
doesn't work.
CC: thomas.petazzoni@enix.org
CC: dmentre@linux-france.org
CC: maxime.petazzoni@bulix.org
Tested-by: Jeroen van Rijn <jvrnix@gmail.com>
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
Étienne has done an enormous amount of development on the multi-page
renderer, and therefore should be mentionned in our AUTHORS file.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
For the moment, the CSV generated by the multi-page renderer is
completely incorrect. It would require more work, and is not essential
to put this multi-page renderer in production, so let's disable it for
now. We can make it work later on, and enable it again if we want.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
Use the new get_compatible_output_formats() method to reject the
unsupported output formats depending on the selected rendering layout.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
The single page renderers can output PNG, SVGZ, PDF and CSV, but by
design, the multi page renderer can only output PDF and CSV. So we
introduce a get_compatible_output_formats() in the renderer class so
that users of OcitySMap2 can find out which formats are possible
depending on the choosen layout.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>