Skip to content

Commit

Permalink
sigrennesmetropole#40: Localization added for help button (sigrennesm…
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuren1 authored Jan 10, 2022
1 parent 15160f3 commit 825278a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
3 changes: 2 additions & 1 deletion assets/translations/data.de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
},
"landPlanning" : {
"print": "Drucken",
"cancel": "Stornieren"
"cancel": "Stornieren",
"help": "Hilfe"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion assets/translations/data.en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
},
"landPlanning" : {
"print": "Print",
"cancel": "Cancel"
"cancel": "Cancel",
"help": "Help"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion assets/translations/data.es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
},
"landPlanning" : {
"print": "Impresión",
"cancel": "Cancelar"
"cancel": "Cancelar",
"help": "Ayudar"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion assets/translations/data.fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
},
"landPlanning" : {
"print": "Impression",
"cancel": "Annuler"
"cancel": "Annuler",
"help": "Aide"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion assets/translations/data.it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
},
"landPlanning" : {
"print": "Stampa",
"cancel": "Annulla"
"cancel": "Annulla",
"help": "Aiuto"
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions js/extension/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const DEFAULT_CADASTRAPP_URL = "/cadastrapp/services";
export const DEFAULT_URBANISMEAPP_URL = "/urbanisme";
export const URBANISME_TOOLS = {
NRU: "NRU",
ADS: "ADS",
HELP: "HELP"
ADS: "ADS"
};
export const ADS_DEFAULTS = {
parcelle: `Eléments d\'informations applicables à la parcelle cadastrale`,
Expand Down
4 changes: 2 additions & 2 deletions js/extension/plugins/urbanisme/UrbanismeToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const UrbanismeToolbar = ({
onSetUp({ layer, idParcelleKey });
}, [setAPIURL, onSetUp]);

const { NRU, ADS, HELP } = URBANISME_TOOLS;
const { NRU, ADS } = URBANISME_TOOLS;
const panelStyle = {
right: 5,
zIndex: 100,
Expand Down Expand Up @@ -87,7 +87,7 @@ const UrbanismeToolbar = ({
},
{
glyph: "question-sign",
tooltip: HELP,
tooltip: <Message msgId={'urbanisme.landPlanning.help'}/>,
bsStyle: "primary",
onClick: () =>
window.open(
Expand Down

0 comments on commit 825278a

Please sign in to comment.