[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Maposmatic-dev] [MAPOSMATIC] Patch to have proper Croatian translat
From: |
Maxime Petazzoni |
Subject: |
Re: [Maposmatic-dev] [MAPOSMATIC] Patch to have proper Croatian translation |
Date: |
Mon, 1 Feb 2010 10:00:05 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
* Maxime Petazzoni <address@hidden> [2010-02-01 09:42:01]:
> Yes, and I though it was because of the buggy translation file. Looks
> like it's not. I'll track this down tonight (got work today).
Fixed, live on dev.m.o. This is the applied commit:
commit 22d456d110a43689b42458a1afa6171e9167385d
Author: Maxime Petazzoni <address@hidden>
Date: Mon Feb 1 09:57:08 2010 +0100
Fix the language selection dropdown
When switching to a locale-specific language on the MapOSMatic website
with the language selection dropdown, the new language was not made the
current selection of the dropdown menu, and fell back to the default
'French'. It was thus impossible to go back to French without switch to
an intermediary language.
The behavior was the result of a difference between our (traditional)
language codes and the ones used by Django. The language list has been
fixed, and a comment added to proof for future additions.
---
www/settings.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/www/settings.py b/www/settings.py
index 6be218e..716f275 100644
--- a/www/settings.py
+++ b/www/settings.py
@@ -104,6 +104,9 @@ INSTALLED_APPS = (
'www.maposmatic',
)
+# Available website translations. Note that the language codes must be
+# specified in Django i18n location (all lowercase, with the language and
+# locale separated by a dash instead of an underscore: pt_BR -> pt-br)
LANGUAGES = (("fr", u"Français"),
("en", u"English"),
("de", u"Deutsch"),
@@ -111,9 +114,9 @@ LANGUAGES = (("fr", u"Français"),
("ca", u"Català"),
("ru", u"Русский"),
("ar", u"العربية"),
- ("pt_BR", u"Português do Brasil"),
+ ("pt-br", u"Português do Brasil"),
("nl", u"Nederlands"),
- ("hr_HR", u"Hrvatski"))
+ ("hr-hr", u"Hrvatski"))
MAP_LANGUAGES = [("fr_BE.UTF-8", u"Royaume de Belgique (FR)"),
("fr_FR.UTF-8", u"France"),
--
Maxime Petazzoni <http://www.bulix.org>
``One by one, the penguins took away my sanity.''
Linux kernel and software developer at MontaVista Software
signature.asc
Description: Digital signature