CHANGED: The UPDATE_INFO key in the localization file is changed to UPDATE_INFO_SINGLE and UPDATE_INFO_MULTIPLE to allow different localization for single and multiple commits.

This commit is contained in:
György Balássy
2018-08-30 00:21:43 +02:00
parent ddebc63488
commit b601f6a138
28 changed files with 56 additions and 28 deletions

View File

@@ -58,7 +58,8 @@ Module.register("updatenotification", {
icon.innerHTML = " ";
message.appendChild(icon);
var subtextHtml = this.translate("UPDATE_INFO", {
var updateInfoKeyName = this.status.behind == 1 ? "UPDATE_INFO_SINGLE" : "UPDATE_INFO_MULTIPLE";
var subtextHtml = this.translate(updateInfoKeyName, {
COMMIT_COUNT: this.status.behind,
BRANCH_NAME: this.status.current
});