Skip to content

Commit 86802ac

Browse files
committed
Added database copyright statement and automatically updating copyright year.
1 parent b8573d9 commit 86802ac

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Src/FmAboutDlg.pas

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
44
* obtain one at http://mozilla.org/MPL/2.0/
55
*
6-
* Copyright (C) 2005-2013, Peter Johnson (www.delphidabbler.com).
6+
* Copyright (C) 2005-2014, Peter Johnson (www.delphidabbler.com).
77
*
88
* $Rev$
99
* $Date$
@@ -184,6 +184,7 @@ implementation
184184
<%Registered%> info about whether program is registered
185185
<%ContribList%> list of program contributors
186186
<%TesterList%> list of program testers
187+
<%Year%> current year
187188
}
188189

189190

@@ -451,6 +452,9 @@ procedure TAboutDlg.InitHTMLFrames;
451452
Tplt.ResolvePlaceholderHTML(
452453
'TesterList', ContribListHTML(TTesters)
453454
);
455+
Tplt.ResolvePlaceholderText(
456+
'Year', FormatDateTime('YYYY', Now)
457+
);
454458
end
455459
);
456460
end;

Src/Res/HTML/dlg-about-database-tplt.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,13 @@
5555
</p>
5656

5757
<p>
58-
The source code in the database is open source and is covered by the <a
58+
The source code in the database is copyright &copy; <%Year%> by the
59+
database contributors (see below). It is made available under the terms of
60+
the <a
5961
class="external-link"
6062
href="http://opensource.org/licenses/MIT"
61-
>MIT License</a>. The code is used entirely at your own risk.
63+
>MIT License</a>. The code is
64+
used entirely at your own risk.
6265
</p>
6366

6467
<p>

0 commit comments

Comments
 (0)