diff --git a/Dockerfile b/Dockerfile index d2b8b61..389758e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,19 @@ FROM ghcr.io/opengisch/qwc2_minimal-qwc2-minimal-builder:upgrade-to-qwc2-lts2024 COPY ./app/js/Help.jsx /app/js/Help.jsx COPY ./app/js/SearchProviders.js /app/js/SearchProviders.js COPY ./app/index.html /app/index.html +COPY ./app/static/translations/cs-CZ_overrides.json /app/static/translations/cs-CZ_overrides.json +COPY ./app/static/translations/de-CH_overrides.json /app/static/translations/de-CH_overrides.json +COPY ./app/static/translations/de-DE_overrides.json /app/static/translations/de-DE_overrides.json +COPY ./app/static/translations/en-US_overrides.json /app/static/translations/en-US_overrides.json +COPY ./app/static/translations/es-ES_overrides.json /app/static/translations/es-ES_overrides.json +COPY ./app/static/translations/fr-FR_overrides.json /app/static/translations/fr-FR_overrides.json +COPY ./app/static/translations/it-IT_overrides.json /app/static/translations/it-IT_overrides.json +COPY ./app/static/translations/pl-PL_overrides.json /app/static/translations/pl-PL_overrides.json +COPY ./app/static/translations/pt-BR_overrides.json /app/static/translations/pt-BR_overrides.json +COPY ./app/static/translations/ro-RO_overrides.json /app/static/translations/ro-RO_overrides.json +COPY ./app/static/translations/ru-RU_overrides.json /app/static/translations/ru-RU_overrides.json +COPY ./app/static/translations/sv-SE_overrides.json /app/static/translations/sv-SE_overrides.json +COPY ./app/static/translations/tr-TR_overrides.json /app/static/translations/tr-TR_overrides.json WORKDIR /app diff --git a/app/js/Help.jsx b/app/js/Help.jsx index cd27196..7835311 100644 --- a/app/js/Help.jsx +++ b/app/js/Help.jsx @@ -16,8 +16,11 @@ export function renderHelp() {
QWC2 build {process.env.BuildDate}
- Verwendete QWC2 Version + Verwendete QWC2 Version +
+
+ Changelog
); -} \ No newline at end of file +} diff --git a/app/static/translations/cs-CZ_overrides.json b/app/static/translations/cs-CZ_overrides.json new file mode 100644 index 0000000..17c40a6 --- /dev/null +++ b/app/static/translations/cs-CZ_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "References" + } + } +} diff --git a/app/static/translations/de-CH_overrides.json b/app/static/translations/de-CH_overrides.json new file mode 100644 index 0000000..3772eda --- /dev/null +++ b/app/static/translations/de-CH_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "Hinweise" + } + } +} diff --git a/app/static/translations/de-DE_overrides.json b/app/static/translations/de-DE_overrides.json new file mode 100644 index 0000000..3772eda --- /dev/null +++ b/app/static/translations/de-DE_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "Hinweise" + } + } +} diff --git a/app/static/translations/en-US_overrides.json b/app/static/translations/en-US_overrides.json new file mode 100644 index 0000000..17c40a6 --- /dev/null +++ b/app/static/translations/en-US_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "References" + } + } +} diff --git a/app/static/translations/es-ES_overrides.json b/app/static/translations/es-ES_overrides.json new file mode 100644 index 0000000..d2a73bf --- /dev/null +++ b/app/static/translations/es-ES_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "Notas" + } + } +} diff --git a/app/static/translations/fr-FR_overrides.json b/app/static/translations/fr-FR_overrides.json new file mode 100644 index 0000000..78e2bf7 --- /dev/null +++ b/app/static/translations/fr-FR_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "Remarques" + } + } +} diff --git a/app/static/translations/it-IT_overrides.json b/app/static/translations/it-IT_overrides.json new file mode 100644 index 0000000..43d9098 --- /dev/null +++ b/app/static/translations/it-IT_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "Note" + } + } +} diff --git a/app/static/translations/pl-PL_overrides.json b/app/static/translations/pl-PL_overrides.json new file mode 100644 index 0000000..17c40a6 --- /dev/null +++ b/app/static/translations/pl-PL_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "References" + } + } +} diff --git a/app/static/translations/pt-BR_overrides.json b/app/static/translations/pt-BR_overrides.json new file mode 100644 index 0000000..17c40a6 --- /dev/null +++ b/app/static/translations/pt-BR_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "References" + } + } +} diff --git a/app/static/translations/pt-PT_overrides.json b/app/static/translations/pt-PT_overrides.json new file mode 100644 index 0000000..17c40a6 --- /dev/null +++ b/app/static/translations/pt-PT_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "References" + } + } +} diff --git a/app/static/translations/ro-RO_overrides.json b/app/static/translations/ro-RO_overrides.json new file mode 100644 index 0000000..17c40a6 --- /dev/null +++ b/app/static/translations/ro-RO_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "References" + } + } +} diff --git a/app/static/translations/ru-RU_overrides.json b/app/static/translations/ru-RU_overrides.json new file mode 100644 index 0000000..17c40a6 --- /dev/null +++ b/app/static/translations/ru-RU_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "References" + } + } +} diff --git a/app/static/translations/sv-SE_overrides.json b/app/static/translations/sv-SE_overrides.json new file mode 100644 index 0000000..17c40a6 --- /dev/null +++ b/app/static/translations/sv-SE_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "References" + } + } +} diff --git a/app/static/translations/tr-TR_overrides.json b/app/static/translations/tr-TR_overrides.json new file mode 100644 index 0000000..17c40a6 --- /dev/null +++ b/app/static/translations/tr-TR_overrides.json @@ -0,0 +1,7 @@ +{ + "messages": { + "bottombar": { + "viewertitle_label": "References" + } + } +} diff --git a/dev/customer_config/config.json b/dev/customer_config/config.json index e4feb98..3db4282 100644 --- a/dev/customer_config/config.json +++ b/dev/customer_config/config.json @@ -10,7 +10,7 @@ "routingServiceUrl": "", "urlPositionFormat": "centerAndZoom", "urlPositionCrs": "", - "loadTranslationOverrides": false, + "loadTranslationOverrides": true, "omitUrlParameterUpdates": false, "preserveExtentOnThemeSwitch": true, "preserveBackgroundOnThemeSwitch": true, @@ -161,7 +161,9 @@ "name": "BottomBar", "cfg": { "termsUrl": "https://maps.thalwil.ch/static_files/help/nutzungsbedingungen.pdf", - "termsUrlTarget": "_blank" + "termsUrlTarget": "_blank", + "viewertitleUrl": "https://maps.thalwil.ch/static_files/th_tools/index.html", + "viewertitleUrlTarget": "_blank" } }, { @@ -336,7 +338,9 @@ "displayCoordinates": false, "displayScales": false, "termsUrl": "https://maps.thalwil.ch/static_files/help/nutzungsbedingungen.pdf", - "termsUrlTarget": "_blank" + "termsUrlTarget": "_blank", + "viewertitleUrl": "https://maps.thalwil.ch/static_files/th_tools/index.html", + "viewertitleUrlTarget": "_blank" } }, {