New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard internationalization #217
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7268e65
Dashboard internationalization
lolodomo 97133e0
Updated localization by using map of keys.
Hilbrand d81a1dc
Merge pull request #1 from Hilbrand/dashboard_i18n_update
lolodomo 099151c
Merge branch 'dashboard_i18n' into dashboard_new
lolodomo b0bfc37
Check that a translation is available for the server language before …
lolodomo 0b6552f
Switch back to server locale to get the UI language
lolodomo File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
bundles/org.openhab.ui.dashboard/ESH-INF/i18n/dashboard.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,30 @@ | ||
index.welcome = Welcome to openHAB 2 | ||
index.location-info = If you allow your browser to access your location, openHAB will use it for weather and astro information. | ||
index.your-location = Your location: | ||
|
||
setup.subtitle = Setup | ||
setup.welcome = Welcome to openHAB 2 - Initial Setup | ||
setup.intro = openHAB comes with many different add-ons. To allow an easy start, there are four pre-defined packages available that are a good starting point. | ||
setup.check-doc = Check out the online documentation for a <a href="http://docs.openhab.org/configuration/packages.html" target="_blank">detailed description of those packages</a>. | ||
setup.choose-package = Please choose a package: | ||
setup.package-simple-overlay = Simple | ||
setup.package-simple-footer = Purely UI | ||
setup.package-standard-overlay = Standard | ||
setup.package-standard-footer = Recommended setup | ||
setup.package-expert-overlay = Expert | ||
setup.package-expert-footer = Best for 1.x users | ||
setup.package-demo-overlay = Demo | ||
setup.package-demo-footer = Sample setup | ||
setup.skip-package = Skip the package selection... | ||
|
||
common.getting-started = Getting started? Please refer to the <a href="http://docs.openhab.org/" target="_blank">online documentation</a>. | ||
|
||
entry.no-ui-installed = No user interfaces installed. | ||
entry.install-running = Please stand by while UIs are being installed. This can take several minutes. | ||
|
||
warn.exposed = WARNING - YOUR HOME IS EXPOSED! | ||
warn.explanation = It seems that you have configured your network in a way that you can remotely access your openHAB server. Unfortunately, it is not just you - almost <b>everybody on the Internet can access it!</b> | ||
warn.advice = If this wasn't your plan, please act immediately. Stop the port forwarding of your router or make sure that you have a secure authentication mechanism in place, e.g. by using NGINX as a reverse proxy inbetween. | ||
warn.understood-before = If you have read and understood this message and you have taken appropriate actions, please | ||
warn.understood-click = click here | ||
warn.understood-after = to make this message disappear again. |
30 changes: 30 additions & 0 deletions
30
bundles/org.openhab.ui.dashboard/ESH-INF/i18n/dashboard_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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
index.welcome = Bienvenue dans openHAB 2 | ||
index.location-info = Si vous autorisez votre navigateur � acc�der � votre position, openHAB l'utilisera par exemple pour les donn�es m�t�o locales. | ||
index.your-location = Votre position: | ||
|
||
setup.subtitle = Configuration | ||
setup.welcome = Bienvenue dans openHAB 2 - Configuration initiale | ||
setup.intro = openHAB est fourni avec de nombreuses extensions. Pour permettre un d�marrage facile, quatre paquets d'extensions pr�-d�finis sont disponibles et constituent un bon point de d�part. | ||
setup.check-doc = Consulter la documentation en ligne pour une <a href="http://docs.openhab.org/configuration/packages.html" target="_blank">description d�taill�e de ces paquets</a>. | ||
setup.choose-package = Merci de choisir un paquet: | ||
setup.package-simple-overlay = Simple | ||
setup.package-simple-footer = Purement UI | ||
setup.package-standard-overlay = Standard | ||
setup.package-standard-footer = Configuration recommand�e | ||
setup.package-expert-overlay = Expert | ||
setup.package-expert-footer = Pour les utilisateurs 1.x | ||
setup.package-demo-overlay = D�mo | ||
setup.package-demo-footer = Configuration de d�mo | ||
setup.skip-package = Sauter l'�tape de s�lection d'un paquet... | ||
|
||
common.getting-started = D�marrage ? Merci de vous r�f�rer � la <a href="http://docs.openhab.org/" target="_blank">documentation en ligne</a>. | ||
|
||
entry.no-ui-installed = Aucune interface utilisateur install�e. | ||
entry.install-running = Merci de patienter pendant l'installation. Cela peut prendre plusieurs minutes. | ||
|
||
warn.exposed = ATTENTION - VOTRE MAISON EST EXPOS�E ! | ||
warn.explanation = Il semble que vous ayez configur� votre r�seau de mani�re � pouvoir acc�der � distance � votre serveur openHAB. Malheureusement, ce n'est pas seulement vous mais pratiquement <b>tout le monde sur Internet qui peut y acc�der !</b> | ||
warn.advice = Si ce n'�tait pas votre objectif, veuillez agir imm�diatement. Arr�tez le renvoi de port de votre routeur ou assurez-vous que vous disposez d'un m�canisme d'authentification s�curis�, par exemple en utilisant NGINX comme reverse proxy entre Internet et votre serveur openHAB. | ||
warn.understood-before = Si vous avez lu et compris ce message et que vous avez pris les mesures appropri�es, merci de | ||
warn.understood-click = cliquez ici | ||
warn.understood-after = pour faire dispara�tre ce message. |
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"or an empty string if not" 😲
This can't be the solution. Strings will be added over time and if the Japanese language file is not updated right away, please present the english string as a fallback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes or course the English text is returned for a key that is not present in the Japanese file.
Empty string is returned in the case the entry is not defined in the default English file too. This case should never happened except if there is a bug in the code.