-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
152 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
vocabulary{ | ||
settings_menu_title{ | ||
str{Settings} | ||
} | ||
|
||
sweep_speed_setting_title{ | ||
str{"Sweep speed:"} | ||
} | ||
|
||
mm_per_sec{ | ||
str{"mm/s"} | ||
} | ||
|
||
language_setting_title{ | ||
str{"Language:"} | ||
} | ||
|
||
spo2_settings_menu_title{ | ||
str{"SpO2 settings"} | ||
} | ||
|
||
waveform_color_setting_title{ | ||
str{"Color:"} | ||
} | ||
|
||
about_menu_title{ | ||
str{"About"} | ||
} | ||
|
||
about_menu:program_title{ | ||
str{"Bedside Patient Monitor DEMO program"} | ||
} | ||
|
||
about_menu:version{ | ||
str{"Version"} | ||
} | ||
|
||
about_menu:powered_by{ | ||
str{"Powered by"} | ||
} | ||
|
||
about_menu:copyright{ | ||
str{"Copyright"} | ||
} | ||
|
||
spo2_simulation{ | ||
str{"SpO2 %, SIMULATION"} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
vocabulary{ | ||
sliders{ | ||
str{liukusäädin} | ||
} | ||
image{ | ||
str{kuva} | ||
} | ||
selection_box{ | ||
str{"valintalaatikko"} | ||
} | ||
hello_world{ | ||
str{"Hei maailman!"} | ||
} | ||
some_checkbox{ | ||
str{"jokin valintaruutu"} | ||
} | ||
language{ | ||
str{"Kieli (Language):"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
vocabulary{ | ||
sliders{ | ||
str{ползунки} | ||
} | ||
image{ | ||
str{изображение} | ||
} | ||
selection_box{ | ||
str{"выпадающее меню выбора"} | ||
} | ||
hello_world{ | ||
str{"Превед медвед!"} | ||
} | ||
some_checkbox{ | ||
str{"какая-то галочка"} | ||
} | ||
language{ | ||
str{"Язык (Language):"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. | |
#include "style.hpp" | ||
|
||
using namespace std::string_literals; | ||
using namespace std::string_view_literals; | ||
|
||
using namespace ruis::length_literals; | ||
|
||
|
@@ -54,7 +55,7 @@ std::vector<utki::shared_ref<ruis::widget>> make_contents(utki::shared_ref<ruis: | |
.font_size = font_size_program_title | ||
} | ||
}, | ||
U"Bedside Patient Monitor DEMO program"s | ||
c.get().localization.get("about_menu:program_title") | ||
), | ||
m::gap(c, | ||
{ | ||
|
@@ -65,7 +66,7 @@ std::vector<utki::shared_ref<ruis::widget>> make_contents(utki::shared_ref<ruis: | |
), | ||
m::text(c, | ||
{}, | ||
(U"Version: "s).append(utki::to_utf32(program_version)) | ||
std::u32string(c.get().localization.get("about_menu:version").string()).append(U": "sv).append(utki::to_utf32(program_version)) | ||
), | ||
m::gap(c, | ||
{ | ||
|
@@ -83,7 +84,7 @@ std::vector<utki::shared_ref<ruis::widget>> make_contents(utki::shared_ref<ruis: | |
.font_size = font_size | ||
} | ||
}, | ||
U"Powered by"s | ||
c.get().localization.get("about_menu:powered_by") | ||
), | ||
m::text(c, | ||
{ | ||
|
@@ -115,7 +116,7 @@ std::vector<utki::shared_ref<ruis::widget>> make_contents(utki::shared_ref<ruis: | |
), | ||
m::text(c, | ||
{}, | ||
U"Copyright (C) 2024 Gagistech Oy <[email protected]>"s | ||
std::u32string(c.get().localization.get("about_menu:copyright").string()).append(U" © 2024 Gagistech Oy <[email protected]>"sv) | ||
) | ||
}; | ||
// clang-format on | ||
|
@@ -132,7 +133,7 @@ about_menu::about_menu(utki::shared_ref<ruis::context> context) : | |
), | ||
menu( | ||
this->context, // | ||
U"About"s, | ||
this->context.get().localization.get("about_menu_title"), | ||
make_contents(this->context) | ||
) | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters