Skip to content

Commit

Permalink
added italian
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Hoffmann committed Feb 1, 2017
1 parent e154659 commit 6ee5307
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
/_exclude
*.sln
*.suo
Web.config
Web.config
debug.log
3 changes: 2 additions & 1 deletion tools/coil/cache.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CACHE MANIFEST
# https://developer.mozilla.org/en/docs/HTML/Using_the_application_cache
# version 20151129
# version 20170201
CACHE:
embed.html
help.html
Expand All @@ -17,6 +17,7 @@ help.html
content/js/app.js
content/js/res.fr.json
content/js/res.en.json
content/js/res.it.json
content/js/wire.json
content/css/app.css
content/img/favicon.png
Expand Down
6 changes: 3 additions & 3 deletions tools/coil/content/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ coilApp.controller("CoilCtrl", function ($scope, $http, $uibModal) {
$scope.target = $scope.iframe ? "_blank" : "_self";

//#region Translations,
var supported = { "en": "en", "fr": "fr" };
var supported = { "en": "en", "fr": "fr", "it": "it" };
var current = navigator.language.substr(0, 2);

$http.get("content/js/res." + (supported[current] || "fr") + ".json")
$http.get("content/js/res." + (supported[current] || "en") + ".json")
.success(function (data) {
$scope.res = angular.fromJson(data);
});
Expand Down Expand Up @@ -142,7 +142,7 @@ coilApp.controller("CoilCtrl", function ($scope, $http, $uibModal) {
model.wire.height = model.wire.width;
}

// Resistance/mm (resistivity in ohm/mm²/meter)
// Resistance/mm (resistivity in ohm/mm/meter)
// http://fr.wikipedia.org/wiki/R%C3%A9sistivit%C3%A9
// http://www.kanthal.com/en/products/materials-in-wire-and-strip-form/wire/resistance-heating-wire-and-resistance-wire/list-of-alloys/
var resistance = (model.wire.resistivity / (section * model.wire.count)) / 1000;
Expand Down
37 changes: 37 additions & 0 deletions tools/coil/content/js/res.it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"ConsumptionTitle": "E-Liquid Calculator",
"CalculatorTitle" : "Calcolatrice Micro-Coil",
"Social" : "Social Networks",
"EmbedLink" : "Incorporare",
"EmbedTitle" : "Proporre sul tuo sito",
"EmbedPreview" : "Anteprima",

"WireType" : "Filo: Tipo",
"WireHeight" : "Filo: Altezza",
"WireWidth" : "Filo: Larghezza",
"WireDiameter": "Filo: Diametro",
"CoilDiameter": "Coil: Diametro",
"CoilTurns" : "Bobina: Giri",
"CoilFeet" : "Bobina: Piedi",
"Resistance" : "Resistenza",
"Coefficient" : "Riscaldamento Coefficient",
"Power" : "Energia",
"Amperes" : "Ampere",
"Voltage" : "Tensione",
"CoilCount" : "Bobina: Contare",
"WireCount" : "Filo: Contare",
"WireLength" : "Lunghezza del cavo",
"CoilWidth" : "Larghezza della bobina",

"Reset": "Ripristinare le impostazioni predefinite",

"CoeffTitle" : "Riscaldamento Coefficient",
"CoeffContent1": "Il coefficiente di riscaldamento provoca la resistenza viene riscaldata in modo relativamente uniforme su tutta la gamma della carica della batteria.",
"CoeffContent2": "Per un setup ideale",
"CoeffContent3": "Massima della batteria (4.2 Volt)",
"CoeffContent4": "Il coefficiente dovrebbe essere di circa 0.28-0.35",
"CoeffContent5": "Minima della batteria (3.2-3.4 Volt)",
"CoeffContent6": "Il coefficiente dovrebbe essere di circa 0.18-0.22",
"CoeffContent7": "Prima di calcolare la configurazione, e quindi verificare il coefficiente.",
"CoeffContent8": "Se tutto è come dovrebbe essere, si avrà un Vape coerente dall'inizio alla fine della carica della batteria. A volte si può anche scaricare la batteria fino a 2,5 volt ed a mala pena notare ^^"
}
3 changes: 2 additions & 1 deletion tools/consommation/cache.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CACHE MANIFEST
# https://developer.mozilla.org/en/docs/HTML/Using_the_application_cache
# version 20151129
# version 20170201
CACHE:
embed.html
../content/libs/jquery/jquery-1.11.3.min.js
Expand All @@ -16,6 +16,7 @@ embed.html
content/js/app.js
content/js/res.fr.json
content/js/res.en.json
content/js/res.it.json
content/css/app.css
content/img/favicon.png
content/img/apple-touch-icon.png
Expand Down
4 changes: 2 additions & 2 deletions tools/consommation/content/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ consommationApp.controller("ConsommationCtrl", function ($scope, $http, $uibModa
$scope.target = $scope.iframe ? "_blank" : "_self";

//#region Translations
var supported = { "en": "en", "fr": "fr" };
var supported = { "en": "en", "fr": "fr", "it": "it" };
var current = navigator.language.substr(0, 2);

$http.get("content/js/res." + (supported[current] || "fr") + ".json")
$http.get("content/js/res." + (supported[current] || "en") + ".json")
.success(function (data) {
$scope.res = angular.fromJson(data);
});
Expand Down
26 changes: 26 additions & 0 deletions tools/consommation/content/js/res.it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"ConsumptionTitle": "E-Liquid Calculator",
"CalculatorTitle" : "Calcolatrice Micro-Coil",
"Social" : "Social Networks",
"EmbedLink" : "Incorporare",
"EmbedTitle" : "Proporre sul tuo sito",
"EmbedPreview" : "Anteprima",

"ConsommationDay" : "Consumi/giorno",
"ConsumptionHelp" : "Numero di sigarette attualmente consumata.",
"NicotinePercentage" : "Nicotina/sigaretta",
"NicotineHelp" : "Quantità di nicotina per sigaretta. Le cifre sulla confezione.",
"NicotineCigarette" : "Nicotina (sigarette)",
"TotalDay" : "Totale/giorno",
"ErrorMargin" : "Margine di errore",
"Assimilated" : "Reale assimilato",
"ELiquid" : "E-Liquid",
"NicotineEquivalent" : "Equivalenza nicotina",
"AssimilatedPercent" : "Percentuale di assimilazione",
"NicotineAssimilated": "Nicotina assimilata",
"NicotineLiquid" : "Nicotina E-Liquid",
"LiquidToConsume" : "E-Liquid per consumare",
"PerDay" : "Al/giorno",
"PerWeek" : "Al/settimana",
"PerMonth" : "Al/mese"
}

0 comments on commit 6ee5307

Please sign in to comment.