~aleteoryx/muditaos

e296013b51c6fcdfbb18adcdaf4783a6ff6f5378 — Adam Wulkiewicz 3 years ago 55b3c9c
[BH-1622][BH-1623] Add/fix translations in relaxation

Add translations related to once and loop screens.
Fix PL minutes text.
M image/assets/lang/Deutsch.json => image/assets/lang/Deutsch.json +5 -1
@@ 652,7 652,11 @@
  "app_bell_bedtime_notification": "Schlafenszeit",
  "app_bell_alarm_set_not_active": "<text>Alarm eingestellt.<br />Tief drücken, um zu aktivieren.</text>",
  "app_bell_relaxation_timer_title": "Timer",
  "app_bell_relaxation_timer_off": "AUS",
  "app_bell_relaxation_once": "einmal",
  "app_bell_relaxation_once_description": "das Lied wird einmal abgespielt",
  "app_bell_relaxation_loop": "endlos",
  "app_bell_relaxation_looped" : "geschlungen",
  "app_bell_relaxation_loop_description": "der Titel wird abgespielt, bis Sie ihn ausschalten",
  "app_bell_onboarding_welcome_message": "<text>Mudita Harmony<br/>ist ausgeschaltet</text>",
  "app_bell_onboarding_info_rotate": "<text weight='regular' size='38'>Drehen </text><text weight='light' size='38'>um auszuwählen</text>",
  "app_bell_onboarding_info_light_click": "<text weight='regular' size='38'>Leichter Klick </text><text weight='light' size='38'>um fortzufahren</text>",

M image/assets/lang/Espanol.json => image/assets/lang/Espanol.json +5 -1
@@ 669,7 669,11 @@
  "app_bellmain_settings": "Ajustes",
  "app_bell_bedtime_notification": "Es tu hora de dormir",
  "app_bell_relaxation_timer_title": "Temporizador",
  "app_bell_relaxation_timer_off": "OFF",
  "app_bell_relaxation_once": "una vez",
  "app_bell_relaxation_once_description": "la canción se reproducirá una vez",
  "app_bell_relaxation_loop": "bucle",
  "app_bell_relaxation_looped" : "en bucle",
  "app_bell_relaxation_loop_description": "la canción se reproducirá hasta que la apagues",
  "app_bell_settings_home_view": "Vista de inicio",
  "app_bell_settings_alarm_settings": "Ajustes de alarma",
  "app_bell_settings_alarm_settings_title": "Ajustes de alarma",

M image/assets/lang/Francais.json => image/assets/lang/Francais.json +5 -1
@@ 640,7 640,11 @@
  "app_bellmain_relaxation": "Bruits de fond",
  "app_bell_alarm_set_not_active": "<text>Alarme réglée.<br />Appuyer fort pour activer.</text>",
  "app_bell_relaxation_timer_title": "Minuterie",
  "app_bell_relaxation_timer_off": "OFF",
  "app_bell_relaxation_once": "une fois",
  "app_bell_relaxation_once_description": "le morceau sera lu une fois",
  "app_bell_relaxation_loop": "en boucle",
  "app_bell_relaxation_looped" : "en boucle",
  "app_bell_relaxation_loop_description": "le morceau sera lu jusqu'à ce que vous l'éteigniez",
  "app_bell_settings_home_view": "Écran d'accueil",
  "app_bell_settings_alarm_settings": "Alarme",
  "app_bell_settings_alarm_settings_title": "Alarme",

M image/assets/lang/Polski.json => image/assets/lang/Polski.json +5 -1
@@ 711,7 711,11 @@
  ],
  "app_bell_alarm_set_not_active": "Naciśnij głęboko, aby aktywować.",
  "app_bell_relaxation_timer_title": "Wyłącznik czasowy",
  "app_bell_relaxation_timer_off": "Wyłączony",
  "app_bell_relaxation_once": "raz",
  "app_bell_relaxation_once_description": "utwór zostanie odtworzony jeden raz",
  "app_bell_relaxation_loop": "w pętli",
  "app_bell_relaxation_looped" : "zapętlony",
  "app_bell_relaxation_loop_description": "utwór będzie odtwarzany do momentu wyłączenia go",
  "app_bell_settings_alarm_settings_prewake_up": "Wstępne budzenie",
  "app_bell_settings_alarm_settings_prewake_up_chime_top_description": "Wstępne budzenie",
  "app_bell_settings_alarm_settings_prewake_up_chime_bottom_description": "przed alarmem",

M products/BellHybrid/apps/application-bell-relaxation/windows/RelaxationTimerSelectWindow.cpp => products/BellHybrid/apps/application-bell-relaxation/windows/RelaxationTimerSelectWindow.cpp +3 -6
@@ 131,12 131,9 @@ namespace gui

    void RelaxationTimerSelectWindow::updateBottomDescription()
    {
        const auto currentVal = spinner->value();
        bottomDescription->setText(utils::language::getCorrectMinutesNumeralForm(UTF8ToTimerValue(currentVal).count()));
        const auto minutesValue = UTF8ToTimerValue(spinner->value());

        const auto description = UTF8ToTimerValue(currentVal);

        switch (description.count()) {
        switch (minutesValue.count()) {
        case onceValue.count():
            bottomDescription->setText(utils::translate("app_bell_relaxation_once_description"));
            break;


@@ 144,7 141,7 @@ namespace gui
            bottomDescription->setText(utils::translate("app_bell_relaxation_loop_description"));
            break;
        default:
            bottomDescription->setText(utils::translate("common_minutes_lower"));
            bottomDescription->setText(utils::language::getCorrectMinutesNumeralForm(minutesValue.count()));
            break;
        }
    }