1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Use current year in About box (in the copyright text) (#2466)

This commit is contained in:
Helmut K. C. Tessarek 2020-02-10 10:54:53 -05:00 committed by GitHub
parent 9b157c7ac3
commit 0b0ff15dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -621,10 +621,11 @@ class Application extends BaseApplication {
if ('git' in p) {
gitInfo = _('Revision: %s (%s)', p.git.hash, p.git.branch);
}
const copyrightText = 'Copyright © 2016-YYYY Laurent Cozic';
let message = [
p.description,
'',
'Copyright © 2016-2019 Laurent Cozic',
copyrightText.replace('YYYY', new Date().getFullYear()),
_('%s %s (%s, %s)', p.name, p.version, Setting.value('env'), process.platform),
'',
_('Client ID: %s', Setting.value('clientId')),