diff --git a/CHANGELOG.md b/CHANGELOG.md
index e266cd9b..4b8c087c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- French translate for "Feels"
- Translations for newsfeed module
- Support for toggling news article in fullscreen
+- Hungarian translation for "Feels" and "Week"
+- Spanish translation for "Feels"
+- Add classes instead of inline style to the message from the module Alert
### Fixed
- Mixup between german and spanish translation for newsfeed.
@@ -19,6 +22,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Updated
- Swedish translations
+- Hungarian translations for the updatenotification module
## [2.4.1] - 2018-07-04
diff --git a/modules/default/alert/alert.js b/modules/default/alert/alert.js
index 85d6ef42..cc0ae302 100644
--- a/modules/default/alert/alert.js
+++ b/modules/default/alert/alert.js
@@ -38,13 +38,13 @@ Module.register("alert",{
if (this.config.effect == "slide") {this.config.effect = this.config.effect + "-" + this.config.position;}
msg = "";
if (message.title) {
- msg += "" + message.title + "";
+ msg += "" + message.title + "";
}
if (message.message){
if (msg != ""){
msg+= "
";
}
- msg += "" + message.message + "";
+ msg += "" + message.message + "";
}
new NotificationFx({
@@ -63,9 +63,9 @@ Module.register("alert",{
params.imageUrl = null;
image = "";
} else if (typeof params.imageFA === "undefined"){
- image = ".toString() + ")
";
+ image = ".toString() + ")
";
} else if (typeof params.imageUrl === "undefined"){
- image = "
";
+ image = "
";
}
//Create overlay
var overlay = document.createElement("div");
@@ -79,16 +79,16 @@ Module.register("alert",{
}
//Display title and message only if they are provided in notification parameters
- message ="";
+ var message = "";
if (params.title) {
- message += "" + params.title + ""
+ message += "" + params.title + "";
}
if (params.message) {
- if (message != ""){
+ if (message !== ""){
message += "
";
}
- message += "" + params.message + "";
+ message += "" + params.message + "";
}
//Store alert in this.alerts
@@ -121,16 +121,16 @@ Module.register("alert",{
setPosition: function(pos) {
//Add css to body depending on the set position for notifications
var sheet = document.createElement("style");
- if (pos == "center") {sheet.innerHTML = ".ns-box {margin-left: auto; margin-right: auto;text-align: center;}";}
- if (pos == "right") {sheet.innerHTML = ".ns-box {margin-left: auto;text-align: right;}";}
- if (pos == "left") {sheet.innerHTML = ".ns-box {margin-right: auto;text-align: left;}";}
+ if (pos === "center") {sheet.innerHTML = ".ns-box {margin-left: auto; margin-right: auto;text-align: center;}";}
+ if (pos === "right") {sheet.innerHTML = ".ns-box {margin-left: auto;text-align: right;}";}
+ if (pos === "left") {sheet.innerHTML = ".ns-box {margin-right: auto;text-align: left;}";}
document.body.appendChild(sheet);
},
notificationReceived: function(notification, payload, sender) {
if (notification === "SHOW_ALERT") {
if (typeof payload.type === "undefined") { payload.type = "alert"; }
- if (payload.type == "alert") {
+ if (payload.type === "alert") {
this.show_alert(payload, sender);
} else if (payload.type = "notification") {
this.show_notification(payload);
@@ -143,7 +143,7 @@ Module.register("alert",{
this.alerts = {};
this.setPosition(this.config.position);
if (this.config.welcome_message) {
- if (this.config.welcome_message == true){
+ if (this.config.welcome_message === true){
this.show_notification({title: this.translate("sysTitle"), message: this.translate("welcome")});
}
else{
diff --git a/translations/es.json b/translations/es.json
index 44d08c2c..c2420494 100644
--- a/translations/es.json
+++ b/translations/es.json
@@ -28,5 +28,7 @@
"UPDATE_NOTIFICATION": "MagicMirror² actualización disponible.",
"UPDATE_NOTIFICATION_MODULE": "Disponible una actualización para el módulo {MODULE_NAME}.",
- "UPDATE_INFO": "Tu actual instalación está {COMMIT_COUNT} cambios detrás de la rama {BRANCH_NAME}."
+ "UPDATE_INFO": "Tu actual instalación está {COMMIT_COUNT} cambios detrás de la rama {BRANCH_NAME}.",
+
+ "FEELS": "Sensación térmica de"
}