]> git.basschouten.com Git - openhab-addons.git/commitdiff
[openhabcloud] Added default i18n properties file (#11547)
authorChristoph Weitkamp <github@christophweitkamp.de>
Mon, 8 Nov 2021 11:58:29 +0000 (12:58 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Nov 2021 11:58:29 +0000 (12:58 +0100)
* Added default i18n properties file
* Added translation property for service label

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java
bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/config/config.xml
bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/i18n/openhabcloud.properties [new file with mode: 0644]

index df9137673e1e85f7124c06fded5967c00fbbf011..e41e9f27c3018fcd76ea8b6507f8141ed43e4336 100644 (file)
@@ -67,9 +67,11 @@ import org.slf4j.LoggerFactory;
 @Component(service = { CloudService.class, EventSubscriber.class,
         ActionService.class }, configurationPid = "org.openhab.openhabcloud", property = Constants.SERVICE_PID
                 + "=org.openhab.openhabcloud")
-@ConfigurableService(category = "io", label = "openHAB Cloud", description_uri = "io:openhabcloud")
+@ConfigurableService(category = "io", label = "openHAB Cloud", description_uri = CloudService.CONFIG_URI)
 public class CloudService implements ActionService, CloudClientListener, EventSubscriber {
 
+    protected static final String CONFIG_URI = "io:openhabcloud";
+
     private static final String CFG_EXPOSE = "expose";
     private static final String CFG_BASE_URL = "baseURL";
     private static final String CFG_MODE = "mode";
index 2146c45efe0d94418cc02c37db0f67ddf34b6672..d870ed859e11cd467bb882f1f4d44b5c7a2d8a03 100644 (file)
@@ -21,7 +21,7 @@
                </parameter>
                <parameter name="baseURL" type="text" required="false">
                        <label>Base URL</label>
-                       <description>Base URL for the openHAB Cloud server</description>
+                       <description>Base URL for the openHAB Cloud server.</description>
                        <default>https://myopenhab.org/</default>
                </parameter>
        </config-description>
diff --git a/bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/i18n/openhabcloud.properties b/bundles/org.openhab.io.openhabcloud/src/main/resources/OH-INF/i18n/openhabcloud.properties
new file mode 100644 (file)
index 0000000..cb76d54
--- /dev/null
@@ -0,0 +1,14 @@
+# service
+
+service.io.openhabcloud.label = openHAB Cloud
+
+# bundle config
+
+io.config.openhabcloud.baseURL.label = Base URL
+io.config.openhabcloud.baseURL.description = Base URL for the openHAB Cloud server.
+io.config.openhabcloud.expose.label = Items to Expose
+io.config.openhabcloud.expose.description = List of items that are made accessible to IFTTT and similar services.
+io.config.openhabcloud.mode.label = Mode
+io.config.openhabcloud.mode.description = What features of the openHAB Cloud service should be used.
+io.config.openhabcloud.mode.option.notification = Notifications
+io.config.openhabcloud.mode.option.remote = Notifications & Remote Access