Skip to content

Commit

Permalink
Fix build of i18n keys for binding parameters
Browse files Browse the repository at this point in the history
Fix openhab/openhab-webui#2641

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
  • Loading branch information
lolodomo committed Jul 10, 2024
1 parent 918b4fa commit 90358aa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ public ConfigDescriptionI18nUtil(TranslationProvider i18nProvider) {

private String inferKey(URI configDescriptionURI, String parameterName, String lastSegment) {
String uri = configDescriptionURI.getSchemeSpecificPart().replace(":", ".");
return configDescriptionURI.getScheme() + ".config." + uri + "." + parameterName + "." + lastSegment;
String type = "binding".equals(configDescriptionURI.getScheme()) ? "addon" : configDescriptionURI.getScheme();
return type + ".config." + uri + "." + parameterName + "." + lastSegment;
}

private boolean isValidPropertyKey(@Nullable String key) {
Expand Down

0 comments on commit 90358aa

Please sign in to comment.