Skip to content

Commit 90340ed

Browse files
authored
Merge pull request #1377 from alessandrococco/translations-ita
Italian translations
2 parents 8983e69 + 6cf60c2 commit 90340ed

File tree

4 files changed

+163
-26
lines changed

4 files changed

+163
-26
lines changed

apps/alarm/boot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
active = active.sort((a,b)=>(a.hr-b.hr)+(a.last-b.last)*24);
88
var hr = time.getHours()+(time.getMinutes()/60)+(time.getSeconds()/3600);
99
if (!require('Storage').read("alarm.js")) {
10-
console.log(/*LANG*/"No alarm app!");
10+
console.log("No alarm app!");
1111
require('Storage').write('alarm.json',"[]");
1212
} else {
1313
var t = 3600000*(active[0].hr-hr);

apps/launch/settings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
require("Storage").write("launch.json",settings);
99
}
1010
const appMenu = {
11-
/*LANG*/"": {"title": /*LANG*/"Launcher Settings"},
11+
"": {"title": /*LANG*/"Launcher Settings"},
1212
/*LANG*/"< Back": back,
1313
/*LANG*/"Font": {
1414
value: fonts.includes(settings.font)? fonts.indexOf(settings.font) : fonts.indexOf("12x20"),

bin/language_scan.js

+18-8
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,29 @@ log(untranslatedStrings.filter(e => e.uses>2).filter(e => !translatedStrings.fin
157157
log("");
158158
//process.exit(1);
159159

160-
var languages = JSON.parse(fs.readFileSync(BASEDIR+"/lang/index.json").toString());
160+
let languages = JSON.parse(fs.readFileSync(`${BASEDIR}/lang/index.json`).toString());
161161
languages.forEach(language => {
162-
if (language.code=="en_GB") {
163-
console.log("Ignoring "+language.code);
162+
if (language.code == "en_GB") {
163+
console.log(`Ignoring ${language.code}`);
164164
return;
165165
}
166-
console.log("Scanning "+language.code);
166+
console.log(`Scanning ${language.code}`);
167167
log(language.code);
168168
log("==========");
169-
var translations = JSON.parse(fs.readFileSync(BASEDIR+"/lang/"+language.url).toString());
170-
translatedStrings.forEach(str => {
171-
if (!translations.GLOBAL[str.str])
172-
console.log(`Missing translation for ${JSON.stringify(str)}`);
169+
let translations = JSON.parse(fs.readFileSync(`${BASEDIR}/lang/${language.url}`).toString());
170+
translatedStrings.forEach(translationItem => {
171+
if (!translations.GLOBAL[translationItem.str]) {
172+
console.log(`Missing GLOBAL translation for ${JSON.stringify(translationItem)}`);
173+
translationItem.files.forEach(file => {
174+
let m = file.match(/\/([a-zA-Z0-9_-]*)\//g);
175+
if (m && m[0]) {
176+
let appName = m[0].replaceAll("/", "");
177+
if (translations[appName] && translations[appName][translationItem.str]) {
178+
console.log(` but LOCAL translation found in \"${appName}\"`);
179+
}
180+
}
181+
});
182+
}
173183
});
174184
log("");
175185
});

lang/it_IT.json

+143-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,148 @@
11
{
2-
"//":"Italian language translations",
2+
"//1": "Italian language translations",
33
"GLOBAL": {
4-
"//":"Translations that apply for all apps",
5-
"Alarms" : "Sveglie",
6-
"Hours" : "Ore",
7-
"Minutes" : "Minuti",
8-
"Enabled" : "Attiva",
9-
"New Alarm" : "Nuova sveglia",
10-
"Save" : "Salva",
11-
"Back" : "Indietro",
12-
"Repeat" : "Ripeti",
13-
"Delete" : "Cancella",
14-
"ALARM!" : "SVEGLIA!",
15-
"Sleep" : "Dormi"
4+
"//": "Translations that apply for all apps",
5+
"On": "On",
6+
"on": "on",
7+
"Off": "Off",
8+
"off": "off",
9+
"Ok": "Ok",
10+
"Yes": "",
11+
"No": "No",
12+
"Alarm": "Sveglia",
13+
"ALARM": "SVEGLIA",
14+
"Alarms": "Sveglie",
15+
"Date": "Data",
16+
"Year": "Anno",
17+
"Month": "Mese",
18+
"Day": "Giorno",
19+
"Hour": "Ora",
20+
"Hours": "Ore",
21+
"Minute": "Minuto",
22+
"Minutes": "Minuti",
23+
"Second": "Secondo",
24+
"Seconds": "Secondi",
25+
"week": "settimana",
26+
"Week": "Settimana",
27+
"Enabled": "Attivo/a",
28+
"New Alarm": "Nuova sveglia",
29+
"Save": "Salva",
30+
"Cancel": "Annulla",
31+
"Back": "Indietro",
32+
"Repeat": "Ripeti",
33+
"Delete": "Cancella",
34+
"ALARM!": "SVEGLIA!",
35+
"Sleep": "Dormi",
36+
"Timer": "Timer",
37+
"TIMER": "TIMER",
38+
"New Timer": "Nuovo timer",
39+
"(repeat)": "(ripeti)",
40+
"Auto snooze": "Posticipa automaticamente",
41+
"Connected": "Connesso",
42+
"Delete all messages": "Cancella tutti i messaggi",
43+
"Delete All Messages": "Cancella tutti i messaggi",
44+
"Message": "Messaggio",
45+
"Messages": "Messaggi",
46+
"No Messages": "Nessun messaggio",
47+
"Keep Msgs": "Tieni i messaggi",
48+
"Mark Unread": "Segna come non letto",
49+
"Vibrate": "Vibrazione",
50+
"Are you sure": "Sei sicuro/a",
51+
"Music": "Musica",
52+
"Apps": "App",
53+
"App Settings": "Impostazioni app",
54+
"Bluetooth": "Bluetooth",
55+
"BLE": "BLE",
56+
"Make Connectable": "Rendi collegabile",
57+
"Programmable": "Programmabile",
58+
"Remove": "Rimuovi",
59+
"Utils": "Utilità",
60+
"LCD": "LCD",
61+
"LCD Brightness": "Luminosità LCD",
62+
"LCD Timeout": "Timeout LCD",
63+
"Wake on BTN1": "Risveglia con BTN1",
64+
"Wake on BTN2": "Risveglia con BTN2",
65+
"Wake on BTN3": "Risveglia con BTN3",
66+
"Wake on FaceUp": "Risveglia a faccia in su",
67+
"Wake on Touch": "Risveglia al tocco",
68+
"Wake on Twist": "Risveglia con polso",
69+
"Twist Timeout": "Timeout torsione",
70+
"Twist Max Y": "Torsione Y max",
71+
"Twist Threshold": "Soglia torsione",
72+
"Customize": "Personalizza",
73+
"Add Device": "Aggiungi dispositivo",
74+
"Left": "Sinistra",
75+
"Right": "Destra",
76+
"Widgets": "Widget",
77+
"Settings": "Impostazioni",
78+
"No app has settings": "Non ci sono app con delle impostazioni",
79+
"System": "Sistema",
80+
"Alerts": "Avvisi",
81+
"Theme": "Tema",
82+
"Foreground": "Primo piano",
83+
"Background": "Sfondo",
84+
"Foreground 2": "Primo piano 2",
85+
"Background 2": "Sfondo 2",
86+
"Highlight FG": "Selezione PP",
87+
"Highlight BG": "Selezione Sf",
88+
"Utilities": "Utilità",
89+
"Storage": "Memoria",
90+
"Compact Storage": "Compatta memoria",
91+
"Select Clock": "Seleziona orologio",
92+
"No Clocks Found": "Nessun orologio trovato",
93+
"Locale": "Localizzazione",
94+
"Set Time": "Imposta orario",
95+
"Time Zone": "Fuso orario",
96+
"Whitelist": "Whitelist",
97+
"Quiet Mode": "Modalità silenziosa",
98+
"Disable": "Disabilita",
99+
"Vibration": "Vibrazione",
100+
"Show": "Mostra",
101+
"Hide": "Nascondi",
102+
"Rewrite Settings": "Riscrivi impostazioni",
103+
"Reset Settings": "Reset impostazioni",
104+
"Factory Reset": "Ripristino condizioni iniziali",
105+
"Flatten Battery": "Scarica la batteria",
106+
"Turn Off": "Spegni",
107+
"This will remove everything": "Questo rimuoverà TUTTO",
108+
"Error in settings": "Errore nelle impostazioni",
109+
"Invalid settings": "Impostazioni non valide",
110+
"Loading": "Caricamento",
111+
"Launcher Settings": "Impostazioni Launcher",
112+
"Font": "Font",
113+
"Show clocks": "Mostra orologi",
114+
"Log": "Log",
115+
"Steps": "Passi",
116+
"steps": "passi"
16117
},
17-
"alarm": {
18-
"//":"App-specific overrides",
19-
"rpt" : "ripeti"
118+
"//2": "App-specific overrides",
119+
"launch": {
120+
"Vector font size": "Dim. font vett.",
121+
"App Source\nNot found": "Codice app\nnon trovato"
122+
},
123+
"messages": {
124+
"Unread timer": "Timer msg non letti"
125+
},
126+
"run": {
127+
"Record Run": "Registra corsa"
128+
},
129+
"setting": {
130+
"Clock Style": "Formato ora",
131+
"Compacting...\nTakes approx\n1 minute": "Compattamento in corso...\nCi vorrà circa un minuto",
132+
"//1": "The new line before 'operazione' improves the layout",
133+
"Flattening battery - this can take hours.\nLong-press button to cancel": "Scaricamento batteria in corso - l'\noperazione può richiedere ore. Tieni premuto il pulsante per annullare",
134+
"Reset to Defaults": "Ripristinare le impostazioni predefinite",
135+
"Connectable": "Collegamento",
136+
"Connect device\nto add to\nwhitelist": "Collega un\ndispositivo\nper metterlo\nin whitelist",
137+
"Stay Connectable": "Rimanere collegabile",
138+
"Light BW": "Chiaro",
139+
"Dark BW": "Scuro"
140+
},
141+
"wid_edit": {
142+
"Reset": "Ripristina",
143+
"Reset All": "Ripristina tutto",
144+
"Reset all widgets": "Ripristina tutti i widget",
145+
"Sort Order": "Ordinamento",
146+
"Side": "Lato"
20147
}
21148
}

0 commit comments

Comments
 (0)