MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / retranslateUi

Method retranslateUi

DSView/pv/toolbars/logobar.cpp:133–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void LogoBar::retranslateUi()
134{
135
136 _logo_button.setText(L_S(STR_PAGE_TOOLBAR, S_ID(IDS_TOOLBAR_HELP), "Help"));
137 _language->setTitle(L_S(STR_PAGE_TOOLBAR, S_ID(IDS_TOOLBAR_HELP_LANG), "&Language"));
138 _action_en->setText(L_S(STR_PAGE_TOOLBAR, S_ID(IDS_TOOLBAR_HELP_LANG_EN), "English"));
139 _action_cn->setText(L_S(STR_PAGE_TOOLBAR, S_ID(IDS_TOOLBAR_HELP_LANG_CN), "中文"));
140 _about->setText(L_S(STR_PAGE_TOOLBAR, S_ID(IDS_TOOLBAR_HELP_ABOUT), "&About..."));
141 _manual->setText(L_S(STR_PAGE_TOOLBAR, S_ID(IDS_TOOLBAR_HELP_MANUAL), "&Manual..."));
142 _issue->setText(L_S(STR_PAGE_TOOLBAR, S_ID(IDS_TOOLBAR_HELP_BUG), "&Bug Report"));
143 _update->setText(L_S(STR_PAGE_TOOLBAR, S_ID(IDS_TOOLBAR_HELP_UPDATE), "&Update"));
144 _log->setText(L_S(STR_PAGE_TOOLBAR, S_ID(IDS_TOOLBAR_HELP_LOG), "L&og Options"));
145
146 AppConfig &app = AppConfig::Instance();
147 if (app.frameOptions.language == LAN_CN)
148 _language->setIcon(QIcon(":/icons/Chinese.svg"));
149 else
150 _language->setIcon(QIcon(":/icons/English.svg"));
151}
152
153void LogoBar::reStyle()
154{

Callers

nothing calls this directly

Calls 1

setTitleMethod · 0.45

Tested by

no test coverage detected