diff --git a/docroot/text.xml b/docroot/text.xml index 6bfaddb..d57c243 100644 --- a/docroot/text.xml +++ b/docroot/text.xml @@ -1,5 +1,20 @@ + + Please type in your nick for the chat: + + + Gender: + + + Age: + + + Country: + + + Start chat +
diff --git a/docroot/text_de_DE.xml b/docroot/text_de_DE.xml index 6284bb2..64e610c 100644 --- a/docroot/text_de_DE.xml +++ b/docroot/text_de_DE.xml @@ -1,5 +1,20 @@ + + Bitte gib deinen Nicknamen für den Chat ein: + + + Geschlecht: + + + Alter: + + + Land: + + + Chat starten +
diff --git a/docroot/text_en_GB.xml b/docroot/text_en_GB.xml index 9055a90..6b124f5 100644 --- a/docroot/text_en_GB.xml +++ b/docroot/text_en_GB.xml @@ -1,5 +1,20 @@ + + Please type in your nick for the chat: + + + Gender: + + + Age: + + + Country: + + + Start chat +
diff --git a/docroot/text_en_US.xml b/docroot/text_en_US.xml index e3e24cf..ae17179 100644 --- a/docroot/text_en_US.xml +++ b/docroot/text_en_US.xml @@ -1,5 +1,20 @@ + + Please type in your nick for the chat: + + + Gender: + + + Age: + + + Country: + + + Start chat +
diff --git a/docroot/text_es_ES.xml b/docroot/text_es_ES.xml index 3961deb..14aae2e 100644 --- a/docroot/text_es_ES.xml +++ b/docroot/text_es_ES.xml @@ -1,5 +1,20 @@ + + Escribe tu nick para el chat: + + + Género: + + + Edad: + + + País: + + + Iniciar chat +
diff --git a/docroot/text_fr_FR.xml b/docroot/text_fr_FR.xml index 345bd2d..5c095d9 100644 --- a/docroot/text_fr_FR.xml +++ b/docroot/text_fr_FR.xml @@ -1,5 +1,20 @@ + + Veuillez saisir votre pseudo pour le chat : + + + Genre : + + + Âge : + + + Pays : + + + Lancer le chat +
diff --git a/docroot/text_it_IT.xml b/docroot/text_it_IT.xml index 6a3f284..6044cc6 100644 --- a/docroot/text_it_IT.xml +++ b/docroot/text_it_IT.xml @@ -1,5 +1,20 @@ + + Inserisci il tuo nick per la chat: + + + Genere: + + + Età: + + + Paese: + + + Avvia chat +
diff --git a/docroot/text_ja_JP.xml b/docroot/text_ja_JP.xml index 3124997..b30959b 100644 --- a/docroot/text_ja_JP.xml +++ b/docroot/text_ja_JP.xml @@ -1,5 +1,20 @@ + + チャット用のニックネームを入力してください: + + + 性別: + + + 年齢: + + + 国: + + + チャットを開始 +
diff --git a/docroot/text_th_TH.xml b/docroot/text_th_TH.xml index ca3340f..c26e8d6 100644 --- a/docroot/text_th_TH.xml +++ b/docroot/text_th_TH.xml @@ -1,5 +1,20 @@ + + กรุณาใส่ชื่อเล่นของคุณสำหรับแชท: + + + เพศ: + + + อายุ: + + + ประเทศ: + + + เริ่มแชท +
diff --git a/docroot/text_tl_PH.xml b/docroot/text_tl_PH.xml index e9d41fe..d4e8df9 100644 --- a/docroot/text_tl_PH.xml +++ b/docroot/text_tl_PH.xml @@ -1,5 +1,20 @@ + + Ilagay ang iyong nick para sa chat: + + + Kasarian: + + + Edad: + + + Bansa: + + + Simulan ang chat +
diff --git a/docroot/text_zh_CN.xml b/docroot/text_zh_CN.xml index e15251e..4a47916 100644 --- a/docroot/text_zh_CN.xml +++ b/docroot/text_zh_CN.xml @@ -1,5 +1,20 @@ + + 请输入用于聊天的昵称: + + + 性别: + + + 年龄: + + + 国家: + + + 开始聊天 +
diff --git a/src/app.cpp b/src/app.cpp index aaea9c0..4f9a2cb 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -255,7 +255,7 @@ void App::createLoginContainer() { } Wt::WLineEdit *App::addUsernameInput(Wt::WGridLayout* contentGrid) { - contentGrid->addWidget(std::make_unique("Please type in your nick for the chat: "), 0, 0); + contentGrid->addWidget(std::make_unique(Wt::WString::tr("label_nick")), 0, 0); auto userName = contentGrid->addWidget(std::make_unique(), 0, 1); userName->setTextSize(20); userName->setMaxLength(30); @@ -263,14 +263,14 @@ Wt::WLineEdit *App::addUsernameInput(Wt::WGridLayout* contentGrid) { } Wt::WComboBox *App::addGenderSelection(Wt::WGridLayout* contentGrid) { - contentGrid->addWidget(std::make_unique("Gender: "), 1, 0); + contentGrid->addWidget(std::make_unique(Wt::WString::tr("label_gender")), 1, 0); auto genderWidget = contentGrid->addWidget(std::make_unique(), 1, 1); populateGenderComboBox(genderWidget); return genderWidget; } Wt::WSpinBox *App::addAgeInput(Wt::WGridLayout* contentGrid) { - contentGrid->addWidget(std::make_unique("Age: "), 2, 0); + contentGrid->addWidget(std::make_unique(Wt::WString::tr("label_age")), 2, 0); auto ageWidget = contentGrid->addWidget(std::make_unique(), 2, 1); ageWidget->setRange(18, 150); ageWidget->setValue(18); @@ -278,14 +278,14 @@ Wt::WSpinBox *App::addAgeInput(Wt::WGridLayout* contentGrid) { } Wt::WComboBox *App::addCountrySelection(Wt::WGridLayout* contentGrid) { - contentGrid->addWidget(std::make_unique("Country: "), 3, 0); + contentGrid->addWidget(std::make_unique(Wt::WString::tr("label_country")), 3, 0); auto countryWidget = contentGrid->addWidget(std::make_unique(), 3, 1); populateCountryComboBox(countryWidget); return countryWidget; } void App::addStartChatButton(Wt::WGridLayout* contentGrid, Wt::WLineEdit *userName, Wt::WComboBox *country, Wt::WSpinBox *age, Wt::WComboBox *gender) { - auto doLogin = contentGrid->addWidget(std::make_unique("Start chat"), 4, 1); + auto doLogin = contentGrid->addWidget(std::make_unique(Wt::WString::tr("button_start_chat")), 4, 1); doLogin->clicked().connect([=, this]() { handleLogin(userName, country, age, gender); });