Skip to content

Commit 0726aa0

Browse files
wip
1 parent 4305005 commit 0726aa0

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

api.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ message CameraSettings {
9797
}
9898

9999
message BoothSettings {
100+
required BoolSetting new_test_setting = 1;
100101
required ListSetting language_choice = 5;
101102

102103
required BoolSetting storage_enabled = 10;

i18n/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"cameraName": "Kamera-Modell"
1212
},
1313
"booth": {
14+
"newTestSetting": "Hallo @maehw!",
1415
"languageChoice": "Anzeigesprache",
1516
"storageEnabled": "USB-Speicher aktivieren?",
1617
"printerEnabled": "Drucker aktivieren?",

i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"cameraName": "Camera Name"
1212
},
1313
"booth": {
14+
"newTestSetting": "Hi @maehw!",
1415
"languageChoice": "Display Language",
1516
"storageEnabled": "USB Storage Enabled?",
1617
"printerEnabled": "Printer Enabled?",

src/api/BoothApi.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,14 @@ bool BoothApi::start() {
613613

614614
auto controller = logic->getSelfomatController();
615615

616+
{
617+
auto setting = currentBoothSettings.mutable_new_test_setting();
618+
setting->set_name(locale.get<string>("api.booth.newTestSetting"));
619+
setting->set_update_url("/booth_settings/new_test_setting");
620+
// TODO: return actual value here ;-)
621+
setting->set_currentvalue(true);
622+
}
623+
616624
{
617625
auto setting = currentBoothSettings.mutable_language_choice();
618626
setting->set_name(locale.get<string>("api.booth.languageChoice"));

0 commit comments

Comments
 (0)