diff --git a/readme.md b/readme.md index 3ae5e84a..617940b9 100644 --- a/readme.md +++ b/readme.md @@ -78,6 +78,10 @@ Also, you can convert `.webarchive` files into `.html` webpages.** | Create new | Yes | Yes | Coming soon | | Generate QR-Code | Yes | Yes | Coming soon | | Instant URL, QR-Code copy | Yes | Yes | Coming soon | +| `.webloc` support | Yes | Yes | Coming soon | +| `.desktop` support | Yes | Yes | Coming soon | +| `.url` support | No | Yes | Coming soon | +| `.webarchive` support | Yes | Yes | Coming soon | | Convert `.webloc`, `.url`, `.desktop`, `.webarchive` | Yes | Yes | Coming soon | | Auto-update | Yes | Yes | Coming soon | | Open in not default browser | Yes | Yes | Coming soon | diff --git a/src/main/java/com/github/benchdoos/weblocopener/service/impl/DefaultHtmlService.java b/src/main/java/com/github/benchdoos/weblocopener/service/impl/DefaultHtmlService.java index 08583041..380b64b6 100644 --- a/src/main/java/com/github/benchdoos/weblocopener/service/impl/DefaultHtmlService.java +++ b/src/main/java/com/github/benchdoos/weblocopener/service/impl/DefaultHtmlService.java @@ -24,6 +24,7 @@ public HtmlTag prepareUpdateInfoHtmlPage(final UpdateInfo updateInfo) { final List modifications = prepareRawList(updateInfo); final Locale locale = Translation.getSelectedLocale(); + final String localeName = locale.getLanguage().toLowerCase(); return TagCreator.html( TagCreator.body( TagCreator.table( @@ -35,8 +36,7 @@ public HtmlTag prepareUpdateInfoHtmlPage(final UpdateInfo updateInfo) { final Map description = value.modification().description(); - final String srcMessage = - description.get(locale.getLanguage().toLowerCase()); + final String srcMessage = description.get(localeName); final String message; if (StringUtils.isNotBlank(srcMessage)) { message = srcMessage;