-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make UI configurations translatable (#1246)
Adds the default translation strings so the UI configuration can be translated with Crowdin. Other fixes/improvements: * Adds config for this to crowdin.yml * Adds the i18n Maven plugin dependency so it can be more easily used * Fixes a few encoding issues * Uses the ConfigurableService annotation Signed-off-by: Wouter Born <github@maindrain.net>
- Loading branch information
Showing
10 changed files
with
79 additions
and
13 deletions.
There are no files selected for viewing
30 changes: 28 additions & 2 deletions
30
bundles/org.openhab.ui.basic/src/main/resources/OH-INF/i18n/basic.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,33 @@ | ||
ui.config.basic.capitalizeValues.label = Capitalize Values | ||
ui.config.basic.capitalizeValues.description = Displays all widget states in uppercase. | ||
ui.config.basic.capitalizeValues.option.true = Enable | ||
ui.config.basic.capitalizeValues.option.false = Disable | ||
ui.config.basic.condensedLayout.label = Condensed Layout | ||
ui.config.basic.condensedLayout.description = When enabled, changes the layout so that more widgets can fit on the screen. | ||
ui.config.basic.condensedLayout.option.true = Enable | ||
ui.config.basic.condensedLayout.option.false = Disable | ||
ui.config.basic.defaultSitemap.label = Default Sitemap | ||
ui.config.basic.defaultSitemap.description = The sitemap to show if no parameter is passed. | ||
ui.config.basic.enableIcons.label = Enable Icons | ||
ui.config.basic.enableIcons.description = Defines whether UI renders icons for the widgets or not. | ||
ui.config.basic.enableIcons.option.true = Enable | ||
ui.config.basic.enableIcons.option.false = Disable | ||
ui.config.basic.theme.label = Theme | ||
ui.config.basic.theme.description = Defines the UI theme. | ||
ui.config.basic.theme.option.default = Default | ||
ui.config.basic.theme.option.dark = Dark | ||
|
||
# service | ||
|
||
service.ui.basic.label = Basic UI | ||
|
||
# messages | ||
|
||
main.offline-msg = Offline: waiting for connection to become available | ||
main.long-polling-mode-msg = SSE subscription failed ({error}): running in fallback mode | ||
|
||
sitemaps-list.welcome = Welcome! | ||
sitemaps-list.available-sitemaps = Available sitemaps | ||
# sitemaps | ||
|
||
sitemaps-list-empty.info = It seems like you have not defined any sitemaps yet. To build one, please check the documentation for guidance. | ||
sitemaps-list.welcome = Welcome! | ||
sitemaps-list.available-sitemaps = Available sitemaps |
10 changes: 7 additions & 3 deletions
10
bundles/org.openhab.ui.basic/src/main/resources/OH-INF/i18n/basic_de.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# messages | ||
|
||
main.offline-msg = Offline: Warte auf Verbindung | ||
main.long-polling-mode-msg = SSE-Abonnement fehlgeschlagen ({error}): Im Fallback-Modus ausgeführt | ||
main.long-polling-mode-msg = SSE-Abonnement fehlgeschlagen ({error}): Im Fallback-Modus ausgeführt | ||
|
||
# sitemaps | ||
|
||
sitemaps-list.welcome = Willkommen! | ||
sitemaps-list.available-sitemaps = Verfügbare Sitemaps | ||
sitemaps-list-empty.info = Sie haben noch keine Sitemaps definiert. Hilfe zur Erstellung von Sitemaps finden Sie in der Dokumentation. | ||
sitemaps-list.welcome = Willkommen! | ||
sitemaps-list.available-sitemaps = Verfügbare Sitemaps |
11 changes: 7 additions & 4 deletions
11
bundles/org.openhab.ui.basic/src/main/resources/OH-INF/i18n/basic_fr.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
main.offline-msg = Non connecté: en attente d'une connexion disponible | ||
main.long-polling-mode-msg = Échec de l'abonnement SSE ({error}): exécution en mode secours | ||
# messages | ||
|
||
main.offline-msg = Non connecté: en attente d'une connexion disponible | ||
main.long-polling-mode-msg = Échec de l'abonnement SSE ({error}): exécution en mode secours | ||
|
||
# sitemaps | ||
|
||
sitemaps-list-empty.info = Il semble que vous n'ayez encore défini aucune sitemap. Pour en construire une, merci de vous aider de la documentation. | ||
sitemaps-list.welcome = Bienvenue! | ||
sitemaps-list.available-sitemaps = Sitemaps disponibles | ||
|
||
sitemaps-list-empty.info = Il semble que vous n'ayez encore défini aucune sitemap. Pour en construire une, merci de vous aider de la documentation. |
10 changes: 10 additions & 0 deletions
10
bundles/org.openhab.ui.cometvisu/src/main/resources/OH-INF/i18n/cometvisu.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ui.config.cometvisu.autoDownload.label = Auto-Download | ||
ui.config.cometvisu.autoDownload.description = If you enable this feature, the current release of CometVisu client (GNU General Public License v3.0) will be automatically downloaded to your openHAB server and extracted into the folder you defined in the Filesystem path, if it is not found there. | ||
ui.config.cometvisu.webAlias.label = Browser path | ||
ui.config.cometvisu.webAlias.description = The relative browser path where you can access the client e.g http://<openhab-server>:8080/<webAlias>/ | ||
ui.config.cometvisu.webFolder.label = Filesystem path | ||
ui.config.cometvisu.webFolder.description = Defines the path to the CometVisu client directory. | ||
|
||
# service | ||
|
||
service.ui.cometvisu.label = CometVisu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
bundles/org.openhab.ui.habot/src/main/resources/OH-INF/i18n/opennlphli.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
voice.config.opennlphli.theme.label = Tokenizer | ||
voice.config.opennlphli.theme.description = The alphanumeric tokenizer removes punctuation and might help with languages where entities might not always be enclosed between whitespaces (French, Spanish, Italian... Example: "l'humidité", "l'alarme") | ||
voice.config.opennlphli.theme.option.whitespace = Whitespace | ||
voice.config.opennlphli.theme.option.alphanumeric = Alphanumeric | ||
|
||
# service | ||
|
||
service.voice.opennlphli.label = OpenNLP Interpreter for HABot |
2 changes: 2 additions & 0 deletions
2
bundles/org.openhab.ui.iconset.classic/src/main/resources/OH-INF/i18n/iconset.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
iconset.label = Classic Icons | ||
iconset.description = This is a modernized version of the original icon set of openHAB 1. |
2 changes: 1 addition & 1 deletion
2
...rces/OH-INF/i18n/iconset_de_DE.properties → ...sources/OH-INF/i18n/iconset_de.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
iconset.label = Classic Icons | ||
iconset.description = Dies ist eine modernisierte Variante der ursprünglichen openHAB 1 Icons. | ||
iconset.description = Dies ist eine modernisierte Variante der ursprünglichen openHAB 1 Icons. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
files: | ||
- source: /bundles/org.openhab.ui/web/src/assets/i18n/**/en.json | ||
translation: /%original_path%/%two_letters_code%.json | ||
- source: /bundles/**/i18n/**/*.properties | ||
ignore: | ||
- /bundles/**/i18n/**/*_*.properties | ||
translation: /%original_path%/%file_name%_%two_letters_code%.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters