Translation improvements

This commit is contained in:
inventor96
2019-11-05 00:57:34 -07:00
parent 13dd0fa77e
commit c6e2b58b52
7 changed files with 189 additions and 75 deletions
+134 -48
View File
@@ -13641,6 +13641,23 @@ function init() {
, ru: 'батарея помпы %1 %2'
, tr: 'Pompa piliniz %1 %2'
},
'virtAsstUploaderBattery': {
bg: 'Your uploader battery is at %1'
, cs: 'Your uploader battery is at %1'
, en: 'Your uploader battery is at %1'
, hr: 'Your uploader battery is at %1'
, de: 'Your uploader battery is at %1'
, dk: 'Your uploader battery is at %1'
, ko: 'Your uploader battery is at %1'
, nl: 'Your uploader battery is at %1'
, zh_cn: 'Your uploader battery is at %1'
, sv: 'Your uploader battery is at %1'
, fi: 'Your uploader battery is at %1'
, ro: 'Your uploader battery is at %1'
, pl: 'Your uploader battery is at %1'
, ru: 'Your uploader battery is at %1'
, tr: 'Your uploader battery is at %1'
},
'virtAsstLastLoop': {
bg: 'The last successful loop was %1'
, cs: 'Poslední úšpěšné provedení smyčky %1'
@@ -13675,39 +13692,73 @@ function init() {
, ru: 'плагин ЗЦ Loop не активирован '
, tr: 'Döngü eklentisi etkin görünmüyor'
},
'virtAsstLoopForecast': {
bg: 'According to the loop forecast you are expected to be %1 over the next %2'
, cs: 'Podle přepovědi smyčky je očekávána glykémie %1 během následujících %2'
, en: 'According to the loop forecast you are expected to be %1 over the next %2'
, hr: 'According to the loop forecast you are expected to be %1 over the next %2'
, de: 'Entsprechend der Loop Vorhersage landest du bei %1 während der nächsten %2'
, dk: 'Ifølge Loops forudsigelse forventes du at blive %1 i den næste %2'
, ko: 'According to the loop forecast you are expected to be %1 over the next %2'
, nl: 'Volgens de Loop voorspelling is je waarde %1 over de volgnede %2'
, zh_cn: '根据loop的预测,在接下来的%2你的血糖将会是%1'
, sv: 'Enligt Loops förutsägelse förväntas du bli %1 inom %2'
, fi: 'Ennusteen mukaan olet %1 seuraavan %2 ajan'
, ro: 'Potrivit previziunii date de loop se estiemază %1 pentru următoarele %2'
, pl: 'Zgodnie z prognozą pętli, glikemia %1 będzie podczas następnego %2'
, ru: 'по прогнозу алгоритма ЗЦ ожидается %1 за последующие %2'
, tr: 'Döngü tahminine göre sonraki %2 ye göre %1 olması bekleniyor'
'virtAsstLoopForecastAround': {
bg: 'According to the loop forecast you are expected to be around %1 over the next %2'
, cs: 'Podle přepovědi smyčky je očekávána glykémie around %1 během následujících %2'
, en: 'According to the loop forecast you are expected to be around %1 over the next %2'
, hr: 'According to the loop forecast you are expected to be around %1 over the next %2'
, de: 'Entsprechend der Loop Vorhersage landest du bei around %1 während der nächsten %2'
, dk: 'Ifølge Loops forudsigelse forventes du at blive around %1 i den næste %2'
, ko: 'According to the loop forecast you are expected to be around %1 over the next %2'
, nl: 'Volgens de Loop voorspelling is je waarde around %1 over de volgnede %2'
, zh_cn: '根据loop的预测,在接下来的%2你的血糖将会是around %1'
, sv: 'Enligt Loops förutsägelse förväntas du bli around %1 inom %2'
, fi: 'Ennusteen mukaan olet around %1 seuraavan %2 ajan'
, ro: 'Potrivit previziunii date de loop se estiemază around %1 pentru următoarele %2'
, pl: 'Zgodnie z prognozą pętli, glikemia around %1 będzie podczas następnego %2'
, ru: 'по прогнозу алгоритма ЗЦ ожидается around %1 за последующие %2'
, tr: 'Döngü tahminine göre sonraki %2 ye göre around %1 olması bekleniyor'
},
'virtAsstAR2Forecast': {
bg: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, cs: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, en: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, hr: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, de: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, dk: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, ko: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, nl: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, zh_cn: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, sv: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, fi: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, ro: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, pl: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, ru: 'According to the AR2 forecast you are expected to be %1 over the next %2'
, tr: 'According to the AR2 forecast you are expected to be %1 over the next %2'
'virtAsstLoopForecastBetween': {
bg: 'According to the loop forecast you are expected to be between %1 and %2 over the next %3'
, cs: 'Podle přepovědi smyčky je očekávána glykémie between %1 and %2 během následujících %3'
, en: 'According to the loop forecast you are expected to be between %1 and %2 over the next %3'
, hr: 'According to the loop forecast you are expected to be between %1 and %2 over the next %3'
, de: 'Entsprechend der Loop Vorhersage landest du bei between %1 and %2 während der nächsten %3'
, dk: 'Ifølge Loops forudsigelse forventes du at blive between %1 and %2 i den næste %3'
, ko: 'According to the loop forecast you are expected to be between %1 and %2 over the next %3'
, nl: 'Volgens de Loop voorspelling is je waarde between %1 and %2 over de volgnede %3'
, zh_cn: '根据loop的预测,在接下来的%3你的血糖将会是between %1 and %2'
, sv: 'Enligt Loops förutsägelse förväntas du bli between %1 and %2 inom %3'
, fi: 'Ennusteen mukaan olet between %1 and %2 seuraavan %3 ajan'
, ro: 'Potrivit previziunii date de loop se estiemază between %1 and %2 pentru următoarele %3'
, pl: 'Zgodnie z prognozą pętli, glikemia between %1 and %2 będzie podczas następnego %3'
, ru: 'по прогнозу алгоритма ЗЦ ожидается between %1 and %2 за последующие %3'
, tr: 'ngü tahminine göre sonraki %3 ye göre between %1 and %2 olması bekleniyor'
},
'virtAsstAR2ForecastAround': {
bg: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, cs: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, en: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, hr: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, de: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, dk: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, ko: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, nl: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, zh_cn: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, sv: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, fi: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, ro: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, pl: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, ru: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
, tr: 'According to the AR2 forecast you are expected to be around %1 over the next %2'
},
'virtAsstAR2ForecastBetween': {
bg: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, cs: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, en: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, hr: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, de: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, dk: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, ko: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, nl: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, zh_cn: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, sv: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, fi: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, ro: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, pl: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, ru: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
, tr: 'According to the AR2 forecast you are expected to be between %1 and %2 over the next %3'
},
'virtAsstForecastUnavailable': {
bg: 'Unable to forecast with the data that is available'
@@ -13760,22 +13811,57 @@ function init() {
, ru: 'OpenAPS прогнозирует ваш СК как %1 '
, tr: 'OpenAPS tarafından tahmin edilen kan şekeri %1'
},
'virtAsstCOB': {
en: '%1 %2 carbohydrates on board'
, cs: '%1 %2 aktivních sachridů'
, de: '%1 %2 Gramm Kohlenhydrate wirkend.'
, dk: '%1 %2 gram aktive kulhydrater'
, ko: '%1 %2 carbohydrates on board'
, nl: '%1 %2 actieve koolhydraten'
, zh_cn: '%1 %2 活性碳水化合物'
, sv: '%1 %2 gram aktiva kolhydrater'
, fi: '%1 %2 aktiivista hiilihydraattia'
, ro: '%1 %2 carbohidrați activi în corp'
, bg: '%1 %2 carbohydrates on board'
, hr: '%1 %2 carbohydrates on board'
, pl: '%1 %2 aktywnych węglowodanów'
, ru: '%1 $2 активных углеводов'
, tr: '%1 %2 aktif karbonhidrat'
'virtAsstCob3person': {
bg: '%1 has $2 carbohydrates on board'
, cs: '%1 has $2 carbohydrates on board'
, de: '%1 has $2 carbohydrates on board'
, dk: '%1 has $2 carbohydrates on board'
, el: '%1 has $2 carbohydrates on board'
, en: '%1 has $2 carbohydrates on board'
, es: '%1 has $2 carbohydrates on board'
, fi: '%1 has $2 carbohydrates on board'
, fr: '%1 has $2 carbohydrates on board'
, he: '%1 has $2 carbohydrates on board'
, hr: '%1 has $2 carbohydrates on board'
, it: '%1 has $2 carbohydrates on board'
, ko: '%1 has $2 carbohydrates on board'
, nb: '%1 has $2 carbohydrates on board'
, nl: '%1 has $2 carbohydrates on board'
, pl: '%1 has $2 carbohydrates on board'
, pt: '%1 has $2 carbohydrates on board'
, ro: '%1 has $2 carbohydrates on board'
, ru: '%1 has $2 carbohydrates on board'
, sk: '%1 has $2 carbohydrates on board'
, sv: '%1 has $2 carbohydrates on board'
, tr: '%1 has $2 carbohydrates on board'
, zh_cn: '%1 has $2 carbohydrates on board'
, zh_tw: '%1 has $2 carbohydrates on board'
},
'virtAsstCob': {
bg: 'You have %1 carbohydrates on board'
, cs: 'You have %1 carbohydrates on board'
, de: 'You have %1 carbohydrates on board'
, dk: 'You have %1 carbohydrates on board'
, el: 'You have %1 carbohydrates on board'
, en: 'You have %1 carbohydrates on board'
, es: 'You have %1 carbohydrates on board'
, fi: 'You have %1 carbohydrates on board'
, fr: 'You have %1 carbohydrates on board'
, he: 'You have %1 carbohydrates on board'
, hr: 'You have %1 carbohydrates on board'
, it: 'You have %1 carbohydrates on board'
, ko: 'You have %1 carbohydrates on board'
, nb: 'You have %1 carbohydrates on board'
, nl: 'You have %1 carbohydrates on board'
, pl: 'You have %1 carbohydrates on board'
, pt: 'You have %1 carbohydrates on board'
, ro: 'You have %1 carbohydrates on board'
, ru: 'You have %1 carbohydrates on board'
, sk: 'You have %1 carbohydrates on board'
, sv: 'You have %1 carbohydrates on board'
, tr: 'You have %1 carbohydrates on board'
, zh_cn: 'You have %1 carbohydrates on board'
, zh_tw: 'You have %1 carbohydrates on board'
},
'virtAsstUnknownIntentTitle': {
en: 'Unknown Intent'
+14 -9
View File
@@ -164,18 +164,23 @@ function init (ctx) {
maxForecastMills = forecast[i].mills;
}
}
var value = '';
var response = '';
if (min === max) {
value = translate('around') + ' ' + max;
response = translate('virtAsstAR2ForecastAround', {
params: [
max
, moment(maxForecastMills).from(moment(sbx.time))
]
});
} else {
value = translate('between') + ' ' + min + ' ' + translate('and') + ' ' + max;
response = translate('virtAsstAR2ForecastBetween', {
params: [
min
, max
, moment(maxForecastMills).from(moment(sbx.time))
]
});
}
var response = translate('virtAsstAR2Forecast', {
params: [
value
, moment(maxForecastMills).from(moment(sbx.time))
]
});
next('AR2 Forecast', response);
} else {
next('AR2 Forecast', translate('virtAsstUnknown'));
+15 -5
View File
@@ -293,12 +293,22 @@ function init (ctx) {
};
function virtAsstCOBHandler (next, slots, sbx) {
var preamble = (slots && slots.pwd && slots.pwd.value) ? slots.pwd.value.replace('\'s', '') + ' has' : 'You have';
var value = 'no';
if (sbx.properties.cob && sbx.properties.cob.cob !== 0) {
value = sbx.properties.cob.cob;
var response = '';
var value = (sbx.properties.cob && sbx.properties.cob.cob) ? sbx.properties.cob.cob : 0;
if (slots && slots.pwd && slots.pwd.value) {
response = translate('virtAsstCob3person', {
params: [
slots.pwd.value.replace('\'s', '')
, value
]
});
} else {
response = translate('virtAsstCob', {
params: [
value
]
});
}
var response = preamble + ' ' + value + ' carbohydrates on board';
next('Current COB', response);
}
+14 -9
View File
@@ -527,18 +527,23 @@ function init (ctx) {
min = forecast[i];
}
}
var value = '';
var response = '';
if (min === max) {
value = translate('around') + ' ' + max;
response = translate('virtAsstLoopForecastAround', {
params: [
max
, moment(maxForecastMills).from(moment(sbx.time))
]
});
} else {
value = translate('between') + ' ' + min + ' ' + translate('and') + ' ' + max;
response = translate('virtAsstLoopForecastBetween', {
params: [
min
, max
, moment(maxForecastMills).from(moment(sbx.time))
]
});
}
var response = translate('virtAsstLoopForecast', {
params: [
value
, moment(endPrediction).from(moment(sbx.time))
]
});
next('Loop Forecast', response);
}
} else {
+2 -2
View File
@@ -523,9 +523,9 @@ function init (ctx) {
sbx.properties.openaps.lastEventualBG
]
});
next('Loop Forecast', response);
next('OpenAPS Forecast', response);
} else {
next('Loop Forecast', translate('virtAsstUnknown'));
next('OpenAPS Forecast', translate('virtAsstUnknown'));
}
}
+5 -1
View File
@@ -108,7 +108,11 @@ function init (ctx) {
function virtAsstRawBGHandler (next, slots, sbx) {
if (sbx.properties.rawbg.mgdl) {
var response = 'Your raw bg is ' + sbx.properties.rawbg.mgdl;
var response = translate('virtAsstRawBG', {
params: [
sbx.properties.rawbg.mgdl
]
});
next('Current Raw BG', response);
} else {
next('Current Raw BG', translate('virtAsstUnknown'));
+5 -1
View File
@@ -223,7 +223,11 @@ function init() {
function virtAsstUploaderBatteryHandler (next, slots, sbx) {
if (sbx.properties.upbat.display) {
var response = 'Your uploader battery is at ' + sbx.properties.upbat.display;
var response = translate('virtAsstUploaderBattery', {
params: [
sbx.properties.upbat.display
]
});
next('Uploader Battery', response);
} else {
next('Uploader Battery', translate('virtAsstUnknown'));