Skip to content

Commit 1210de2

Browse files
committed
chore: Add translations
1 parent 5432e7a commit 1210de2

5 files changed

Lines changed: 194 additions & 138 deletions

File tree

app/components/metadata-panel.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { t } from "@lingui/macro";
1+
import { t, Trans } from "@lingui/macro";
22
import { TabContext, TabList, TabPanel } from "@mui/lab";
33
import {
44
Box,
@@ -195,15 +195,17 @@ const PanelInner = ({
195195
value="general"
196196
label={
197197
<Typography variant="body2" fontWeight="bold">
198-
General
198+
<Trans id="controls.metadata-panel.section.general">
199+
General
200+
</Trans>
199201
</Typography>
200202
}
201203
/>
202204
<Tab
203205
value="data"
204206
label={
205207
<Typography variant="body2" fontWeight="bold">
206-
Data
208+
<Trans id="controls.metadata-panel.section.data">Data</Trans>
207209
</Typography>
208210
}
209211
/>
@@ -222,7 +224,9 @@ const PanelInner = ({
222224
const ToggleButton = ({ onClick }: { onClick: () => void }) => {
223225
return (
224226
<Button component="a" variant="text" size="small" onClick={onClick}>
225-
<Typography variant="body2">Metadata</Typography>
227+
<Typography variant="body2">
228+
<Trans id="controls.metadata-panel.metadata">Metadata</Trans>
229+
</Typography>
226230
</Button>
227231
);
228232
};
@@ -233,7 +237,7 @@ const Header = ({ onClose }: { onClose: () => void }) => {
233237
return (
234238
<div className={classes.header}>
235239
<Typography variant="body2" fontWeight="bold">
236-
Metadata
240+
<Trans id="controls.metadata-panel.metadata">Metadata</Trans>
237241
</Typography>
238242

239243
<IconButton size="small" onClick={onClose}>

app/locales/de/messages.po

Lines changed: 47 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ msgstr ""
1313
"Language-Team: \n"
1414
"Plural-Forms: \n"
1515

16-
#: app/configurator/components/chart-configurator.tsx:657
16+
#: app/configurator/components/chart-configurator.tsx:677
1717
msgid "Add filter"
1818
msgstr "Filter hinzufügen"
1919

20-
#: app/configurator/components/chart-configurator.tsx:630
20+
#: app/configurator/components/chart-configurator.tsx:650
2121
msgid "Drag filters to reorganize"
2222
msgstr "Ziehen Sie die Filter per Drag & Drop, um sie neu zu organisieren"
2323

24-
#: app/configurator/components/chart-configurator.tsx:627
24+
#: app/configurator/components/chart-configurator.tsx:647
2525
msgid "Move filter down"
2626
msgstr "Filter nach unten verschieben"
2727

28-
#: app/configurator/components/chart-configurator.tsx:624
28+
#: app/configurator/components/chart-configurator.tsx:644
2929
msgid "Move filter up"
3030
msgstr "Filter nach oben verschieben"
3131

@@ -122,7 +122,7 @@ msgstr "Teilen"
122122
msgid "chart.map.layers.area"
123123
msgstr "Flächen"
124124

125-
#: app/configurator/components/chart-configurator.tsx:706
125+
#: app/configurator/components/chart-configurator.tsx:730
126126
#: app/configurator/components/chart-options-selector.tsx:992
127127
#: app/configurator/components/field-i18n.ts:31
128128
msgid "chart.map.layers.base"
@@ -186,11 +186,11 @@ msgstr "Normal"
186186
msgid "controls..interactiveFilters.time.defaultSettings"
187187
msgstr "Standardeinstellung"
188188

189-
#: app/configurator/components/chart-annotator.tsx:67
189+
#: app/configurator/components/chart-annotator.tsx:70
190190
msgid "controls.annotator.add-description-warning"
191191
msgstr "Fügen Sie eine Beschreibung hinzu"
192192

193-
#: app/configurator/components/chart-annotator.tsx:57
193+
#: app/configurator/components/chart-annotator.tsx:60
194194
msgid "controls.annotator.add-title-warning"
195195
msgstr "Füge einen Titel hinzu"
196196

@@ -327,7 +327,11 @@ msgstr "Beschreibung hinzufügen"
327327
msgid "controls.dimensionvalue.none"
328328
msgstr "Kein Filter"
329329

330-
#: app/configurator/components/filters.tsx:415
330+
#: app/configurator/components/chart-configurator.tsx:491
331+
msgid "controls.filter.interactive.toggle"
332+
msgstr ""
333+
334+
#: app/configurator/components/filters.tsx:417
331335
msgid "controls.filter.nb-elements"
332336
msgstr "{0} von {1}"
333337

@@ -339,24 +343,23 @@ msgstr "Alle auswählen"
339343
msgid "controls.filter.select.none"
340344
msgstr "Alle abwählen"
341345

342-
#: app/configurator/components/chart-configurator.tsx:488
343-
#: app/configurator/components/filters.tsx:355
346+
#: app/configurator/components/filters.tsx:356
344347
msgid "controls.filters.interactive.toggle"
345348
msgstr "Interaktive"
346349

347350
#: app/configurator/components/filters.tsx:358
348351
#~ msgid "controls.filters.select.filters"
349352
#~ msgstr "Filter"
350353

351-
#: app/configurator/components/filters.tsx:396
354+
#: app/configurator/components/filters.tsx:398
352355
msgid "controls.filters.select.refresh-colors"
353356
msgstr "Farben auffrischen"
354357

355-
#: app/configurator/components/filters.tsx:380
358+
#: app/configurator/components/filters.tsx:382
356359
msgid "controls.filters.select.reset-colors"
357360
msgstr "Farben zurücksetzen"
358361

359-
#: app/configurator/components/filters.tsx:373
362+
#: app/configurator/components/filters.tsx:375
360363
msgid "controls.filters.select.selected-filters"
361364
msgstr "Ausgewählte Filter"
362365

@@ -393,7 +396,7 @@ msgstr "Nullen"
393396
#~ msgstr "Datenfilter"
394397

395398
#: app/configurator/interactive-filters/interactive-filters-config-options.tsx:80
396-
#: app/configurator/interactive-filters/interactive-filters-configurator.tsx:109
399+
#: app/configurator/interactive-filters/interactive-filters-configurator.tsx:116
397400
msgid "controls.interactive.filters.timeSlider"
398401
msgstr "Zeitschieber"
399402

@@ -442,11 +445,24 @@ msgstr "Italienisch"
442445
msgid "controls.measure"
443446
msgstr "Messwert"
444447

445-
#: app/configurator/components/configurator.tsx:149
448+
#: app/components/metadata-panel.tsx:228
449+
#: app/components/metadata-panel.tsx:240
450+
msgid "controls.metadata-panel.metadata"
451+
msgstr "Metadata"
452+
453+
#: app/components/metadata-panel.tsx:208
454+
msgid "controls.metadata-panel.section.data"
455+
msgstr "Daten"
456+
457+
#: app/components/metadata-panel.tsx:198
458+
msgid "controls.metadata-panel.section.general"
459+
msgstr "Allgemeines"
460+
461+
#: app/configurator/components/configurator.tsx:145
446462
msgid "controls.nav.back-to-main"
447463
msgstr "Zurück zur Übersicht"
448464

449-
#: app/configurator/components/configurator.tsx:113
465+
#: app/configurator/components/configurator.tsx:112
450466
msgid "controls.nav.back-to-preview"
451467
msgstr "Zurück zur Vorschau"
452468

@@ -470,15 +486,15 @@ msgstr "Aus"
470486
msgid "controls.scale.type"
471487
msgstr "Skalierungstyp"
472488

473-
#: app/components/form.tsx:625
489+
#: app/components/form.tsx:630
474490
msgid "controls.search.clear"
475491
msgstr "Suche zurücksetzen"
476492

477493
#: app/configurator/components/chart-options-selector.tsx:355
478494
msgid "controls.section.additional-information"
479495
msgstr "Zusätzliche Informationen"
480496

481-
#: app/configurator/components/chart-configurator.tsx:547
497+
#: app/configurator/components/chart-configurator.tsx:562
482498
msgid "controls.section.chart.options"
483499
msgstr "Diagramm-Einstellungen"
484500

@@ -490,11 +506,11 @@ msgstr "Spalten"
490506
msgid "controls.section.columnstyle"
491507
msgstr "Spaltenstil"
492508

493-
#: app/configurator/components/chart-configurator.tsx:565
509+
#: app/configurator/components/chart-configurator.tsx:584
494510
msgid "controls.section.data.filters"
495511
msgstr "Filter"
496512

497-
#: app/configurator/components/chart-annotator.tsx:50
513+
#: app/configurator/components/chart-annotator.tsx:53
498514
msgid "controls.section.description"
499515
msgstr "Titel & Beschreibung"
500516

@@ -519,8 +535,8 @@ msgstr "Fehlende Werte"
519535
msgid "controls.section.imputation.explanation"
520536
msgstr "Für diesen Diagrammtyp sollten fehlenden Werten Ersatzwerte zugewiesen werden. Entscheiden Sie sich für die Imputationslogik oder wechseln Sie zu einem anderen Diagrammtyp."
521537

522-
#: app/configurator/interactive-filters/interactive-filters-configurator.tsx:90
523-
#: app/configurator/interactive-filters/interactive-filters-configurator.tsx:129
538+
#: app/configurator/interactive-filters/interactive-filters-configurator.tsx:97
539+
#: app/configurator/interactive-filters/interactive-filters-configurator.tsx:136
524540
msgid "controls.section.interactive.filters"
525541
msgstr "Interaktive Filter hinzufügen"
526542

@@ -548,11 +564,11 @@ msgstr "Tabellensortierung"
548564
msgid "controls.section.tableoptions"
549565
msgstr "Tabellenoptionen"
550566

551-
#: app/configurator/components/chart-annotator.tsx:30
567+
#: app/configurator/components/chart-annotator.tsx:28
552568
msgid "controls.section.title.warning"
553569
msgstr "Fügen Sie einen Titel oder eine Beschreibung hinzu"
554570

555-
#: app/configurator/components/chart-configurator.tsx:539
571+
#: app/configurator/components/chart-configurator.tsx:554
556572
#: app/configurator/components/chart-type-selector.tsx:131
557573
#: app/configurator/table/table-chart-configurator.tsx:123
558574
msgid "controls.select.chart.type"
@@ -612,16 +628,16 @@ msgstr "Messwert auswählen"
612628
#~ msgid "controls.select.optional"
613629
#~ msgstr "optional"
614630

615-
#: app/configurator/components/filters.tsx:367
616-
#: app/configurator/components/filters.tsx:783
631+
#: app/configurator/components/filters.tsx:369
632+
#: app/configurator/components/filters.tsx:785
617633
msgid "controls.set-filters"
618634
msgstr "Filter bearbeiten"
619635

620-
#: app/configurator/components/filters.tsx:791
636+
#: app/configurator/components/filters.tsx:793
621637
msgid "controls.set-filters-caption"
622638
msgstr "Für beste Ergebnisse wählen Sie nicht mehr als 7 Werte für die Visualisierung aus"
623639

624-
#: app/configurator/components/filters.tsx:830
640+
#: app/configurator/components/filters.tsx:832
625641
msgid "controls.set-values-apply"
626642
msgstr "Filter anwenden"
627643

@@ -900,7 +916,7 @@ msgstr "Daten-Ladefehler"
900916
msgid "hint.how.to.share"
901917
msgstr "Sie können diese Visualisierung teilen oder sie einbetten. Zudem können Sie eine neue Visualisierung erstellen oder die gezeigte Visualisierung kopieren."
902918

903-
#: app/components/form.tsx:292
919+
#: app/components/form.tsx:297
904920
#: app/components/hint.tsx:111
905921
msgid "hint.loading.data"
906922
msgstr "Lade Daten …"
@@ -999,11 +1015,11 @@ msgid "publication.share.mail.subject"
9991015
msgstr "visualize.admin.ch"
10001016

10011017
#: app/configurator/components/dataset-browse.tsx:378
1002-
#: app/configurator/components/filters.tsx:800
1018+
#: app/configurator/components/filters.tsx:802
10031019
msgid "select.controls.filters.search"
10041020
msgstr "Suche"
10051021

1006-
#: app/components/metadata-panel.tsx:290
1022+
#: app/components/metadata-panel.tsx:295
10071023
msgid "select.controls.metadata.search"
10081024
msgstr "Springen zu..."
10091025

0 commit comments

Comments
 (0)