Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#8905 Add missing translations #9055

Merged
merged 2 commits into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/client/components/TOC/fragments/settings/Display.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default class extends React.Component {
</Col>
<Col xs={12}>
<FormGroup>
<ControlLabel><Message msgId="WMS Layer tile size" /></ControlLabel>
<ControlLabel><Message msgId="layerProperties.wmsLayerTileSize" /></ControlLabel>
<Select
key="wsm-layersize-dropdown"
clearable={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('Test CatalogServiceEditor', () => {

const formatFormGroups = [...document.querySelectorAll('.form-group')].filter(fg => {
const labels = [...fg.querySelectorAll('label')];
return labels.length === 1 && labels[0].textContent === 'Format';
return labels.length === 1 && labels[0].textContent === 'layerProperties.format.title';
});
expect(formatFormGroups.length).toBe(1);
const formatSelect = formatFormGroups[0].querySelector('.Select-value-label');
Expand Down Expand Up @@ -95,7 +95,7 @@ describe('Test CatalogServiceEditor', () => {

const wmstileSizeFormGroups = [...document.querySelectorAll('.form-group')].filter(fg => {
const labels = [...fg.querySelectorAll('label')];
return labels.length === 1 && labels[0].textContent === 'WMS Layer tile size';
return labels.length === 1 && labels[0].textContent === 'layerProperties.wmsLayerTileSize';
});
expect(wmstileSizeFormGroups.length).toBe(1);
const tileSizeSelect = wmstileSizeFormGroups[0].querySelector('.Select-value-label');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import localizedProps from '../../../misc/enhancers/localizedProps';
const Select = localizedProps('noResultsText')(RS);

import CommonAdvancedSettings from './CommonAdvancedSettings';
import {isNil} from "lodash";
import {isNil, camelCase} from "lodash";
import ReactQuill from '../../../../libs/quill/react-quill-suspense';
import { ServerTypes } from '../../../../utils/LayersUtils';

Expand All @@ -30,7 +30,7 @@ const getTileSizeSelectOptions = (opts) => {
return opts.map(opt => ({label: `${opt}x${opt}`, value: opt}));
};
const getServerTypeOptions = () => {
return Object.keys(ServerTypes).map((key) => ({ label: key, value: ServerTypes[key] }));
return Object.keys(ServerTypes).map((key) => ({ label: <Message msgId={`layerProperties.serverTypeOption.${camelCase(key)}`} />, value: ServerTypes[key] }));
};

/**
Expand Down Expand Up @@ -102,7 +102,7 @@ export default ({
<Checkbox
onChange={(e) => onChangeServiceProperty("layerOptions", { ...service.layerOptions, singleTile: e.target.checked })}
checked={!isNil(service?.layerOptions?.singleTile) ? service.layerOptions.singleTile : false}>
<Message msgId="catalog.singleTile.label" />&nbsp;<InfoPopover text={<Message msgId="catalog.singleTile.tooltip" />} />
<Message msgId="layerProperties.singleTile" />&nbsp;<InfoPopover text={<Message msgId="catalog.singleTile.tooltip" />} />
</Checkbox>
</Col>
</FormGroup>}
Expand Down Expand Up @@ -160,7 +160,7 @@ export default ({
</FormGroup>)}
<FormGroup style={advancedRasterSettingsStyles}>
<Col xs={6}>
<ControlLabel>Format</ControlLabel>
<ControlLabel><Message msgId="layerProperties.format.title" /></ControlLabel>
</Col >
<Col xs={6} style={{marginBottom: '5px'}}>
<Select
Expand All @@ -176,7 +176,7 @@ export default ({
</FormGroup>
<FormGroup style={advancedRasterSettingsStyles}>
<Col xs={6} >
<ControlLabel>WMS Layer tile size</ControlLabel>
<ControlLabel><Message msgId="layerProperties.wmsLayerTileSize" /></ControlLabel>
</Col >
<Col xs={6} style={{marginBottom: '5px'}}>
<Select
Expand All @@ -187,7 +187,7 @@ export default ({
</FormGroup>
<FormGroup style={advancedRasterSettingsStyles}>
<Col xs={6} >
<ControlLabel>Server Type</ControlLabel>
<ControlLabel><Message msgId="layerProperties.serverType" /></ControlLabel>
</Col >
<Col xs={6} style={{marginBottom: '5px'}}>
<Select
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe('Test Raster advanced settings', () => {
const advancedSettingsPanel = document.getElementsByClassName("mapstore-switch-panel");
expect(advancedSettingsPanel).toBeTruthy();
const formGroup = document.querySelectorAll('.form-group')[3];
expect(formGroup.textContent.trim()).toBe('catalog.singleTile.label');
expect(formGroup.textContent.trim()).toBe('layerProperties.singleTile');
const singleTileLayer = formGroup.querySelector('input[type="checkbox"]');
expect(singleTileLayer).toBeTruthy();
TestUtils.Simulate.change(singleTileLayer, { "target": { "checked": true }});
Expand Down
7 changes: 6 additions & 1 deletion web/client/translations/data.de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
"templateError": "Beim Anwenden der Vorlage auf die vom Server zurückgegebenen Informationen ist ein Fehler aufgetreten. Bitte überprüfen Sie die Vorlage",
"templatePreview": "Vorschau template",
"heightOffset": "Höhenversatz (m)",
"wmsLayerTileSize": "Kachelgröße (WMS)",
"serverType": "Servertyp",
"serverTypeOption": {
"noVendor": "No Vendor",
"geoserver": "GeoServer"
},
"visibilityLimits": {
"title": "Sichtbarkeitsgrenzen",
"serverValuesUpdateUndefined": "Der Server hat keine Skalierungssichtbarkeitsbeschränkungen für diese Ebene angegeben",
Expand Down Expand Up @@ -1540,7 +1546,6 @@
"tooltip": "Wendet automatisch die vom Server vorgeschlagenen Sichtbarkeitsgrenzen an"
},
"singleTile": {
"label": "Single Tile",
"tooltip": "Die Ebene wird als einzelnes Kachelbild gerendert, wenn sie mit aktivierter Option zur Karte hinzugefügt wird."
},
"domainAliases": {
Expand Down
7 changes: 6 additions & 1 deletion web/client/translations/data.en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
"templateError": "There was an error applying the template to the information returned by the server, please check the template",
"templatePreview": "Template preview",
"heightOffset": "Height offset (m)",
"wmsLayerTileSize": "Tile size (WMS)",
"serverType": "Server Type",
"serverTypeOption": {
"noVendor": "No Vendor",
"geoserver": "GeoServer"
},
"visibilityLimits": {
"title": "Visibility limits",
"serverValuesUpdateUndefined": "The server did not provided scale visibility limits for this layer",
Expand Down Expand Up @@ -1502,7 +1508,6 @@
"tooltip": "Automatically applies the visibility limits suggested by the server"
},
"singleTile": {
"label": "Single Tile",
"tooltip": "The layer is rendered as a single tile image when added to the map with this option enabled"
},
"allowUnsecureLayers": {
Expand Down
7 changes: 6 additions & 1 deletion web/client/translations/data.es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@
"templateFormatInfoAlert1": "Haga clic en el botón Editar para agregar una nueva plantilla.",
"templateFormatInfoAlert2": "Use ${ attribute } para ajustar las propiedades que necesita visualizar",
"heightOffset": "Desplazamiento de altura (m)",
"wmsLayerTileSize": "Tamaño del mosaico (WMS)",
"serverType": "Tipo de servidor",
"serverTypeOption": {
"noVendor": "No Vendor",
"geoserver": "GeoServer"
},
"visibilityLimits": {
"title": "Límites de visibilidad",
"serverValuesUpdateUndefined": "El servidor no proporcionó límites de visibilidad de escala para esta capa",
Expand Down Expand Up @@ -1502,7 +1508,6 @@
"tooltip": "Aplica automáticamente los límites de visibilidad sugeridos por el servidor"
},
"singleTile": {
"label": "Single Tile",
"tooltip": "La capa se representa como una sola imagen de mosaico cuando se agrega al mapa con esta opción habilitada"
},
"domainAliases": {
Expand Down
7 changes: 6 additions & 1 deletion web/client/translations/data.fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
"templateError": "Une erreur s'est produite lors de l'application du modèle aux informations renvoyées par le serveur, veuillez vérifier le modèle",
"templatePreview": "Aperçu du modèle",
"heightOffset": "Décalage en hauteur (m)",
"wmsLayerTileSize": "Taille de la tuile (WMS)",
"serverType": "Type de serveur",
"serverTypeOption": {
"noVendor": "No Vendor",
"geoserver": "GeoServer"
},
"visibilityLimits": {
"title": "Limites de visibilité",
"serverValuesUpdateUndefined": "Le serveur n'a pas fourni de limites de visibilité d'échelle pour cette couche",
Expand Down Expand Up @@ -1503,7 +1509,6 @@
"tooltip": "Applique automatiquement les limites de visibilité suggérées par le serveur"
},
"singleTile": {
"label": "Single Tile",
"tooltip": "Lorsque cette option est activée, la couche ajoutée à la carte est rendue sous la forme d'une seule image"
},
"domainAliases": {
Expand Down
7 changes: 6 additions & 1 deletion web/client/translations/data.it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
"templateError": "Si è verificato un errore durante l'applicazione del template alle informazioni restituite dal server, controllare il template.",
"templatePreview": "Anteprima template",
"heightOffset": "Spostamento in altezza (m)",
"wmsLayerTileSize": "Dimensione tile (WMS)",
"serverType": "Tipo di Server",
"serverTypeOption": {
"noVendor": "No Vendor",
"geoserver": "GeoServer"
},
"visibilityLimits": {
"title": "Limiti di visibilità",
"serverValuesUpdateUndefined": "Il server non ha fornito limiti di visibilità di scala per questo livello",
Expand Down Expand Up @@ -1502,7 +1508,6 @@
"tooltip": "Applica automaticamente i limiti di visibilità suggeriti dal server"
},
"singleTile": {
"label": "Single Tile",
"tooltip": "Il layer viene renderizzato come immagine a singola tile quando aggiunto alla mappa con questa opzione abilitata"
},
"domainAliases": {
Expand Down