From 608ae95db6759b0fdd0fcfcf994ea360d0b3406a Mon Sep 17 00:00:00 2001 From: Guidouil Date: Sun, 5 Oct 2014 16:01:47 +0200 Subject: [PATCH 1/2] tap:i18n added with French translation (default en) --- i18n/en.i18n.json | 7 +++++++ i18n/fr.i18n.json | 7 +++++++ package-tap.i18n | 5 +++++ package.js | 1 + templates.html | 8 ++++---- 5 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 i18n/en.i18n.json create mode 100644 i18n/fr.i18n.json create mode 100644 package-tap.i18n diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json new file mode 100644 index 0000000..ceee90a --- /dev/null +++ b/i18n/en.i18n.json @@ -0,0 +1,7 @@ +{ + "drag" : "drag here to reposition", + "back" : "Back", + "next" : "Next", + "finish" : "Finish", + "loading" : "Loading..." +} \ No newline at end of file diff --git a/i18n/fr.i18n.json b/i18n/fr.i18n.json new file mode 100644 index 0000000..0f7cc24 --- /dev/null +++ b/i18n/fr.i18n.json @@ -0,0 +1,7 @@ +{ + "drag" : "Cliquer ici pour déplacer", + "back" : "Précédent", + "next" : "Suivant", + "finish" : "Fin", + "loading" : "Chargement..." +} \ No newline at end of file diff --git a/package-tap.i18n b/package-tap.i18n new file mode 100644 index 0000000..f3e0170 --- /dev/null +++ b/package-tap.i18n @@ -0,0 +1,5 @@ +{ + "translation_function_name": "__", // The name for the translation function that + // will be available in package's namespace. + "helper_name": "_" // the name for the package templates' translation helper +} \ No newline at end of file diff --git a/package.js b/package.js index efcb087..012c2c9 100644 --- a/package.js +++ b/package.js @@ -11,6 +11,7 @@ Package.onUse(function (api) { api.use(['ui', 'templating'], 'client'); api.use("mizzao:bootstrap-3@3.2.0", 'client'); + api.use(["tap:i18n"], ["client", "server"]); api.addFiles('templates.html', 'client'); api.addFiles('tutorial.styl', 'client'); diff --git a/templates.html b/templates.html index 8b73f4e..4a45d13 100644 --- a/templates.html +++ b/templates.html @@ -9,7 +9,7 @@ @@ -22,19 +22,19 @@
{{#if prevEnabled}} {{/if}} {{#if nextEnabled}} {{/if}} {{#if finishEnabled}} {{/if}} From 8444f3a613a90a078e7ba175f766b3c3eb6bb8c1 Mon Sep 17 00:00:00 2001 From: Guidouil Date: Sun, 5 Oct 2014 16:11:01 +0200 Subject: [PATCH 2/2] Template typos, forgot some white spaces. --- templates.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates.html b/templates.html index 4a45d13..a080551 100644 --- a/templates.html +++ b/templates.html @@ -9,7 +9,7 @@
@@ -28,7 +28,7 @@ {{#if nextEnabled}} {{/if}}