Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

include current year in PDF statement copyright footer #6880

Merged
merged 2 commits into from
Jan 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/extensions/brave/locales/en-US/preferences.properties
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contributionStatementFooterNoteBoxHeading1=Note:
contributionStatementFooterNoteBoxBody1=To protect your privacy, this Brave Payments contribution statement is not saved, recorded or logged anywhere other than on your device (this computer). It cannot be retrieved from Brave in the event of data loss on your device.
contributionStatementFooterNoteBoxHeading2=About publisher distributions
contributionStatementFooterNoteBoxBody2=Brave Payments uses a statistical model that removes any ability to identify Brave users based on their browsing behaviors. Anonymous contributions are first combined in the Brave vault and then redistributed into publisher wallets which are confirmed and then collected by the publisher.
contributionStatementCopyrightFooter=©2016 Brave Software. Brave is a registered trademark of Brave Software. Site names may be trademarks or registered trademarks of the site owner.
contributionStatementCopyrightFooter=©2016 - {{currentYear}} Brave Software. Brave is a registered trademark of Brave Software. Site names may be trademarks or registered trademarks of the site owner.
contributionStatements=Contribution statements
listOfContributionStatements=List of contribution statements
bitcoinAddress=Your Brave wallet address is:
Expand Down
6 changes: 5 additions & 1 deletion js/about/contributionStatement.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,13 @@ class ContributionStatement extends ImmutableComponent {
}

get ContributionStatementPageFooter () {
const l10nDataArgs = {
currentYear: new Date().getFullYear().toString(10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toString's radix is option so doesn't need to be specified and you can even just not convert to a string since it'll be coerced but I'm fine with this. Merging, thanks!

}

return (
<div className='pageFooterBox'>
<span className='pageFooterBody' data-l10n-id='contributionStatementCopyrightFooter' />
<span className='pageFooterBody' data-l10n-id='contributionStatementCopyrightFooter' data-l10n-args={JSON.stringify(l10nDataArgs)} />
</div>
)
}
Expand Down