void SwitchPage::retranslateUi() { //% "Switch" setTitle(qtTrId("xx_switch_page_title")); if (!isContentCreated()) return; //% "A Switch button differs from both a push button and an " //% "icon button visually. It looks like a switch, " //% "communicating that pressing this button will not go to " //% "another view or will not perform any other actions except " //% "to toggle the state of the button.\n\n" //% "Switches are used to indicate e.g. settings values" infoLabel->setText("<a></a>" + qtTrId("xx_switch_page_info_label").replace('\n', "<br>")); //% "Headlights" label1->setText(qtTrId("xx_switch_page_switch1")); //% "Autopilot" label2->setText(qtTrId("xx_switch_page_switch2")); //% "Warp Drive" label3->setText(qtTrId("xx_switch_page_switch3")); //% "Reactor Shields" label4->setText(qtTrId("xx_switch_page_switch4")); //% "Infinite Improbability Drive" label5->setText(qtTrId("xx_switch_page_switch5")); }
void ApplicationMenuPage::retranslateUi() { //% "Application Menu" setTitle(qtTrId("xx_applicationmenu_page_title")); if (!isContentCreated()) return; //% "Application Menu is a menu element available to any view. " //% "<ul><li>It can be opened by tapping on the menu title area." //% "</li><li>It contains commands and view settings for the view " //% "in question and an optional area for style commands.</li>" //% "<li>Each view of the application can have different menu " //% "contents.</li></ul><b>Guidelines</b> for mandatory menu items: " //% "<ul><li>Settings should be on the main View of the application, " //% "unless the settings are specific to a sub-View</li>" //% "<li>Help should be available in each View </li>" //% "<li>Exit task should be present in all Views except for the " //% "main View of the application.</li></ul>" infoLabel->setText("<a></a>" + qtTrId("xx_applicationmenu_page_info")); showText(m_textIndex); //% "Italic" actionItalic->setText(qtTrId("xx_appmenu_italic")); //% "Normal" actionNormal->setText(qtTrId("xx_appmenu_normal")); }
void LanguagePage::retranslateUi() { //% "Change Language" setTitle(qtTrId("xx_language_title")); if (!isContentCreated()) return; disconnect(comboBoxLanguage, SIGNAL(currentIndexChanged(int)), this, SLOT(changeLanguage(int))); disconnect(comboBoxLcTime, SIGNAL(currentIndexChanged(int)), this, SLOT(changeLcTime(int))); disconnect(comboBoxLcTimeFormat24h, SIGNAL(currentIndexChanged(int)), this, SLOT(changeLcTimeFormat24h(int))); disconnect(comboBoxLcCollate, SIGNAL(currentIndexChanged(int)), this, SLOT(changeLcCollate(int))); disconnect(comboBoxLcNumeric, SIGNAL(currentIndexChanged(int)), this, SLOT(changeLcNumeric(int))); disconnect(comboBoxLcMonetary, SIGNAL(currentIndexChanged(int)), this, SLOT(changeLcMonetary(int))); QStringList localeNames; #ifdef HAVE_ICU int numberOfAvailableLocales = uloc_countAvailable(); for (int i = 0; i < numberOfAvailableLocales; ++i) localeNames << QString::fromUtf8(uloc_getAvailable(i)); localeNames << "no"; localeNames << "no_NO"; localeNames << "es_419"; localeNames << "de@collation=phonebook"; localeNames << "de_DE@collation=phonebook"; localeNames << "zh_Hans_CN@collation=pinyin"; localeNames << "zh_Hans_CN@collation=stroke"; QStringList localeNamesWithoutScript; QRegExp regexp("^([a-z]{2,3}_)([A-Z][a-z]{3,3}_)(.*)$"); foreach (const QString &localeName, localeNames) { if (regexp.indexIn(localeName) == 0) { localeNamesWithoutScript << regexp.capturedTexts().at(1) + regexp.capturedTexts().at(3); } } foreach (const QString &localeName, localeNamesWithoutScript) localeNames << localeName; #else for (unsigned language = QLocale::C; language <= QLocale::LastLanguage; language++) { foreach (const QLocale::Country &country, QLocale::countriesForLanguage (QLocale::Language(language))) { localeNames << QLocale(QLocale::Language(language), country).name(); } }
void SheetsPage::retranslateUi() { //% "Sheets" setTitle(qtTrId("xx_sheet_title")); if (!isContentCreated()) return; QStringList sheetExamples; //% "Login sheet" sheetExamples << qtTrId("xx_wg_sheets_login_sheet"); //% "Systemwide sheet" sheetExamples << qtTrId("xx_wg_sheets_systemwide_sheet"); //% "Sheet from photo" sheetExamples << qtTrId("xx_wg_sheets_from_photo_sheet"); //% "Long sheet" sheetExamples << qtTrId("xx_wg_sheets_long_sheet"); //% "List sheet" sheetExamples << qtTrId("xx_wg_sheets_list_sheet"); static_cast<QStringListModel *>(list->itemModel())->setStringList(sheetExamples); }
void ToolBarPage::retranslateUi() { //% "ToolBar" setTitle(qtTrId("xx_toolbar_page_title")); if (!isContentCreated()) return; //% "<b>Toolbar</b> acts as a container for actions. Depending upon the view attached, " //% "it either acts as a tab bar or is a container for buttons and text input field. " //% "<ul><li>Click Menu to explore the example</li></ul>" infoLabel->setText("<a></a>" + qtTrId("xx_toolbar_page_info")); //% "Tools" toolsAction->setText(qtTrId("xx_toolbar_page_tools")); //% "Text buttons" textButtonsAction->setText(qtTrId("xx_toolbar_page_text_buttons")); //% "Text field" textFieldAction->setText(qtTrId("xx_toolbar_page_text_field")); //% "Label tabs (+icon in portrait)" iconAndLabelTabsAction->setText(qtTrId("xx_toolbar_page_icon_and_label_tabs")); //% "Tabs (with icons in portrait)" iconTabsAction->setText(qtTrId("xx_toolbar_page_icon_tabs")); //% "Icon tabs (top)" iconTabsTopAction->setText(qtTrId("xx_toolbar_page_icon_tabs_top")); //% "Back button visible" visibleBackButtonLabel->setText(qtTrId("xx_toolbar_page_back_button_visible")); //% "Menu button visible" visibleMenuButtonLabel->setText(qtTrId("xx_toolbar_page_menu_button_visible")); //% "Tools:" maxToolsLabel->setText(qtTrId("xx_toolbar_page_max_tools")); //% "Tabs:" maxTabsLabel->setText(qtTrId("xx_toolbar_page_max_tabs")); //% "Reset settings" resetButton->setText(qtTrId("xx_toolbar_page_reset_settings")); }