From 7b0b70ca4afdc567ac6da38ad169645294be4ea2 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Fri, 23 Sep 2022 18:15:50 +0200 Subject: [PATCH] Improve binding archetype for Crowdin usage (#3089) With these changes the proper translations file will be created. The updated comments should prevent review comments and rework. Signed-off-by: Wouter Born --- .../OH-INF/i18n/__bindingId__.properties | 3 +++ .../OH-INF/i18n/__bindingId___xx.properties | 21 ------------------- 2 files changed, 3 insertions(+), 21 deletions(-) create mode 100644 tools/archetype/binding/src/main/resources/archetype-resources/src/main/resources/OH-INF/i18n/__bindingId__.properties delete mode 100644 tools/archetype/binding/src/main/resources/archetype-resources/src/main/resources/OH-INF/i18n/__bindingId___xx.properties diff --git a/tools/archetype/binding/src/main/resources/archetype-resources/src/main/resources/OH-INF/i18n/__bindingId__.properties b/tools/archetype/binding/src/main/resources/archetype-resources/src/main/resources/OH-INF/i18n/__bindingId__.properties new file mode 100644 index 000000000..0c2f44015 --- /dev/null +++ b/tools/archetype/binding/src/main/resources/archetype-resources/src/main/resources/OH-INF/i18n/__bindingId__.properties @@ -0,0 +1,3 @@ +# FIXME: please add all English translations to this file so the texts can be translated using Crowdin +# FIXME: to generate the content of this file run: mvn i18n:generate-default-translations +# FIXME: see also: https://www.openhab.org/docs/developer/utils/i18n.html diff --git a/tools/archetype/binding/src/main/resources/archetype-resources/src/main/resources/OH-INF/i18n/__bindingId___xx.properties b/tools/archetype/binding/src/main/resources/archetype-resources/src/main/resources/OH-INF/i18n/__bindingId___xx.properties deleted file mode 100644 index 1a1fc1fcc..000000000 --- a/tools/archetype/binding/src/main/resources/archetype-resources/src/main/resources/OH-INF/i18n/__bindingId___xx.properties +++ /dev/null @@ -1,21 +0,0 @@ -# FIXME: please substitute the xx with a proper locale, ie. de -# FIXME: please do not add the file to the repo if you add or change no content -# binding -binding.${bindingId}.name = -binding.${bindingId}.description = - -# thing types -thing-type.${bindingId}.sample.label = -thing-type.${bindingId}.sample.description = - -# thing type config description -thing-type.config.${bindingId}.sample.hostname.label = -thing-type.config.${bindingId}.sample.hostname.description = -thing-type.config.${bindingId}.sample.password.label = -thing-type.config.${bindingId}.sample.password.description = -thing-type.config.${bindingId}.sample.refreshInterval.label = -thing-type.config.${bindingId}.sample.refreshInterval.description = - -# channel types -channel-type.${bindingId}.sample-channel.label = -channel-type.${bindingId}.sample-channel.description =