From b67b9fcb2516555818d97744482a9b4333f3bde5 Mon Sep 17 00:00:00 2001 From: lolodomo Date: Tue, 2 Nov 2021 09:48:11 +0100 Subject: [PATCH] [vigicrues] Add default translations to properties file (#11495) Allows translating the binding strings with Crowdin. Signed-off-by: Laurent Garnier --- .../OH-INF/i18n/vigicrues.properties | 44 ++++++++++++++++ .../OH-INF/i18n/vigicrues_fr.properties | 50 +++++++++---------- .../resources/OH-INF/thing/thing-types.xml | 5 +- 3 files changed, 71 insertions(+), 28 deletions(-) create mode 100644 bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues.properties diff --git a/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues.properties b/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues.properties new file mode 100644 index 000000000..297bde16e --- /dev/null +++ b/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues.properties @@ -0,0 +1,44 @@ +# binding + +binding.vigicrues.name = VigiCrues Binding +binding.vigicrues.description = Retrieves rivers levels and alerts in France + +# thing types + +thing-type.vigicrues.station.label = Station +thing-type.vigicrues.station.description = Provides river level informations for this station + +# thing types config + +thing-type.config.vigicrues.station.id.label = Identifier +thing-type.config.vigicrues.station.id.description = Id of the station +thing-type.config.vigicrues.station.refresh.label = Refresh Interval +thing-type.config.vigicrues.station.refresh.description = Specifies the refresh interval in minutes. + +# channel types + +channel-type.vigicrues.alert-icon.label = Pictogram +channel-type.vigicrues.alert-icon.description = Official pictogram associated to alert level. +channel-type.vigicrues.alert-level.label = Alert +channel-type.vigicrues.alert-level.state.option.0 = Green +channel-type.vigicrues.alert-level.state.option.1 = Yellow +channel-type.vigicrues.alert-level.state.option.2 = Orange +channel-type.vigicrues.alert-level.state.option.3 = Red +channel-type.vigicrues.comment.label = Comment +channel-type.vigicrues.comment.description = Detailed comment +channel-type.vigicrues.flow.label = Current Flow +channel-type.vigicrues.flow.description = Current river flow +channel-type.vigicrues.gauge.label = Relative Measure +channel-type.vigicrues.height.label = Height +channel-type.vigicrues.height.description = Water level in the river +channel-type.vigicrues.observation-time.label = Observation Time +channel-type.vigicrues.observation-time.description = Observation date and time + +# channels + +thing-type.vigicrues.station.channel.relative-flow.label = Relative Flow +thing-type.vigicrues.station.channel.relative-flow.description = Current flow toward historic floods. +thing-type.vigicrues.station.channel.relative-height.label = Relative Height +thing-type.vigicrues.station.channel.relative-height.description = Current height toward historical floods. +thing-type.vigicrues.station.channel.short-comment.label = Short Description +thing-type.vigicrues.station.channel.short-comment.description = Brief description of the situation. diff --git a/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues_fr.properties b/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues_fr.properties index e7c7e1d0d..7f026573c 100644 --- a/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues_fr.properties +++ b/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues_fr.properties @@ -1,47 +1,43 @@ - # binding + binding.vigicrues.name = Extension VigiCrues binding.vigicrues.description = Informations de niveau et de seuil d'alerte des rivières de France. -# Station thing config -thing-type.config.vigicrues.station.id.label = Identifiant -thing-type.config.vigicrues.station.id.description = Identifiant unique de la station. - -thing-type.config.vigicrues.station.refresh.label = Période de Rafraîchissement -thing-type.config.vigicrues.station.refresh.description = Fréquence de rafraichissement en minutes. - # thing types + thing-type.vigicrues.station.label = Station thing-type.vigicrues.station.description = Fournit les informations de niveau et de flux pour cette station. +# thing types config + +thing-type.config.vigicrues.station.id.label = Identifiant +thing-type.config.vigicrues.station.id.description = Identifiant unique de la station. +thing-type.config.vigicrues.station.refresh.label = Période de Rafraîchissement +thing-type.config.vigicrues.station.refresh.description = Fréquence de rafraichissement en minutes. + # channel types -channel-type.vigicrues.height.label = Hauteur -channel-type.vigicrues.height.description = Hauteur d'eau dans le cours d'eau. - -channel-type.vigicrues.relative-height.label = Hauteur relative -channel-type.vigicrues.relative-height.description = Hauteur relative par rapport aux crues historiques. - -channel-type.vigicrues.flow.label = Débit -channel-type.vigicrues.flow.description = Débit du cours d'eau. - -channel-type.vigicrues.relative-flow.label = Débit relatif -channel-type.vigicrues.relative-flow.description = Débit relatif par rapport aux crues historiques. +channel-type.vigicrues.alert-icon.label = Pictogramme +channel-type.vigicrues.alert-icon.description = Pictogramme officiel associé au niveau d'alerte. channel-type.vigicrues.alert-level.label = Niveau d'alerte channel-type.vigicrues.alert-level.state.option.0 = Vert channel-type.vigicrues.alert-level.state.option.1 = Jaune channel-type.vigicrues.alert-level.state.option.2 = Orange channel-type.vigicrues.alert-level.state.option.3 = Rouge - -channel-type.vigicrues.alert-icon.label = Pictogramme -channel-type.vigicrues.alert-icon.description = Pictogramme officiel associé au niveau d'alerte. - -channel-type.vigicrues.short-comment.label = Situation -channel-type.vigicrues.short-comment.description = Bref descriptif de la situation. - channel-type.vigicrues.comment.label = Commentaire channel-type.vigicrues.comment.description = Commentaire détaillé. - +channel-type.vigicrues.flow.label = Débit +channel-type.vigicrues.flow.description = Débit du cours d'eau. +channel-type.vigicrues.height.label = Hauteur +channel-type.vigicrues.height.description = Hauteur d'eau dans le cours d'eau. channel-type.vigicrues.observation-time.label = Horodatage channel-type.vigicrues.observation-time.description = Heure de rapport des mesures. +# channels + +thing-type.vigicrues.station.channel.relative-flow.label = Débit relatif +thing-type.vigicrues.station.channel.relative-flow.description = Débit relatif par rapport aux crues historiques. +thing-type.vigicrues.station.channel.relative-height.label = Hauteur relative +thing-type.vigicrues.station.channel.relative-height.description = Hauteur relative par rapport aux crues historiques. +thing-type.vigicrues.station.channel.short-comment.label = Situation +thing-type.vigicrues.station.channel.short-comment.description = Bref descriptif de la situation. diff --git a/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/thing/thing-types.xml index b0db7340f..108cb0205 100644 --- a/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/thing/thing-types.xml +++ b/bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/thing/thing-types.xml @@ -22,7 +22,8 @@ - + + Brief description of the situation. @@ -46,6 +47,7 @@ Number:VolumetricFlowRate + Current river flow flow Measurement @@ -109,6 +111,7 @@ String + Detailed comment text Status