Skip to content

Commit 9a8066d

Browse files
committed
Added french translations
1 parent 3a0da65 commit 9a8066d

File tree

8 files changed

+204
-11
lines changed

8 files changed

+204
-11
lines changed

Diff for: app-starter/locales/fr.json

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"app": {
3+
"title": "Vue.js / OpenLayers WebGIS",
4+
"browserTitle": "Application de Démonstration Wegue",
5+
"footerTextLeft": "Powered by <a href='https://meggsimum.de/wegue/' target='_blank'>Wegue WebGIS</a>",
6+
"footerTextRight": "meggsimum",
7+
"logo": "Logo de l'Application"
8+
},
9+
10+
"mapLayers": {
11+
"wgu-drag-drop-layer" : {
12+
"name": "Données Téléchargées"
13+
},
14+
"Shops": {
15+
"name": "Magasins DaSchau"
16+
},
17+
"gas-wfs": {
18+
"name": "Pompes à Essence WFS",
19+
"attributions": "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributeurs."
20+
},
21+
"earthquakes": {
22+
"name": "Tremblements de Terre 2012 (Mag 5)",
23+
"attributions": "U.S. Geological Survey"
24+
},
25+
"ahocevar-wms": {
26+
"name": "Tuiles WMS (ahocevar)"
27+
},
28+
"ahocevar-imagewms": {
29+
"name": "Images WMS (ahocevar)"
30+
},
31+
"ahocevar-vectortiles": {
32+
"name": "Couche de Tuiles Vectorielles"
33+
},
34+
"opentopomap": {
35+
"name": "OpenTopoMap",
36+
"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>)"
37+
},
38+
"osm-bg": {
39+
"name": "OpenStreetMap",
40+
"attributions": "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributeurs."
41+
},
42+
"dutch-nat-parks" : {
43+
"name": "WFS (Parcs Nationaux Néerlandaiss PDOK)",
44+
"attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> par le Cadastre Néerlandais"
45+
},
46+
"pdok-natura2000-wms" : {
47+
"name": "WMS - Zones Natura 2000 - PDOK",
48+
"attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> par le Cadastre Néerlandais"
49+
},
50+
"pdok-lufo-wms" : {
51+
"name": "WMS - Orthophotos Néerlandaises - PDOK",
52+
"attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> par le Cadastre Néerlandais"
53+
},
54+
"brtachtergrondkaart" : {
55+
"name": "WMTS - Fond de Plan Topographique - PDOK",
56+
"attributions": "<a href='https://www.pdok.nl' target='_blank'>PDOK</a> par le Cadastre Néerlandais"
57+
},
58+
"terrestris-osm-wms" : {
59+
"name": "OSM WMS",
60+
"attributions": "<a href='https://www.openstreetmap.org/copyright' target='_blank'>© OpenStreetMap-contributeurs</a>"
61+
},
62+
"test_arcgisrest" : {
63+
"name": "Couche test de tuiles Arcgis REST",
64+
"attributions": "<a href='https://www.padovanet.it' target='_blank'>© Commune de Padova</a>"
65+
}
66+
},
67+
68+
"wgu-helpwin": {
69+
"title": "À Propos de",
70+
"textTitle": "À Propos de Wegue",
71+
"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",
72+
"infoLinkUrl": "http://wegue.org/",
73+
"infoLinkText": "Plus d'informations"
74+
},
75+
76+
"sample-module": {
77+
"title": "Module d'Exemple",
78+
"text": "Bonjour Wegue"
79+
}
80+
}

Diff for: app-starter/static/app-conf-minimal.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"supported": {
1919
"en": "English",
2020
"de": "Deutsch",
21-
"pt": "Portugues"
21+
"pt": "Portugues",
22+
"fr": "Français"
2223
},
2324
"fallback": "en"
2425
},

Diff for: app-starter/static/app-conf-projected.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"supported": {
2424
"en": "English",
2525
"de": "Deutsch",
26-
"pt": "Portugues"
26+
"pt": "Portugues",
27+
"fr": "Français"
2728
},
2829
"fallback": "en"
2930
},

Diff for: app-starter/static/app-conf-sidebar.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"supported": {
1515
"en": "English",
1616
"de": "Deutsch",
17-
"pt": "Portugues"
17+
"pt": "Portugues",
18+
"fr": "Français"
1819
},
1920
"fallback": "en"
2021
},

Diff for: app-starter/static/app-conf.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"supported": {
1515
"en": "English",
1616
"de": "Deutsch",
17-
"pt": "Portugues"
17+
"pt": "Portugues",
18+
"fr": "Français"
1819
},
1920
"fallback": "en"
2021
},

Diff for: src/locales/fr.json

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"app": {
3+
"title": "Vue.js / OpenLayers WebGIS",
4+
"browserTitle": "Application de Démonstration Wegue",
5+
"footerTextLeft": "Powered by <a href='https://meggsimum.de/wegue/' target='_blank'>Wegue WebGIS</a>",
6+
"footerTextRight": "meggsimum",
7+
"logo": "Logo de l'Application"
8+
},
9+
10+
"mapLayers": {
11+
"wgu-geolocator-layer": {
12+
"name": "Position Actuelle"
13+
},
14+
"wgu-measure-layer": {
15+
"name": "Résultats des Mesures"
16+
},
17+
"wgu-drag-drop-layer" : {
18+
"name": "Données Glissées"
19+
}
20+
},
21+
22+
"wgu-toolbar-menu": {
23+
"title": "Ouvrir le menu de la barre d'outils"
24+
},
25+
26+
"wgu-attributetable": {
27+
"title": "Table d'Attributs",
28+
"selectorLabel": "Choisissez une couche",
29+
"loadingText": "Chargement... Veuillez déplacer la vue vers une zone où la couche est visible"
30+
},
31+
32+
"wgu-bglayerswitcher": {
33+
"title": "Changer la couche de fond"
34+
},
35+
36+
"wgu-overviewmap": {
37+
"title": "Montrer le plan d'ensemble"
38+
},
39+
40+
"wgu-geocoder": {
41+
"title": "Chercher une adresse",
42+
"placeHolder": "Chercher après une adresse"
43+
},
44+
45+
"wgu-geolocator": {
46+
"title": "Géolocalisation"
47+
},
48+
49+
"wgu-helpwin": {
50+
"title": "À Propos de",
51+
"textTitle": "À Propos de Wegue",
52+
"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",
53+
"infoLinkUrl": "http://wegue.org/",
54+
"infoLinkText": "Plus d'informations"
55+
},
56+
57+
"wgu-infoclick": {
58+
"title": "Informations sur la zone cliquée",
59+
"mapClick": "Cliquez sur la carte pour obtenir de l'information sur la zone cliquée.",
60+
"mediaClick": "Cliquez sur une entité de la carte pour afficher les informations multimédia associées.",
61+
"mediaInfoLinkText": null
62+
},
63+
64+
"wgu-layerlist": {
65+
"title": "Couches"
66+
},
67+
68+
"wgu-maprecorder": {
69+
"title": "Capture vidéo",
70+
"options": "Options",
71+
"videoFormat": "Format vidéo",
72+
"frameRate": "Cadence d'image (images/s)",
73+
"bitRate": "Débit binaire (MBits/s)",
74+
"fileName": "Nom du fichier",
75+
"start": "Démarrage",
76+
"stop": "Arrêt",
77+
"error": "Erreur lors du démarrage de l'enregistrement."
78+
},
79+
80+
"wgu-zoomtomaxextent": {
81+
"title": "Réinitialiser l'étendue de la carte"
82+
},
83+
84+
"wgu-measuretool": {
85+
"title": "Mesure",
86+
"distance": "Distance",
87+
"length": "Longueur",
88+
"area": "Surface",
89+
"angle": "Angle",
90+
"lengthKm": "{0} km",
91+
"lengthMeter": "{0} m",
92+
"areaSquareKm": "{0} km²",
93+
"areaSquareMeter": "{0} m²"
94+
},
95+
96+
"wgu-localeswitcher": {
97+
"title": "Paramètres de Langue"
98+
},
99+
100+
"wgu-themeswitcher": {
101+
"title": "Mode sombre"
102+
}
103+
}

Diff for: tests/unit/specs/components/localeswitcher/LocaleSwitcher.spec.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ const appConfig = {
99
lang: {
1010
supported: {
1111
en: 'English',
12+
de: 'Deutsch',
1213
pt: 'Portugues',
13-
de: 'Deutsch'
14+
fr: 'Français'
1415
},
15-
fallback: 'pt'
16+
fallback: 'de'
1617
}
1718
};
1819

@@ -50,10 +51,11 @@ describe('localeswitcher/LocaleSwitcher.vue', () => {
5051
it('has correct default data', () => {
5152
expect(typeof LocaleSwitcher.data).to.equal('function');
5253
expect(vm.lang).to.be.an('object');
53-
expect(Object.keys(vm.lang).length).to.eql(3);
54+
expect(Object.keys(vm.lang).length).to.eql(4);
5455
expect(vm.lang.en).to.eql('English');
5556
expect(vm.lang.de).to.eql('Deutsch');
5657
expect(vm.lang.pt).to.eql('Portugues');
58+
expect(vm.lang.fr).to.eql('Français');
5759
});
5860

5961
afterEach(() => {

Diff for: tests/unit/specs/util/Locale.spec.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const appConfig = {
66
supported: {
77
en: 'English',
88
de: 'Deutsch',
9-
pt: 'Portugues'
9+
pt: 'Portugues',
10+
fr: 'Français'
1011
},
1112
fallback: 'de'
1213
}
@@ -32,10 +33,11 @@ describe('LocaleUtil', () => {
3233
it('getSupportedLanguages returns correct languages', () => {
3334
const supported = LocaleUtil.getSupportedLanguages(appConfig);
3435
expect(supported).to.be.an('object');
35-
expect(Object.keys(supported).length).to.eql(3);
36+
expect(Object.keys(supported).length).to.eql(4);
3637
expect(supported.en).to.eql('English');
3738
expect(supported.de).to.eql('Deutsch');
3839
expect(supported.pt).to.eql('Portugues');
40+
expect(supported.fr).to.eql('Français');
3941
});
4042

4143
it('getSupportedLanguages returns correct fallback language when lang is unconfigured', () => {
@@ -58,12 +60,14 @@ describe('LocaleUtil', () => {
5860
it('isLanguageSupported returns correct results', () => {
5961
const enSupported = LocaleUtil.isLanguageSupported('en', appConfig);
6062
const deSupported = LocaleUtil.isLanguageSupported('de', appConfig);
61-
const frSupported = LocaleUtil.isLanguageSupported('fr', appConfig);
63+
const nlSupported = LocaleUtil.isLanguageSupported('nl', appConfig);
6264
const ptSupported = LocaleUtil.isLanguageSupported('pt', appConfig);
65+
const frSupported = LocaleUtil.isLanguageSupported('fr', appConfig);
6366
expect(enSupported).to.be.true;
6467
expect(deSupported).to.be.true;
65-
expect(frSupported).to.be.false;
68+
expect(nlSupported).to.be.false;
6669
expect(ptSupported).to.be.true;
70+
expect(frSupported).to.be.true;
6771
});
6872

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

0 commit comments

Comments
 (0)