From da47dbd3743d70c44d9d823225863e8410115065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20N=C3=A4slund?= Date: Sat, 13 Dec 2014 14:29:40 +0100 Subject: [PATCH 1/2] Added swedish translation file --- isso/js/app/i18n/sv.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 isso/js/app/i18n/sv.js diff --git a/isso/js/app/i18n/sv.js b/isso/js/app/i18n/sv.js new file mode 100644 index 0000000..92be3d9 --- /dev/null +++ b/isso/js/app/i18n/sv.js @@ -0,0 +1,30 @@ +define({ + "postbox-text": "Skriv din kommentar här (minst 3 tecken)", + "postbox-author": "Namn (frivilligt)", + "postbox-email": "E-mail (frivilligt)", + "postbox-website": "Hemsida (frivilligt)", + "postbox-submit": "Skicka", + + "num-comments": "En kommentar\n{{ n }} kommentarer", + "no-comments": "Inga kommentarer än", + + "comment-reply": "Svara", + "comment-edit": "Redigera", + "comment-save": "Spara", + "comment-delete": "Radera", + "comment-confirm": "Bekräfta", + "comment-close": "Stäng", + "comment-cancel": "Avbryt", + "comment-deleted": "Kommentar raderad.", + "comment-queued": "Kommentaren inväntar granskning.", + "comment-anonymous": "Anonym", + "comment-hidden": "{{ n }} Gömd", + + "date-now": "just nu", + "date-minute": "en minut sedan\n{{ n }} minuter sedan", + "date-hour": "en timme sedan\n{{ n }} timmar sedan", + "date-day": "igår\n{{ n }} dagar sedan", + "date-week": "förra veckan\n{{ n }} veckor sedan", + "date-month": "förra månaden\n{{ n }} månader sedan", + "date-year": "förra året\n{{ n }} år sedan" +}); From 7f5ff457c1c1ba0d86031615314153c70d2f138c Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Thu, 25 Dec 2014 21:28:15 +0100 Subject: [PATCH 2/2] integrate swedish translation into Isso --- isso/js/app/i18n.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/isso/js/app/i18n.js b/isso/js/app/i18n.js index b6caa93..3a4d5c2 100644 --- a/isso/js/app/i18n.js +++ b/isso/js/app/i18n.js @@ -1,13 +1,14 @@ -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) { +define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru", "app/i18n/it", "app/i18n/eo", "app/i18n/sv"], function(config, de, en, fr, ru, it, eo, sv) { "use strict"; var pluralforms = function(lang) { switch (lang) { - case "en": case "de": - case "it": + case "en": case "eo": + case "it": + case "sv": return function(msgs, n) { return msgs[n === 1 ? 0 : 1]; }; @@ -41,10 +42,11 @@ define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru" var catalogue = { de: de, en: en, + eo: eo, fr: fr, - ru: ru, it: it, - eo: eo + ru: ru, + sv: sv }; var plural = pluralforms(lang);