Commit 2089b271 authored by Benoit Lavenier's avatar Benoit Lavenier

[enh] Add IT i18n translation - Fix #700

parent bafe6a24
...@@ -27,16 +27,16 @@ ...@@ -27,16 +27,16 @@
}, },
"node": { "node": {
"host": "g1.duniter.org", "host": "g1.duniter.org",
"port": "443" "port": 443
}, },
"fallbackNodes": [ "fallbackNodes": [
{ {
"host": "g1.duniter.fr", "host": "g1.duniter.fr",
"port": "443" "port": 443
}, },
{ {
"host": "g1.duniter.org", "host": "g1.duniter.org",
"port": "443" "port": 443
} }
], ],
"developers": [ "developers": [
...@@ -47,15 +47,15 @@ ...@@ -47,15 +47,15 @@
"enable": true, "enable": true,
"askEnable": true, "askEnable": true,
"host": "g1.data.duniter.fr", "host": "g1.data.duniter.fr",
"port": "443", "port": 443,
"fallbackNodes": [ "fallbackNodes": [
{ {
"host": "g1.data.le-sou.org", "host": "g1.data.le-sou.org",
"port": "443" "port": 443
}, },
{ {
"host": "g1.data.duniter.fr", "host": "g1.data.duniter.fr",
"port": "443" "port": 443
} }
], ],
"notifications": { "notifications": {
...@@ -97,15 +97,15 @@ ...@@ -97,15 +97,15 @@
}, },
"node": { "node": {
"host": "g1.duniter.fr", "host": "g1.duniter.fr",
"port": "443" "port": 443
}, },
"fallbackNodes": [{ "fallbackNodes": [{
"host": "g1.duniter.org", "host": "g1.duniter.org",
"port": "443" "port": 443
}, },
{ {
"host": "g1.duniter.fr", "host": "g1.duniter.fr",
"port": "443" "port": 443
} }
], ],
"plugins":{ "plugins":{
...@@ -113,15 +113,15 @@ ...@@ -113,15 +113,15 @@
"enable": true, "enable": true,
"askEnable": true, "askEnable": true,
"host": "g1.data.duniter.fr", "host": "g1.data.duniter.fr",
"port": "443", "port": 443,
"fallbackNodes": [ "fallbackNodes": [
{ {
"host": "g1.data.le-sou.org", "host": "g1.data.le-sou.org",
"port": "443" "port": 443
}, },
{ {
"host": "g1.data.duniter.fr", "host": "g1.data.duniter.fr",
"port": "443" "port": 443
} }
], ],
"notifications": { "notifications": {
...@@ -163,20 +163,20 @@ ...@@ -163,20 +163,20 @@
}, },
"node": { "node": {
"host": "g1.le-sou.org", "host": "g1.le-sou.org",
"port": "443" "port": 443
}, },
"fallbackNodes": [ "fallbackNodes": [
{ {
"host": "g1.duniter.org", "host": "g1.duniter.org",
"port": "443" "port": 443
}, },
{ {
"host": "g1.duniter.fr", "host": "g1.duniter.fr",
"port": "443" "port": 443
}, },
{ {
"host": "g1.le-sou.org", "host": "g1.le-sou.org",
"port": "443" "port": 443
} }
], ],
"plugins":{ "plugins":{
...@@ -184,15 +184,15 @@ ...@@ -184,15 +184,15 @@
"enable": true, "enable": true,
"askEnable": true, "askEnable": true,
"host": "g1.data.le-sou.org", "host": "g1.data.le-sou.org",
"port": "443", "port": 443,
"fallbackNodes": [ "fallbackNodes": [
{ {
"host": "g1.data.le-sou.org", "host": "g1.data.le-sou.org",
"port": "443" "port": 443
}, },
{ {
"host": "g1.data.duniter.fr", "host": "g1.data.duniter.fr",
"port": "443" "port": 443
} }
], ],
"notifications": { "notifications": {
...@@ -279,15 +279,15 @@ ...@@ -279,15 +279,15 @@
}, },
"node": { "node": {
"host": "g1.duniter.fr", "host": "g1.duniter.fr",
"port": 9220 "port": 443
}, },
"fallbackNodes": [{ "fallbackNodes": [{
"host": "g1.duniter.org", "host": "g1.duniter.org",
"port": "443" "port": 443
}, },
{ {
"host": "g1.duniter.fr", "host": "g1.duniter.fr",
"port": "443" "port": 443
} }
], ],
"plugins":{ "plugins":{
...@@ -300,11 +300,11 @@ ...@@ -300,11 +300,11 @@
"fallbackNodes": [ "fallbackNodes": [
{ {
"host": "g1.data.le-sou.org", "host": "g1.data.le-sou.org",
"port": "443" "port": 443
}, },
{ {
"host": "g1.data.duniter.fr", "host": "g1.data.duniter.fr",
"port": "443" "port": 443
} }
], ],
"notifications": { "notifications": {
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
}, },
"node": { "node": {
"host": "g1.duniter.org", "host": "g1.duniter.org",
"port": "443" "port": 443
}, },
"plugins":{ "plugins":{
"es": { "es": {
......
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
"version": "12.41.296.5" "version": "12.41.296.5"
} }
] ]
} }
\ No newline at end of file
This diff is collapsed.
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
"devDependencies": { "devDependencies": {
"bower": "^1.8.0", "bower": "^1.8.0",
"delete-empty": "^0.1.3", "delete-empty": "^0.1.3",
"gulp": "^3.9.1",
"gulp-bump": "^2.1.0", "gulp-bump": "^2.1.0",
"gulp-concat": "^2.2.0", "gulp-concat": "^2.2.0",
"gulp-rename": "^1.2.0", "gulp-rename": "^1.2.0",
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
}, },
"ABOUT": { "ABOUT": {
"TITLE": "À propos", "TITLE": "À propos",
"LICENSE": "Application <b>libre</b> (licence GNU GPLv3).", "LICENSE": "Application <b>libre</b> (Licence GNU GPLv3).",
"LATEST_RELEASE": "Il existe une <b>version plus récente</b> de {{'COMMON.APP_NAME'|translate}} (<b>v{{version}}</b>)", "LATEST_RELEASE": "Il existe une <b>version plus récente</b> de {{'COMMON.APP_NAME'|translate}} (<b>v{{version}}</b>)",
"PLEASE_UPDATE": "Veuillez mettre à jour {{'COMMON.APP_NAME'|translate}} (dernière version : <b>v{{version}}</b>)", "PLEASE_UPDATE": "Veuillez mettre à jour {{'COMMON.APP_NAME'|translate}} (dernière version : <b>v{{version}}</b>)",
"CODE": "Code source :", "CODE": "Code source :",
......
This diff is collapsed.
...@@ -10,7 +10,8 @@ angular.module('cesium.settings.services', ['ngApi', 'cesium.config']) ...@@ -10,7 +10,8 @@ angular.module('cesium.settings.services', ['ngApi', 'cesium.config'])
{id:'en-GB', label:'English (UK)'}, {id:'en-GB', label:'English (UK)'},
{id:'fr-FR', label:'Français'}, {id:'fr-FR', label:'Français'},
{id:'nl-NL', label:'Nederlands'}, {id:'nl-NL', label:'Nederlands'},
{id:'es-ES', label:'Spanish'} {id:'es-ES', label:'Spanish'},
{id:'it-IT', label:'Italiano'}
]; ];
var fallbackLocale = csConfig.fallbackLanguage ? fixLocale(csConfig.fallbackLanguage) : 'en'; var fallbackLocale = csConfig.fallbackLanguage ? fixLocale(csConfig.fallbackLanguage) : 'en';
...@@ -21,7 +22,7 @@ angular.module('cesium.settings.services', ['ngApi', 'cesium.config']) ...@@ -21,7 +22,7 @@ angular.module('cesium.settings.services', ['ngApi', 'cesium.config'])
// exists in app locales: use it // exists in app locales: use it
if (_.findWhere(locales, {id: locale})) return locale; if (_.findWhere(locales, {id: locale})) return locale;
// not exists: reiterate with the root(e.g. 'fr-XX' -> 'fr') // not exists: reiterate with the root (e.g. 'fr-XX' -> 'fr')
var localeParts = locale.split('-'); var localeParts = locale.split('-');
if (localeParts.length > 1) { if (localeParts.length > 1) {
return fixLocale(localeParts[0]); return fixLocale(localeParts[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment