From 1f873b93f69cdd85c42b038fd98e12bc0f8addc7 Mon Sep 17 00:00:00 2001 From: fewieden Date: Sat, 17 Feb 2018 10:17:59 +0100 Subject: [PATCH] changelog, linting --- CHANGELOG.md | 4 ++++ modules/default/updatenotification/updatenotification.js | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1c3cb6d..3fdf6216 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Allow to scroll in full page article view of default newsfeed module with gesture events from [MMM-Gestures](https://github.com/thobach/MMM-Gestures) - Changed 'compliments.js' - update DOM if remote compliments are loaded instead of waiting one updateInterval to show custom compliments +### Changed + +- Update notifications use now translation templates instead of normal strings. + ### Fixed - News article in fullscreen (iframe) is now shown in front of modules. diff --git a/modules/default/updatenotification/updatenotification.js b/modules/default/updatenotification/updatenotification.js index 26d0d9f0..b26517e5 100644 --- a/modules/default/updatenotification/updatenotification.js +++ b/modules/default/updatenotification/updatenotification.js @@ -59,8 +59,8 @@ Module.register("updatenotification", { message.appendChild(icon); var subtextHtml = this.translate("UPDATE_INFO", { - COMMIT_COUNT: this.status.behind + " " + ((this.status.behind == 1) ? "commit" : "commits"), - BRANCH_NAME: this.status.current + COMMIT_COUNT: this.status.behind + " " + ((this.status.behind == 1) ? "commit" : "commits"), + BRANCH_NAME: this.status.current }); var text = document.createElement("span"); @@ -69,7 +69,7 @@ Module.register("updatenotification", { subtextHtml = this.diffLink(subtextHtml); } else { text.innerHTML = this.translate("UPDATE_NOTIFICATION_MODULE", { - MODULE_NAME: this.status.module + MODULE_NAME: this.status.module }); } message.appendChild(text);