MCPcopy Create free account
hub / github.com/KDE/labplot / retranslateUi

Method retranslateUi

src/frontend/SettingsGeneralPage.cpp:210–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void SettingsGeneralPage::retranslateUi() {
211 ui.cbLoadOnStart->clear();
212 ui.cbLoadOnStart->addItem(i18n("Create New Project"), static_cast<int>(MainWin::LoadOnStart::NewProject));
213 ui.cbLoadOnStart->addItem(i18n("Load Last Used Project"), static_cast<int>(MainWin::LoadOnStart::LastProject));
214 // ui.cbLoadOnStart->addItem(i18n("Show Welcome Screen"), static_cast<int>(MainWin::LoadOnStart::WelcomeScreen));
215
216 ui.cbNewProject->clear();
217 ui.cbNewProject->addItem(i18n("With Spreadsheet"), static_cast<int>(MainWin::NewProject::WithSpreadsheet));
218 ui.cbNewProject->addItem(i18n("With Worksheet"), static_cast<int>(MainWin::NewProject::WithWorksheet));
219 ui.cbNewProject->addItem(i18n("With Spreadsheet and Worksheet"), static_cast<int>(MainWin::NewProject::WithSpreadsheetWorksheet));
220#ifdef HAVE_CANTOR_LIBS
221 ui.cbNewProject->addItem(i18n("With Notebook"), static_cast<int>(MainWin::NewProject::WithNotebook));
222#endif
223
224 QString msg = i18n("Notebook type to create automatically on startup");
225 ui.lNewProjectNotebook->setToolTip(msg);
226 ui.cbNewProjectNotebook->setToolTip(msg);
227
228 msg = i18n("Controls the behavior of where the dock widgets are placed after being re-opened");
229 ui.lDockWindowPositionReopen->setToolTip(msg);
230 ui.cbDockWindowPositionReopen->setToolTip(msg);
231 ui.cbDockWindowPositionReopen->clear();
232 ui.cbDockWindowPositionReopen->addItem(i18n("Original Position"), static_cast<int>(Settings::DockPosBehavior::OriginalPos));
233 ui.cbDockWindowPositionReopen->addItem(i18n("On top of the last active Dock Widget"), static_cast<int>(Settings::DockPosBehavior::AboveLastActive));
234
235 ui.cbTitleBar->clear();
236 ui.cbTitleBar->addItem(i18n("Show File Path"));
237 ui.cbTitleBar->addItem(i18n("Show File Name"));
238 ui.cbTitleBar->addItem(i18n("Show Project Name"));
239
240 ui.cbUnits->clear();
241 ui.cbUnits->addItem(i18n("Metric"));
242 ui.cbUnits->addItem(i18n("Imperial"));
243
244 msg = i18n("Characters for the decimal and group separators defining the number format");
245 ui.lNumberFormat->setToolTip(msg);
246 ui.cbNumberFormat->setToolTip(msg);
247 ui.cbNumberFormat->clear();
248 ui.cbNumberFormat->addItem(i18n("%1 (System, %2)", m_defaultSystemLocale.toString(1000.01), QLocale::languageToString(m_defaultSystemLocale.language())), static_cast<int>(QLocale::Language::AnyLanguage));
249 ui.cbNumberFormat->insertSeparator(1);
250 ui.cbNumberFormat->addItem(QLatin1String("1,000.01"), static_cast<int>(QLocale::Language::English));
251 ui.cbNumberFormat->addItem(QLatin1String("1.000,01"), static_cast<int>(QLocale::Language::German));
252 ui.cbNumberFormat->addItem(QLatin1String("1 000.01"), static_cast<int>(QLocale::Language::Zarma));
253 ui.cbNumberFormat->addItem(QLatin1String("1 000,01"), static_cast<int>(QLocale::Language::Ukrainian));
254 ui.cbNumberFormat->addItem(QString::fromUtf8("1’000,01"), static_cast<int>(QLocale::Language::SwissGerman));
255 ui.cbNumberFormat->addItem(QString::fromUtf8("١٬٠٠٠٫٠١"), static_cast<int>(QLocale::Language::Arabic));
256
257 msg = i18n("Use the hyphen sign instead of the minus sign for negative numbers shown on the worksheet");
258 ui.chkUseHyphen->setToolTip(msg);
259
260 msg = i18n(
261 "Use terms compliant with the <a href=\"http://www.bipm.org/utils/common/documents/jcgm/JCGM_100_2008_E.pdf\">Guide to the Expression of Uncertainty "
262 "in Measurement (GUM)</a>");
263 ui.chkGUMTerms->setWhatsThis(msg);
264
265 msg = i18n(
266 "Save the state (position and geometry) of the docks in the project file. \n"
267 "Determines the default behavior for new projects. \n"

Callers

nothing calls this directly

Calls 3

setToolTipMethod · 0.80
clearMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected