From 37d1191c72b54c31a38c897a3332e1bc36172307 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 14 Feb 2019 09:00:52 -0700 Subject: [PATCH] Add credit for cover photo usage Fixes https://github.com/vector-im/riot-web/issues/8374 --- .../views/settings/tabs/HelpSettingsTab.js | 21 +++++++++++++++++++ src/i18n/strings/en_EN.json | 1 + 2 files changed, 22 insertions(+) diff --git a/src/components/views/settings/tabs/HelpSettingsTab.js b/src/components/views/settings/tabs/HelpSettingsTab.js index 524bddf3b1..4ad62451cb 100644 --- a/src/components/views/settings/tabs/HelpSettingsTab.js +++ b/src/components/views/settings/tabs/HelpSettingsTab.js @@ -126,6 +126,26 @@ export default class HelpSettingsTab extends React.Component { ); } + _renderCredits() { + // Note: This is not translated because it is legal text. + // Also,   is ugly but necessary. + return ( +
+ {_t("Credits")} + +
+ ); + } + render() { let faqText = _t('For help with using Riot, click here.', {}, { 'a': (sub) => {sub}, @@ -211,6 +231,7 @@ export default class HelpSettingsTab extends React.Component { {this._renderLegal()} + {this._renderCredits()}
{_t("Advanced")}
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index fe41beb7ae..e98ad402a0 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -528,6 +528,7 @@ "Deactivating your account is a permanent action - be careful!": "Deactivating your account is a permanent action - be careful!", "Deactivate Account": "Deactivate Account", "Legal": "Legal", + "Credits": "Credits", "For help with using Riot, click here.": "For help with using Riot, click here.", "For help with using Riot, click here or start a chat with our bot using the button below.": "For help with using Riot, click here or start a chat with our bot using the button below.", "Chat with Riot Bot": "Chat with Riot Bot",