diff --git a/res/localization/en.tml b/res/localization/en.tml index 4434d15..8e80a9e 100644 --- a/res/localization/en.tml +++ b/res/localization/en.tml @@ -1,29 +1,29 @@ vocabulary{ - settings_menu_title{ + settings_menu:title{ str{Settings} } - sweep_speed_setting_title{ + settings_menu:sweep_speed_title{ str{"Sweep speed:"} } - mm_per_sec{ - str{"mm/s"} + settings_menu:sweep_speed_value{ + str{"{0} mm/s"} } - - language_setting_title{ + + settings_menu:language_title{ str{"Language:"} } - spo2_settings_menu_title{ + spo2_settings_menu:title{ str{"SpO2 settings"} } - waveform_color_setting_title{ + spo2_settings_menu:color_title{ str{"Color:"} } - about_menu_title{ + about_menu:title{ str{"About"} } @@ -32,7 +32,7 @@ vocabulary{ } about_menu:version{ - str{"Version"} + str{"Version: {0}"} } about_menu:powered_by{ diff --git a/res/localization/fi.tml b/res/localization/fi.tml index d123424..3d3dac8 100644 --- a/res/localization/fi.tml +++ b/res/localization/fi.tml @@ -1,29 +1,29 @@ vocabulary{ - settings_menu_title{ + settings_menu:title{ str{Asetukset} } - sweep_speed_setting_title{ + settings_menu:sweep_speed_title{ str{"Lakaisunopeus:"} } - mm_per_sec{ - str{"mm/s"} + settings_menu:sweep_speed_value{ + str{"{0} mm/s"} } - language_setting_title{ + settings_menu:language_title{ str{"Kieli (Language):"} } - spo2_settings_menu_title{ + spo2_settings_menu:title{ str{"SpO2 asetukset"} } - waveform_color_setting_title{ + spo2_settings_menu:color_title{ str{"Väri:"} } - about_menu_title{ + about_menu:title{ str{"Tietoja ohjelmasta"} } @@ -32,7 +32,7 @@ vocabulary{ } about_menu:version{ - str{"Versio"} + str{"Versio: {0}"} } about_menu:powered_by{ diff --git a/res/localization/ru.tml b/res/localization/ru.tml index f5a9a2f..12db597 100644 --- a/res/localization/ru.tml +++ b/res/localization/ru.tml @@ -1,29 +1,29 @@ vocabulary{ - settings_menu_title{ + settings_menu:title{ str{Настройки} } - sweep_speed_setting_title{ - str{"Скорость заметания:"} + settings_menu:sweep_speed_title{ + str{"Скорость развертки:"} } - mm_per_sec{ - str{"мм/с"} + settings_menu:sweep_speed_value{ + str{"{0} мм/с"} } - language_setting_title{ + settings_menu:language_title{ str{"Язык (Language):"} } - spo2_settings_menu_title{ + spo2_settings_menu:title{ str{"Настройки SpO2"} } - waveform_color_setting_title{ + spo2_settings_menu:color_title{ str{"Цвет:"} } - about_menu_title{ + about_menu:title{ str{"О программе"} } @@ -32,7 +32,7 @@ vocabulary{ } about_menu:version{ - str{"Версия"} + str{"Версия: {0}"} } about_menu:powered_by{ diff --git a/src/bedsidemon/about_menu.cpp b/src/bedsidemon/about_menu.cpp index 09dec28..340a680 100644 --- a/src/bedsidemon/about_menu.cpp +++ b/src/bedsidemon/about_menu.cpp @@ -66,7 +66,7 @@ std::vector> make_contents(utki::shared_ref context) : ), menu( this->context, // - this->context.get().localization.get("about_menu_title"), + this->context.get().localization.get("about_menu:title"), make_contents(this->context) ) {} diff --git a/src/bedsidemon/settings_menu.cpp b/src/bedsidemon/settings_menu.cpp index ef63ff1..0560996 100644 --- a/src/bedsidemon/settings_menu.cpp +++ b/src/bedsidemon/settings_menu.cpp @@ -86,7 +86,7 @@ class sweep_speed_selection_box_provider : public ruis::selection_box::provider .font_size = style::font_size_setting } }, - utki::to_utf32(utki::cat(speed_mm_per_sec, ' ')).append(c.get().localization.get("mm_per_sec").string()) + c.get().localization.get("settings_menu:sweep_speed_value").format({utki::to_utf32(utki::cat(speed_mm_per_sec))}) ) } ); @@ -201,7 +201,7 @@ std::vector> make_menu_contents(utki::shared_ref< .font_size = style::font_size_setting } }, - c.get().localization.get("sweep_speed_setting_title") + c.get().localization.get("settings_menu:sweep_speed_title") ), m::gap(c, { @@ -240,7 +240,7 @@ std::vector> make_menu_contents(utki::shared_ref< .font_size = style::font_size_setting } }, - c.get().localization.get("language_setting_title") + c.get().localization.get("settings_menu:language_title") ), m::gap(c, { @@ -265,7 +265,7 @@ settings_menu::settings_menu(utki::shared_ref context) : ), menu( this->context, // - this->context.get().localization.get("settings_menu_title"), + this->context.get().localization.get("settings_menu:title"), make_menu_contents(this->context) ) { diff --git a/src/bedsidemon/spo2/spo2_parameter_window_menu.cpp b/src/bedsidemon/spo2/spo2_parameter_window_menu.cpp index 8fc7d96..e34306e 100644 --- a/src/bedsidemon/spo2/spo2_parameter_window_menu.cpp +++ b/src/bedsidemon/spo2/spo2_parameter_window_menu.cpp @@ -96,7 +96,7 @@ std::vector> make_menu_contents(utki::shared_ref< .font_size = style::font_size_setting } }, - c.get().localization.get("waveform_color_setting_title") + c.get().localization.get("spo2_settings_menu:color_title") ), m::gap(c, { @@ -138,7 +138,7 @@ spo2_parameter_window_menu::spo2_parameter_window_menu( ), menu( this->context, // - this->context.get().localization.get("spo2_settings_menu_title"), + this->context.get().localization.get("spo2_settings_menu:title"), make_menu_contents(this->context) ), spo2_pw(std::move(spo2_pw))