Skip to content

Commit

Permalink
Update i18n keys and strings for ParqetWidget configuration
Browse files Browse the repository at this point in the history
Standardize and localize configuration text by replacing raw strings with i18n keys in `ParqetWidget.cpp`. Added missing translations for new i18n keys in German and English localization files. Improved consistency and clarity in user-facing configuration labels.
  • Loading branch information
flattermann committed Feb 25, 2025
1 parent a460e45 commit 754e97a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions firmware/src/widgets/parqetwidget/ParqetWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ ParqetWidget::ParqetWidget(ScreenManager &manager, ConfigManager &config) : Widg
m_config.addConfigBool("ParqetWidget", "pqEnabled", &m_enabled, i18n("enableWidget"));
m_config.addConfigString("ParqetWidget", "pqportfoId", &m_portfolioId, 50, i18n("pq.cnf.portfolioId"));
m_config.addConfigComboBox("ParqetWidget", "pqDefMode", &m_defaultMode, m_modes, PARQET_MODE_COUNT, i18n("pq.cnf.mode"), true);
m_config.addConfigComboBox("ParqetWidget", "pqDefPerf", &m_defaultPerfMeasure, m_perfMeasures, PARQET_PERF_COUNT, "Performance measure", true);
m_config.addConfigComboBox("ParqetWidget", "pqDefPerfCh", &m_defaultPerfChartMeasure, m_perfChartMeasures, PARQET_PERF_CHART_COUNT, "Chart measure", true);
m_config.addConfigComboBox("ParqetWidget", "pqDefPerf", &m_defaultPerfMeasure, m_perfMeasures, PARQET_PERF_COUNT, i18n("pq.conf.perfMeasure"), true);
m_config.addConfigComboBox("ParqetWidget", "pqDefPerfCh", &m_defaultPerfChartMeasure, m_perfChartMeasures, PARQET_PERF_CHART_COUNT, i18n("pq.cnf.chartMeasure"), true);
m_config.addConfigBool("ParqetWidget", "pqShowClock", &m_showClock, i18n("pq.cnf.clock"), true);
m_config.addConfigBool("ParqetWidget", "pqShowTotalScr", &m_showTotalScreen, i18n("pq.cnf.totals"), true);
m_config.addConfigBool("ParqetWidget", "pqShowTotalVal", &m_showTotalValue, i18n("pq.cnf.totalVal"), true);
String optPriceVal[] = {"Show current price", "Show current value"};
m_config.addConfigComboBox("ParqetWidget", "pqShowValues", &m_showValues, optPriceVal, 2, i18n("pq.cnf.values"), true);
m_config.addConfigString("ParqetWidget", "pqProxyUrl", &m_proxyUrl, 75, "ParqetProxy URL", true);
m_config.addConfigString("ParqetWidget", "pqProxyUrl", &m_proxyUrl, 75, i18n("pq.cnf.proxyUrl"), true);
m_curMode = m_defaultMode;
m_curPerfMeasure = m_defaultPerfMeasure;
m_curPerfChartMeasure = m_defaultPerfChartMeasure;
Expand Down
5 changes: 4 additions & 1 deletion i18n/de.parqet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ pq.portfolio=Portfolio
pq.total=G E S A M T
pq.cnf.portfolioId=Portfolio-ID (muss auf öffentlich stehen!)
pq.cnf.mode=Standardzeitraum (Zeitraum kann durch mittellanges Drücken des mittleren Buttons geändert werden)
pq.cnf.perfMeasure=Performance Messwert
pq.cnf.chartMeasure=Chart Messwert
pq.cnf.clock=Uhr auf dem ersten Bildschirm anzeigen
pq.cnf.totals=Gesamtübersicht anzeigen
pq.cnf.totalVal=Gesamtwert des Portfolios anzeigen
pq.cnf.values=Preis oder Wert der Aktien anzeigen
pq.cnf.values=Preis oder Wert der Aktien anzeigen
pq.cnf.proxyUrl=ParqetProxy URL
5 changes: 4 additions & 1 deletion i18n/en.parqet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ pq.portfolio=Portfolio
pq.total=T O T A L
pq.cnf.portfolioId=Portfolio ID (must be set to public!)
pq.cnf.mode=Default timeframe (you can change timeframes by medium pressing the middle button)
pq.cnf.perfMeasure=Performance measure
pq.cnf.chartMeasure=Chart measure
pq.cnf.clock=Show clock on first screen
pq.cnf.totals=Show totals screen
pq.cnf.totalVal=Show total portfolio value
pq.cnf.values=Show price or value for stocks
pq.cnf.values=Show price or value for stocks
pq.cnf.proxyUrl=ParqetProxy URL

0 comments on commit 754e97a

Please sign in to comment.