]> git.basschouten.com Git - openhab-addons.git/commitdiff
[vigicrues] Add default translations to properties file (#11495)
authorlolodomo <lg.hc@free.fr>
Tue, 2 Nov 2021 08:48:11 +0000 (09:48 +0100)
committerGitHub <noreply@github.com>
Tue, 2 Nov 2021 08:48:11 +0000 (09:48 +0100)
Allows translating the binding strings with Crowdin.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues.properties [new file with mode: 0644]
bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/i18n/vigicrues_fr.properties
bundles/org.openhab.binding.vigicrues/src/main/resources/OH-INF/thing/thing-types.xml

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 (file)
index 0000000..297bde1
--- /dev/null
@@ -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.
index e7c7e1d0db1652f10ff9645e9aee6766a10bffba..7f026573c0ad121051287727b9dac9daa1937a11 100644 (file)
@@ -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.
 
-# 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.
+# thing types config
 
-channel-type.vigicrues.flow.label = Débit
-channel-type.vigicrues.flow.description = Débit du cours d'eau.
+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-type.vigicrues.relative-flow.label = Débit relatif
-channel-type.vigicrues.relative-flow.description = Débit relatif par rapport aux crues historiques.
+# channel types
 
+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.
index b0db7340f7c70edefcda8b335fbc78af53be24e7..108cb0205964beab2368e3baa6fd0d24987374ee 100644 (file)
@@ -22,7 +22,8 @@
                        <channel id="alert" typeId="alert-level"/>
                        <channel id="alert-icon" typeId="alert-icon"/>
                        <channel id="short-comment" typeId="comment">
-                               <label>Short description</label>
+                               <label>Short Description</label>
+                               <description>Brief description of the situation.</description>
                        </channel>
                        <channel id="comment" typeId="comment"/>
                        <channel id="observation-time" typeId="observation-time"/>
@@ -46,6 +47,7 @@
        <channel-type id="flow">
                <item-type>Number:VolumetricFlowRate</item-type>
                <label>Current Flow</label>
+               <description>Current river flow</description>
                <category>flow</category>
                <tags>
                        <tag>Measurement</tag>
        <channel-type id="comment">
                <item-type>String</item-type>
                <label>Comment</label>
+               <description>Detailed comment</description>
                <category>text</category>
                <tags>
                        <tag>Status</tag>