From fbb55bf38a1b961c71fc8ec9a2bb7067fcf70c74 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 25 Jun 2014 14:19:53 +0200 Subject: [PATCH] add esperanto translation --- CHANGES.rst | 2 ++ CONTRIBUTORS.txt | 3 +++ docs/docs/configuration/client.rst | 2 +- isso/js/app/i18n.js | 6 ++++-- isso/js/app/i18n/eo.js | 27 +++++++++++++++++++++++++++ 5 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 isso/js/app/i18n/eo.js diff --git a/CHANGES.rst b/CHANGES.rst index c313a73..cbc994a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -68,6 +68,8 @@ Changelog for Isso available in werkzeug 0.9 or higher. If you're still using werkzeug 0.8, Isso imports passlib__ as fallback (if available). +- esperanto translation by Baptiste Darthenay + This release also features a new templating engine Jade__ which replaces Markup.js__. Jade can compile directly to JavaScript with a tiny runtime module diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 8881af5..5606b1e 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -38,6 +38,9 @@ In chronological order: * Convert SCSS to plain CSS * Refresh style, make it responsive +* Baptiste Darthenay + * Esperanto translation + * [Your name or handle] <[email or website]> * [Brief summary of your changes] diff --git a/docs/docs/configuration/client.rst b/docs/docs/configuration/client.rst index fcbac1c..9870df4 100644 --- a/docs/docs/configuration/client.rst +++ b/docs/docs/configuration/client.rst @@ -50,7 +50,7 @@ data-isso-lang -------------- Override useragent's preferred language. Currently available: german (de), -english (en), french (fr), italian (it) and russian (ru). +english (en), french (fr), italian (it), esperanto (eo) and russian (ru). data-isso-reply-to-self ----------------------- diff --git a/isso/js/app/i18n.js b/isso/js/app/i18n.js index 7b12980..b6caa93 100644 --- a/isso/js/app/i18n.js +++ b/isso/js/app/i18n.js @@ -1,4 +1,4 @@ -define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru", "app/i18n/it"], function(config, de, en, fr, ru, it) { +define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru", "app/i18n/it", "app/i18n/eo"], function(config, de, en, fr, ru, it, eo) { "use strict"; @@ -7,6 +7,7 @@ define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru" case "en": case "de": case "it": + case "eo": return function(msgs, n) { return msgs[n === 1 ? 0 : 1]; }; @@ -42,7 +43,8 @@ define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru" en: en, fr: fr, ru: ru, - it: it + it: it, + eo: eo }; var plural = pluralforms(lang); diff --git a/isso/js/app/i18n/eo.js b/isso/js/app/i18n/eo.js new file mode 100644 index 0000000..76150f3 --- /dev/null +++ b/isso/js/app/i18n/eo.js @@ -0,0 +1,27 @@ +define({ + "postbox-text": "Tajpu komenton ĉi-tie (almenaŭ 3 signoj)", + "postbox-author": "Nomo (malnepra)", + "postbox-email": "Retadreso (malnepra)", + "postbox-website": "Retejo (malnepra)", + "postbox-submit": "Sendu", + "num-comments": "{{ n }} komento\n{{ n }} komentoj", + "no-comments": "Neniu komento ankoraŭ", + "comment-reply": "Respondu", + "comment-edit": "Redaktu", + "comment-save": "Savu", + "comment-delete": "Forviŝu", + "comment-confirm": "Konfirmu", + "comment-close": "Fermu", + "comment-cancel": "Malfaru", + "comment-deleted": "Komento forviŝita", + "comment-queued": "Komento en atendovico por kontrolo.", + "comment-anonymous": "Sennoma", + "comment-hidden": "{{ n }} kaŝitaj", + "date-now": "ĵus nun", + "date-minute": "antaŭ unu minuto\nantaŭ {{ n }} minutoj", + "date-hour": "antaŭ unu horo\nantaŭ {{ n }} horoj", + "date-day": "hieraŭ\nantaŭ {{ n }} tagoj", + "date-week": "lasta semajno\nantaŭ {{ n }} semajnoj", + "date-month": "lasta monato\nantaŭ {{ n }} monatoj", + "date-year": "lasta jaro\nantaŭ {{ n }} jaroj" +});