Skip to content

Commit

Permalink
Fix current version translation (#122)
Browse files Browse the repository at this point in the history
* Fix current version translation

* fix current version
  • Loading branch information
zx900930 authored Dec 25, 2021
1 parent 4a53647 commit 07e944d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,10 @@ <h1 data-t>Thank you</h1>
</li>
</ul>

<h1 id="version" data-t>Current version</h1>
<h1 id="version_label" style="text-align:left;float:left;" data-t>Current version</h1>
<h1 id="version" style="text-align:left;float:left;" data-t>Loading...</h1>
<hr style="clear:both;visibility: hidden;"/>
<br>

<input type="submit" value="Check for updates" class="gearPreviewButton" id="checkForUpdatesSubmit" data-t>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/js/lib/i18n/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ function clearlocalCache() {
console.log('Language Cache Cleared!');
localStorage.clear();
i18next.reloadResources();
};
};
5 changes: 2 additions & 3 deletions app/js/lib/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ module.exports = {
// }

const version = document.getElementById('version');
const versionPrefixText = i18next.t("Current version");
version.innerText = versionPrefixText + ": v" + currentVersion;
version.innerText = ": v" + currentVersion;

ipcRenderer.on('update_available', () => {
Notifier.info(i18next.t("New version available, downloading now"));
Expand Down Expand Up @@ -146,4 +145,4 @@ module.exports = {
ipcRenderer.send('check');
});
}
}
}

0 comments on commit 07e944d

Please sign in to comment.