]> git.basschouten.com Git - openhab-addons.git/commitdiff
[sncf] Align XML description and default translations (#12887)
authorlolodomo <lg.hc@free.fr>
Mon, 6 Jun 2022 11:17:22 +0000 (13:17 +0200)
committerGitHub <noreply@github.com>
Mon, 6 Jun 2022 11:17:22 +0000 (13:17 +0200)
Re-run of the i18n tool will then trigger no change.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.sncf/src/main/resources/OH-INF/config/config.xml
bundles/org.openhab.binding.sncf/src/main/resources/OH-INF/i18n/sncf.properties
bundles/org.openhab.binding.sncf/src/main/resources/OH-INF/thing/bridge.xml
bundles/org.openhab.binding.sncf/src/main/resources/OH-INF/thing/station.xml

index d96cf36e38e8ef73bb6c68e4fe34d844fed8d35f..72da1466f0070109f50728ded9bd092413acabda 100644 (file)
@@ -8,6 +8,7 @@
        <config-description uri="thing-type:sncf:api">
                <parameter name="apiID" type="text" required="true">
                        <label>API ID</label>
+                       <description>Your SNCF API ID</description>
                        <context>password</context>
                </parameter>
        </config-description>
index 1b02bcf8288c84a61f20a68838f06166e2dd3cc1..0039650ed86216fbc673c7243dd29d45d45ae6c3 100644 (file)
@@ -1,23 +1,32 @@
+# binding
 
 binding.sncf.name = SNCF Binding
 binding.sncf.description = Retrieves French railway informations
 
-config.thing-type.sncf.api.apiID.label = API ID
-config.thing-type.sncf.api.apiID.description = Your SNCF API ID
+# thing types
 
 thing-type.sncf.api.label = SNCF API
 thing-type.sncf.api.description = This bridge is the gateway to SNCF API.
-
 thing-type.sncf.station.label = Station
 thing-type.sncf.station.description = Represents a station hosting some transportation mode.
 thing-type.sncf.station.group.arrivals.label = Next Arrival
-thing-type.sncf.station.group.arrivals.description = Informations regarding next arrival at the station.
+thing-type.sncf.station.group.arrivals.description = Information regarding the next arrival at the station.
 thing-type.sncf.station.group.departures.label = Next Departure
-thing-type.sncf.station.group.departures.description = Informations regarding next departure from the station.
+thing-type.sncf.station.group.departures.description = Information regarding the next departure from the station.
+
+# thing types config
 
+thing-type.config.sncf.api.apiID.label = API ID
+thing-type.config.sncf.api.apiID.description = Your SNCF API ID
 thing-type.config.sncf.station.stopPointId.label = Stop Point ID
 thing-type.config.sncf.station.stopPointId.description = The stop point ID of the station as defined by DIGITALSNCF.
-  
+
+# channel group types
+
+channel-group-type.sncf.passage.label = Other
+
+# channel types
+
 channel-type.sncf.direction.label = Direction
 channel-type.sncf.direction.description = The direction of this route.
 channel-type.sncf.lineName.label = Line
@@ -28,8 +37,10 @@ channel-type.sncf.network.label = Network
 channel-type.sncf.network.description = Name of the transportation network.
 channel-type.sncf.timestamp.label = Timestamp
 channel-type.sncf.timestamp.description = Timestamp of the future event.
+channel-type.sncf.timestamp.state.pattern = %1$tH:%1$tM:%1$tS
+
+# error messages
 
-# Error messages
 null-or-empty-api-key = Null or empty API ID
 error-invalid-apikey = Invalid API ID
 null-or-empty-station-id = Null or empty Station ID
index ab99f53c2592416b3aa3f0883c4ab1829c550d43..8694a956b2848776441f07d599836335ce36193f 100644 (file)
@@ -6,6 +6,7 @@
 
        <bridge-type id="api">
                <label>SNCF API</label>
+               <description>This bridge is the gateway to SNCF API.</description>
                <config-description-ref uri="thing-type:sncf:api"/>
        </bridge-type>
 
index 495b8c1bf6192f5e6c4589b5a508048331915bd4..4cb6574d0f9aa690ee361b7198925a06d66fba6f 100644 (file)
                </supported-bridge-type-refs>
 
                <label>Station</label>
+               <description>Represents a station hosting some transportation mode.</description>
 
                <channel-groups>
                        <channel-group id="arrivals" typeId="passage">
                                <label>Next Arrival</label>
+                               <description>Information regarding the next arrival at the station.</description>
                        </channel-group>
                        <channel-group id="departures" typeId="passage">
                                <label>Next Departure</label>
+                               <description>Information regarding the next departure from the station.</description>
                        </channel-group>
                </channel-groups>
 
@@ -24,7 +27,8 @@
 
                <config-description>
                        <parameter name="stopPointId" type="text" required="true">
-                               <label>Station ID</label>
+                               <label>Stop Point ID</label>
+                               <description>The stop point ID of the station as defined by DIGITALSNCF.</description>
                        </parameter>
                </config-description>
        </thing-type>
        <channel-type id="direction">
                <item-type>String</item-type>
                <label>Direction</label>
+               <description>The direction of this route.</description>
                <state readOnly="true"></state>
        </channel-type>
 
        <channel-type id="lineName">
                <item-type>String</item-type>
                <label>Line</label>
+               <description>Name of the line (network + line number/letter)</description>
                <state readOnly="true"></state>
        </channel-type>
 
        <channel-type id="name" advanced="true">
                <item-type>String</item-type>
                <label>Name</label>
+               <description>Name of the line.</description>
                <state readOnly="true"></state>
        </channel-type>
 
        <channel-type id="network" advanced="true">
                <item-type>String</item-type>
                <label>Network</label>
+               <description>Name of the transportation network.</description>
                <state readOnly="true"></state>
        </channel-type>
 
        <channel-type id="timestamp">
                <item-type>DateTime</item-type>
                <label>Timestamp</label>
+               <description>Timestamp of the future event.</description>
                <category>time</category>
                <state readOnly="true" pattern="%1$tH:%1$tM:%1$tS"/>
        </channel-type>