Wykres commitów

746 Commity (6cd372394b4b395b59d5885c860e6bd87308e7bf)

Autor SHA1 Wiadomość Data
MapOSMatic developers c60b084427 Fix exception email sending
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-04-13 09:27:28 +02:00
Jeroen van Rijn c529d0a957 Updated Dutch django.po
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-13 08:55:56 +02:00
Maxime Petazzoni 6ddbe66478 Use check_call to correctly throw exceptions and make rendering fail
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-04-12 22:13:22 +02:00
Maxime Petazzoni cef0749ff9 Send emails on rendering exceptions
Automatically send an email to the configured admins with a traceback of
the rendering exception when a rendering fails.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-04-12 22:12:53 +02:00
Rodrigo Avila 73001332c6 Update pt_BR translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-12 12:54:35 +02:00
Jeroen van Rijn 2818a73f2b Add 'nynorsk' to locale/*/LC_MESSAGES/django.po
Updated the django.po files to add the 'nynorsk' string.
Translated the 'nynorsk' string into Dutch, French, German, Italian and Portuguese.

Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-11 13:46:00 +02:00
Jeroen van Rijn c262e11d63 Add updated Norwegian translation credits to about.html
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-11 13:45:58 +02:00
Thomas Petazzoni a9392162bf Update translations
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-11 09:01:01 +02:00
Thomas Petazzoni ac3a94fea4 index: fix incorrect double colon
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-11 08:59:07 +02:00
Rodrigo Avila d27054a327 Update pt_BR translation
Signed-off-by: Rodrigo Avila <rodrigo@avila.net.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-11 08:48:09 +02:00
Thomas Petazzoni 0a3f900fc5 forms: fix typo
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-10 21:44:59 +02:00
Thomas Petazzoni 70f4ecc709 Update French translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-10 21:39:28 +02:00
Thomas Petazzoni 00b8cd475f Update translations, without line wrapping
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-10 21:38:54 +02:00
Thomas Petazzoni 26c31e8cf9 Mention that the --no-wrap option should be used for makemessages
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-10 21:38:14 +02:00
Thomas Petazzoni c7879d8a40 forms: translate stylesheet and layout descriptions, and paper sizes
Until now, the stylesheet description strings were coming from the
OcitySMap configuration file, the layout description strings from the
OcitySMap source code, and the paper sizes from the OcitySMap code as
well.

Unfortunately, when MapOSMatic queries the list of stylesheets,
layouts and paper sizes, OcitySMap has no idea of which language the
web site is in. OcitySMap cares about the language in which the map
will be rendered, not the language in which the website is displayed.

Therefore, in order to properly translate the stylesheet descriptions,
layout descriptions and paper sizes, we have to do it from MapOSMatic
itself. The drawback is that MapOSMatic now needs to know the list of
layouts and stylesheets, but there doesn't seem to be other reasonable
solutions.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-10 21:38:14 +02:00
Jeroen van Rijn 06184e1543 Add Norwegian Nynorsk map translation
To integrate the translation for ocitysmap provided by Guttorm Flatabø,
we have to add it to MAP_LANGUAGES in settings.py as well so it's available
to choose upon creating a new map rendering.

CC: Guttorm Flatabø <post@guttormflatabo.com>

Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-10 20:35:23 +02:00
David MENTRE 7191a4c575 maposmatic: Use Alt+drag to select the BBox on Mac
The Ctrl+drag command cannot be used on Mac platform. Use Alt+drag
instead.

Original patch submitted by Sébastien Tanguy.

Signed-off-by: David MENTRE <dmentre@linux-france.org>
Signed-off-by: Sébastien Tanguy
2012-04-10 20:33:31 +02:00
Jeroen van Rijn e64ff618b9 Updated Italian Django translation (resent)
Simone Cortesi updated the Italian translation for MapOSMatic.
I'm (Jeroen) sending this off with a little fix-up applied.

Signed-off-by: Simone Cortesi <simone@cortesi.com>
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-10 20:32:45 +02:00
Thomas Petazzoni d85e824ade Add template for Danish translation of the web site
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-04 00:21:50 +02:00
Konstantin Mochalov ecca6af3f4 Small fixes of russian translation
- Removed "extension" in "расширение PostGIS extension"
- Removed space before dot
- Changed 'on' meaning from on/off to 'on irc.freenode.net' - "на"
2012-04-03 23:32:31 +02:00
Rodrigo de Avila 4399061df5 Update brasilian portuguese translation 2012-04-03 09:10:28 +02:00
Rodrigo Avila 986a7ba576 Update brasilian portuguese translation 2012-04-02 23:37:33 +02:00
Thomas Bellmann 624aa64c89 Update german translation 2012-04-02 23:34:10 +02:00
Jeroen van Rijn 4d57a48c9e Updated Dutch translation
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
2012-04-02 23:30:00 +02:00
David MENTRE c904c5f5a3 Avoid displaying donate-thanks page for Donate menu entry
Signed-off-by: David MENTRE <dmentre@linux-france.org>
2012-04-02 23:02:05 +02:00
Konstantin Mochalov ab57d96e6d Updated russian translation 2012-04-02 22:59:26 +02:00
Thomas Petazzoni 5ca0e05830 Update translations
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 15:59:04 +02:00
Thomas Petazzoni eabd2e5937 index: fix message that should have been in english
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 15:58:13 +02:00
Thomas Petazzoni 6fb8ab1d19 Explain the workaround for Django makemessages bug
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 15:57:38 +02:00
Thomas Petazzoni 830c19adba Update french translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 11:30:47 +02:00
Thomas Petazzoni d0f8537bbe Update translation files
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 11:28:22 +02:00
Thomas Petazzoni 647a11cbc3 Add a Thanks for donation page
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 11:25:46 +02:00
Thomas Petazzoni 891583fd2b Adjust "No index" message for multi-page layout
We display a message saying that an index has not been generated if no
CSV was found, and in this case we encourage users to contribute to
OpenStreetMap. However, with the multi-page layout, we never generate
a CSV, so this message was always displayed. This commit handles this
case properly.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 02:08:14 +02:00
Gael UTARD 934c37f562 Remove dead code about zoom_level
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-01 01:46:19 +02:00
Gael UTARD 8b634ff91c Select default paper size proposed by ocitysmap
And select portrait by default instead of landscape.

Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-01 01:45:15 +02:00
Thomas Petazzoni ff10100f01 Update translations
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 01:42:43 +02:00
Thomas Petazzoni 413979c8c2 Add credits for more translators
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 01:39:26 +02:00
Thomas Petazzoni df1ffa6e5b Workaround Django makemessages bug when generating PO files
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 01:04:43 +02:00
Thomas Petazzoni 3a828bde85 Update French translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 01:00:59 +02:00
Thomas Petazzoni 1822a6e8c4 Update all PO files
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 00:18:31 +02:00
Thomas Petazzoni 1bfbbf23fe Unwrap text blocks to ease translation
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 00:18:11 +02:00
Thomas Petazzoni a63572aaaa Update README regarding translation instructions
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 00:10:45 +02:00
Thomas Petazzoni 37b72143ac Update frontpage thumbnail to a modern multi-page rendering result
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-04-01 00:07:10 +02:00
Thomas Petazzoni 58b5a01051 Update website text to match recent developments
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 23:44:17 +02:00
Maxime Petazzoni 7a7736e2e2 2/2] Fix language selection and navigation bar (closes bug #36055)
The language selection drop-down was not working anymore after the
rework of the navigation bar because the ul#nav was over the
form#langsel and prevented clicks on the select widget.

Also fixes the navigation bar in RTL mode, which was forgotten during
the navigation bar fixes previously.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-03-31 23:08:50 +02:00
Maxime Petazzoni 21ba35ff86 1/2] Fixes in gisdb.py
Fixed missing logger, added copyright notice and followed Python
variable naming convention for the module-global _DB variable.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-03-31 23:08:48 +02:00
Thomas Petazzoni e11ab18b9e render daemon: do not render in unsupported formats
The settings_local.py file defines the RENDERING_RESULT_FORMATS which
contains the formats (PNG, SVGZ, PDF, CSV) in which the maps should be
rendered. However, depending on the selected rendering layout, some
formats may not be supported: typically, PNG and SVGZ are not
supported by the multi-page rendering layout.

Therefore, the daemon automatically renders the map only in the
formats that are the intersection of the formats choosen in
RENDERING_RESULT_FORMATS and the formats compatible with the rendering
layout.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 19:32:09 +02:00
Thomas Petazzoni 95b3577045 Generate nice thumbnails for multi-page renderings
For multi-page renderings, the thumbnail was useless: it was the last
page of the index. Instead, we create with ImageMagick a small
thumbnail thats displays the cover page and overview page of the
multi-page PDF. We take into account landscape/portrait renderings to
combine those two images into a single thumbnail with a good ratio.

We directly use subprocess to run the ImageMagick commands, because
the Python ImageMagick API is so poorly documented that after spending
several hours trying to figure out which method to use, switching to
subprocess with ImageMagick commands turned out to be a more
reasonable solution.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 18:42:02 +02:00
Thomas Petazzoni d3b2152561 Add small infrastructure to translate the Paypal stuff
We want the Paypal donation button to be translated, and the user to
be redirected to a page in his/her language when making a donation.

Unfortunately, Paypal does not seem to have translations for all the
languages we support, so we default to English when the language is
not available from Paypal.

This new mechanism requires translators to add a new entry in the
PAYPAL_LANGUAGES dictionary if Paypal provides a button and a site in
their language.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 11:53:58 +02:00
Thomas Petazzoni e3d577890a donate: fix link to the about page
The problem was noticed by Jeroen van Rijn <jvrnix@gmail.com>, but a
different fix was needed to make things work properly.

Thanks Jeroen for noticing and reporting the problem!

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 09:50:32 +02:00