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

French translation of Wegue #415

Merged
merged 2 commits into from
Sep 13, 2024
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
80 changes: 80 additions & 0 deletions app-starter/locales/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"app": {
"title": "Vue.js / OpenLayers WebGIS",
"browserTitle": "Application de Démonstration Wegue",
"footerTextLeft": "Powered by <a href='https://meggsimum.de/wegue/' target='_blank'>Wegue WebGIS</a>",
"footerTextRight": "meggsimum",
"logo": "Logo de l'Application"
},

"mapLayers": {
"wgu-drag-drop-layer" : {
"name": "Données Téléchargées"
},
"Shops": {
"name": "Magasins DaSchau"
},
"gas-wfs": {
"name": "Pompes à Essence WFS",
"attributions": "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a>-contributeurs"
},
"earthquakes": {
"name": "Tremblements de Terre 2012 (Mag 5)",
"attributions": "U.S. Geological Survey"
},
"ahocevar-wms": {
"name": "Tuiles WMS (ahocevar)"
},
"ahocevar-imagewms": {
"name": "Images WMS (ahocevar)"
},
"ahocevar-vectortiles": {
"name": "Couche de Tuiles Vectorielles"
},
"opentopomap": {
"name": "OpenTopoMap",
"attributions": "Données cartographiques: <a href=\"https://openstreetmap.org/copyright\">© OpenStreetMap</a>-contributeurs, SRTM | Représentation cartographique: © <a href=\"http://opentopomap.org/\">OpenTopoMap</a> (<a href=\"https://creativecommons.org/licenses/by-sa/3.0/\">CC-BY-SA</a>)"
},
"osm-bg": {
"name": "OpenStreetMap",
"attributions": "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a>-contributeurs"
},
"dutch-nat-parks" : {
"name": "WFS (Parcs Nationaux Néerlandaiss PDOK)",
"attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> par le Cadastre Néerlandais"
},
"pdok-natura2000-wms" : {
"name": "WMS - Zones Natura 2000 - PDOK",
"attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> par le Cadastre Néerlandais"
},
"pdok-lufo-wms" : {
"name": "WMS - Orthophotos Néerlandaises - PDOK",
"attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> par le Cadastre Néerlandais"
},
"brtachtergrondkaart" : {
"name": "WMTS - Fond de Plan Topographique - PDOK",
"attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> par le Cadastre Néerlandais"
},
"terrestris-osm-wms" : {
"name": "OSM WMS",
"attributions": "<a href='https://www.openstreetmap.org/copyright' target='_blank'>© OpenStreetMap-contributeurs</a>"
},
"test_arcgisrest" : {
"name": "Couche test de tuiles Arcgis REST",
"attributions": "<a href='https://www.padovanet.it' target='_blank'>© Commune de Padova</a>"
}
},

"wgu-helpwin": {
"title": "À Propos de",
"textTitle": "À Propos de Wegue",
"htmlContent": "<b>WebGIS basé sur OpenLayers et Vue.js</b><br>Modèle et composants réutilisables pour applications de cartographie avec OpenLayers et Vue.js",
"infoLinkUrl": "http://wegue.org/",
"infoLinkText": "Plus d'informations"
},

"sample-module": {
"title": "Module d'Exemple",
"text": "Bonjour Wegue"
}
}
3 changes: 2 additions & 1 deletion app-starter/static/app-conf-minimal.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"supported": {
"en": "English",
"de": "Deutsch",
"pt": "Portugues"
"pt": "Portugues",
"fr": "Français"
},
"fallback": "en"
},
Expand Down
3 changes: 2 additions & 1 deletion app-starter/static/app-conf-projected.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"supported": {
"en": "English",
"de": "Deutsch",
"pt": "Portugues"
"pt": "Portugues",
"fr": "Français"
},
"fallback": "en"
},
Expand Down
3 changes: 2 additions & 1 deletion app-starter/static/app-conf-sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"supported": {
"en": "English",
"de": "Deutsch",
"pt": "Portugues"
"pt": "Portugues",
"fr": "Français"
},
"fallback": "en"
},
Expand Down
3 changes: 2 additions & 1 deletion app-starter/static/app-conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"supported": {
"en": "English",
"de": "Deutsch",
"pt": "Portugues"
"pt": "Portugues",
"fr": "Français"
},
"fallback": "en"
},
Expand Down
103 changes: 103 additions & 0 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"app": {
"title": "Vue.js / OpenLayers WebGIS",
"browserTitle": "Application de Démonstration Wegue",
"footerTextLeft": "Powered by <a href='https://meggsimum.de/wegue/' target='_blank'>Wegue WebGIS</a>",
"footerTextRight": "meggsimum",
"logo": "Logo de l'Application"
},

"mapLayers": {
"wgu-geolocator-layer": {
"name": "Position Actuelle"
},
"wgu-measure-layer": {
"name": "Résultats des Mesures"
},
"wgu-drag-drop-layer" : {
"name": "Données Glissées"
}
},

"wgu-toolbar-menu": {
"title": "Ouvrir le menu de la barre d'outils"
},

"wgu-attributetable": {
"title": "Table d'Attributs",
"selectorLabel": "Choisissez une couche",
"loadingText": "Chargement... Veuillez déplacer la vue vers une zone où la couche est visible"
},

"wgu-bglayerswitcher": {
"title": "Changer la couche de fond"
},

"wgu-overviewmap": {
"title": "Montrer le plan d'ensemble"
},

"wgu-geocoder": {
"title": "Chercher une adresse",
"placeHolder": "Chercher après une adresse"
},

"wgu-geolocator": {
"title": "Géolocalisation"
},

"wgu-helpwin": {
"title": "À Propos de",
"textTitle": "À Propos de Wegue",
"htmlContent": "<b>WebGIS basé sur OpenLayers et Vue.js</b><br>Modèle et composants réutilisables pour applications de cartographie avec OpenLayers et Vue.js",
"infoLinkUrl": "http://wegue.org/",
"infoLinkText": "Plus d'informations"
},

"wgu-infoclick": {
"title": "Informations sur la zone cliquée",
"mapClick": "Cliquez sur la carte pour obtenir de l'information sur la zone cliquée.",
"mediaClick": "Cliquez sur une entité de la carte pour afficher les informations multimédia associées.",
"mediaInfoLinkText": null
},

"wgu-layerlist": {
"title": "Couches"
},

"wgu-maprecorder": {
"title": "Capture vidéo",
"options": "Options",
"videoFormat": "Format vidéo",
"frameRate": "Cadence d'image (images/s)",
"bitRate": "Débit binaire (MBits/s)",
"fileName": "Nom du fichier",
"start": "Démarrage",
"stop": "Arrêt",
"error": "Erreur lors du démarrage de l'enregistrement."
},

"wgu-zoomtomaxextent": {
"title": "Réinitialiser l'étendue de la carte"
},

"wgu-measuretool": {
"title": "Mesure",
"distance": "Distance",
"length": "Longueur",
"area": "Surface",
"angle": "Angle",
"lengthKm": "{0} km",
"lengthMeter": "{0} m",
"areaSquareKm": "{0} km²",
"areaSquareMeter": "{0} m²"
},

"wgu-localeswitcher": {
"title": "Paramètres de Langue"
},

"wgu-themeswitcher": {
"title": "Mode sombre"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ const appConfig = {
lang: {
supported: {
en: 'English',
de: 'Deutsch',
pt: 'Portugues',
de: 'Deutsch'
fr: 'Français'
},
fallback: 'pt'
fallback: 'de'
}
};

Expand Down Expand Up @@ -50,10 +51,11 @@ describe('localeswitcher/LocaleSwitcher.vue', () => {
it('has correct default data', () => {
expect(typeof LocaleSwitcher.data).to.equal('function');
expect(vm.lang).to.be.an('object');
expect(Object.keys(vm.lang).length).to.eql(3);
expect(Object.keys(vm.lang).length).to.eql(4);
expect(vm.lang.en).to.eql('English');
expect(vm.lang.de).to.eql('Deutsch');
expect(vm.lang.pt).to.eql('Portugues');
expect(vm.lang.fr).to.eql('Français');
});

afterEach(() => {
Expand Down
12 changes: 8 additions & 4 deletions tests/unit/specs/util/Locale.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const appConfig = {
supported: {
en: 'English',
de: 'Deutsch',
pt: 'Portugues'
pt: 'Portugues',
fr: 'Français'
},
fallback: 'de'
}
Expand All @@ -32,10 +33,11 @@ describe('LocaleUtil', () => {
it('getSupportedLanguages returns correct languages', () => {
const supported = LocaleUtil.getSupportedLanguages(appConfig);
expect(supported).to.be.an('object');
expect(Object.keys(supported).length).to.eql(3);
expect(Object.keys(supported).length).to.eql(4);
expect(supported.en).to.eql('English');
expect(supported.de).to.eql('Deutsch');
expect(supported.pt).to.eql('Portugues');
expect(supported.fr).to.eql('Français');
});

it('getSupportedLanguages returns correct fallback language when lang is unconfigured', () => {
Expand All @@ -58,12 +60,14 @@ describe('LocaleUtil', () => {
it('isLanguageSupported returns correct results', () => {
const enSupported = LocaleUtil.isLanguageSupported('en', appConfig);
const deSupported = LocaleUtil.isLanguageSupported('de', appConfig);
const frSupported = LocaleUtil.isLanguageSupported('fr', appConfig);
const nlSupported = LocaleUtil.isLanguageSupported('nl', appConfig);
const ptSupported = LocaleUtil.isLanguageSupported('pt', appConfig);
const frSupported = LocaleUtil.isLanguageSupported('fr', appConfig);
expect(enSupported).to.be.true;
expect(deSupported).to.be.true;
expect(frSupported).to.be.false;
expect(nlSupported).to.be.false;
expect(ptSupported).to.be.true;
expect(frSupported).to.be.true;
});

it('isLanguageSupported returns correct results when lang is unconfigured', () => {
Expand Down
Loading