Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
Added internet translation localization
Browse files Browse the repository at this point in the history
- Added localization text via internet translation
     - Will create an issue to properly translate
  • Loading branch information
CometDog committed Dec 5, 2016
1 parent 8255174 commit 8b117f0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions src/c/localize.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ char * localize_get_app_glance_text(int type, int minutes) {
switch (minutes) {
case 1:
if (strncmp(localize_get_locale(), "fr", 2) == 0) {
return "Dernière session: %d minute. Respirez maintenant!";
return "Total actuel: %d minute. Respirez maintenant!";
} else if (strncmp(localize_get_locale(), "es", 2) == 0) {
return "Última sesión: %d minuto. ¡Respira ahora!";
return "Total actual: %d minuto. ¡Respira ahora!";
} else if (strncmp(localize_get_locale(), "de", 2) == 0) {
return "Letzte Sitzung: %d Minute. Atme jetzt!";
return "Aktuelle Summe: %d Minute. Atme jetzt!";
} else {
return "Current total: %d minute. Breathe now!";
}
default:
if (strncmp(localize_get_locale(), "fr", 2) == 0) {
return "Dernière session: %d minutes. Respirez maintenant!";
return "Total actuel: %d minutes. Respirez maintenant!";
} else if (strncmp(localize_get_locale(), "es", 2) == 0) {
return "Última sesión: %d minutos. ¡Respira ahora!";
return "Total actual: %d minutos. ¡Respira ahora!";
} else if (strncmp(localize_get_locale(), "de", 2) == 0) {
return "Letzte Sitzung: %d Minuten. Atme jetzt!";
return "Aktuelle Summe: %d Minuten. Atme jetzt!";
} else {
return "Current total: %d minutes. Breathe now!";
}
Expand Down
10 changes: 5 additions & 5 deletions src/pkjs/config-de.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,26 +187,26 @@ module.exports = [
"items": [
{
"type": "heading",
"defaultValue": "App Glance",
"defaultValue": "App-Blick",
},
{
"type": "toggle",
"messageKey": "appGlanceEnabled",
"defaultValue": true,
"label": "Display app glance text in the app menu",
"label": "App-Blick-Text im app Menü anzeigen",
},
{
"type": "select",
"messageKey": "appGlanceType",
"defaultValue": "0",
"label": "App Glance Type",
"label": "App-Blick-Typ",
"options": [
{
"label": "Last session time",
"label": "Letzte Sitzung Mal",
"value": "0"
},
{
"label": "Current daily total",
"label": "Aktuelle tägliche Summe",
"value": "1"
}
]
Expand Down
10 changes: 5 additions & 5 deletions src/pkjs/config-es.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,26 +187,26 @@ module.exports = [
"items": [
{
"type": "heading",
"defaultValue": "App Glance",
"defaultValue": "Vista de la aplicación",
},
{
"type": "toggle",
"messageKey": "appGlanceEnabled",
"defaultValue": true,
"label": "Display app glance text in the app menu",
"label": "Mostrar la aplicación breve texto en el menú de la aplicación",
},
{
"type": "select",
"messageKey": "appGlanceType",
"defaultValue": "0",
"label": "App Glance Type",
"label": "Tipo de vista de la aplicación",
"options": [
{
"label": "Last session time",
"label": "Último tiempo de la sesión",
"value": "0"
},
{
"label": "Current daily total",
"label": "Total diario actual",
"value": "1"
}
]
Expand Down
10 changes: 5 additions & 5 deletions src/pkjs/config-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,26 +187,26 @@ module.exports = [
"items": [
{
"type": "heading",
"defaultValue": "App Glance",
"defaultValue": "Coup de œil App",
},
{
"type": "toggle",
"messageKey": "appGlanceEnabled",
"defaultValue": true,
"label": "Display app glance text in the app menu",
"label": "Afficher app bref texte dans le menu app",
},
{
"type": "select",
"messageKey": "appGlanceType",
"defaultValue": "0",
"label": "App Glance Type",
"label": "Type de regard app",
"options": [
{
"label": "Last session time",
"label": "Dernière session fois",
"value": "0"
},
{
"label": "Current daily total",
"label": "Total quotidien actuel",
"value": "1"
}
]
Expand Down

0 comments on commit 8b117f0

Please sign in to comment.