From 8ce86f4d4cf5730f26ea29ef8ddf8a0f00035b77 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 24 Nov 2014 12:29:41 +0100 Subject: [PATCH 1/3] added first version of dutch translation --- js/uhr-nl.js | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 js/uhr-nl.js diff --git a/js/uhr-nl.js b/js/uhr-nl.js new file mode 100644 index 0000000..1d5ced3 --- /dev/null +++ b/js/uhr-nl.js @@ -0,0 +1,82 @@ +/* + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ +(function($) { + 'use strict'; + var het_is = {1: [1, 2, 3, 5, 6]}; + var over1 = {3: [1, 2, 3, 4]}; + var voor1 = {2: [8, 9, 10, 11]}; + var over2 = {4: [8, 9, 10, 11]}; + var voor2 = {5: [1, 2, 3, 4]}; + var half = {4: [1, 2, 3, 4]}; + var vijf = {1: [8, 9, 10, 11]}; + var tien = {2: [1, 2, 3, 4]}; + var kwart = {3: [7, 8, 9, 10, 11]}; + var vijftien = [vijf, tien]; + var uur = {10: [9, 10, 11]}; + + var layout = { + "version": 2, + "language": 'Nederlands', + "letters": [ + 'HETKISAVIJF', + 'TIENBTZVOOR', + 'OVERMEKWART', + 'HALFSPWOVER', + 'VOORTHGEENS', + 'TWEEPVCDRIE', + 'VIERVIJFZES', + 'ZEVENONEGEN', + 'ACHTTIENELF', + 'TWAALFBFUUR' + ], + "permanent": het_is, + "minutes": { + "0,1,2,3,4": uur, + "5,6,7,8,9": [vijf, over1], + "10,11,12,13,14": [tien, over1], + "15,16,17,18,19": [kwart, over2], + "20,21,22,23,24": [tien, voor1, half], + "25,26,27,28,29": [vjif, voor1, half], + "30,31,32,33,34": half, + "35,36,37,38,39": [vijf, over1, half], + "40,41,42,43,44": [tien, over1, half], + "45,46,47,48,49": [kwart, voor2], + "50,51,52,53,54": [tien, voor1], + "55,56,57,58,59": [vjif, voor1] + }, + "hours": { + "0,12": {10: [1, 2, 3, 4, 5, 6]}, + "1,13": {5: [8, 9, 10]}, + "2,14": {6: [1, 2, 3, 4]}, + "3,15": {6: [8, 9, 10, 11]}, + "4,16": {7: [1, 2, 3, 4]}, + "5,17": {7: [5, 6, 7, 8]}, + "6,18": {7: [9, 10, 11]}, + "7,19": {8: [1, 2, 3, 4, 5]}, + "8,20": {9: [1, 2, 3, 4]}, + "9,21": {8: [7, 8, 9, 10, 11]}, + "10,22": {9: [5, 6, 7, 8]}, + "11,23": {9: [9, 10, 11]} + }, + "getHour": function(date) { + var hour = date.getHours(); + if (date.getMinutes >= 20) { + return (hour + 1) % 24; + } + return hour; + } + }; + $.fritteli.uhr.register('nl', layout); +}(jQuery)); \ No newline at end of file From 4e902cb6a1c69c9a658a3463da368e2279223232 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 24 Nov 2014 12:40:17 +0100 Subject: [PATCH 2/3] updated version and fixed bugs in the NL translation --- README.md | 5 +++-- VERSION | 2 +- index.html | 1 + info/index.html | 3 ++- js/uhr-nl.js | 6 +++--- manifest.appcache | 3 ++- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 203de91..fbe4bcb 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,10 @@ Beim Einbinden muss das attribut `data-class` angegeben werden, welches die CSS- * uhr-de_CH_genau.js * uhr-de.js * uhr-en.js + * uhr-es.js * uhr-fr.js * uhr-it.js - * uhr-es.js + * uhr-nl.js `uhr-de_CH_genau.js` ist eine Variante von Berndeutsch, bei der zur vollen Stunde zusätzlich das Wort "genau" angezeigt wird (also z.B. um 15:00 Uhr "ES ISCH GENAU DRÜ"). @@ -76,7 +77,7 @@ Der uhr()-Methode kann ein Options-Objekt mitgegeben werden: jQuery('#uhrcontainer').uhr({ status: 'on', // 'on' (default) oder 'off' theme: 'black', // 'black' (default), 'white', 'red', 'yellow', 'green', 'blue' oder 'pink' (je nach eingebundenen Theme-Stylesheets) - language: 'de_CH', // 'de_CH' (default), 'de_CH_genau', 'de', 'en', 'fr' oder 'it' (je nach eingebundenen Sprachdateien) + language: 'de_CH', // 'de_CH' (default), 'de_CH_genau', 'de', 'en', 'es', 'fr', 'it' oder 'nl' (je nach eingebundenen Sprachdateien) mode: 'normal', // 'normal' (default): Die Uhr zeigt die aktuelle Zeit (Stunden und Minuten) in Worten an // 'seconds': Die Uhr zeigt die aktuellen Sekunden als grosse Ziffern an width: '100%', // eine CSS-Grössenangabe (default: 100%) diff --git a/VERSION b/VERSION index 7822c1a..b227bc7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.5 +6.5-next diff --git a/index.html b/index.html index 39b4903..3136a4e 100644 --- a/index.html +++ b/index.html @@ -42,6 +42,7 @@ along with this program. If not, see . +