Fix localization concatenation + Cleanup unused strings #4239

Merged
infinite-persistence merged 9 commits from fix-localization-concat into master 2020-05-28 15:50:09 +02:00
2 changed files with 23 additions and 3 deletions
Showing only changes of commit a29ac63178 - Show all commits

View file

@ -1217,6 +1217,10 @@
"%duration% minute ago": "%duration% minute ago", "%duration% minute ago": "%duration% minute ago",
"%duration% seconds ago": "%duration% seconds ago", "%duration% seconds ago": "%duration% seconds ago",
"%duration% second ago": "%duration% second ago", "%duration% second ago": "%duration% second ago",
"Join our %tech_forum%": "Join our %tech_forum%",
"tech forum": "tech forum",
"Explore our %technical_resources%": "Explore our %technical_resources%",
"technical resources": "technical resources",
"Check your rewards page to see if you qualify for paid content reimbursement. Only content in this section qualifies.": "Check your rewards page to see if you qualify for paid content reimbursement. Only content in this section qualifies.", "Check your rewards page to see if you qualify for paid content reimbursement. Only content in this section qualifies.": "Check your rewards page to see if you qualify for paid content reimbursement. Only content in this section qualifies.",
"blocked channels": "blocked channels", "blocked channels": "blocked channels",
"%count% %channels%. ": "%count% %channels%. " "%count% %channels%. ": "%count% %channels%. "

View file

@ -5,6 +5,7 @@ import { doToast } from 'lbry-redux';
import { Lbryio } from 'lbryinc'; import { Lbryio } from 'lbryinc';
import Page from 'component/page'; import Page from 'component/page';
import Card from 'component/common/card'; import Card from 'component/common/card';
import I18nMessage from 'component/i18nMessage';
class ReportPage extends React.Component { class ReportPage extends React.Component {
constructor(props) { constructor(props) {
@ -95,11 +96,26 @@ class ReportPage extends React.Component {
. .
</li> </li>
<li> <li>
{__('Explore our')}{' '} <I18nMessage
<Button button="link" href="https://lbry.tech" label={__('technical resources')} />. tokens={{
technical_resources: (
<Button button="link" href="https://lbry.tech" label={__('technical resources')} />
),
}}
>
Explore our %technical_resources%
</I18nMessage>
.
</li> </li>
<li> <li>
{__('Join our')} <Button button="link" href="https://forum.lbry.tech" label={__('tech forum')} />. <I18nMessage
tokens={{
tech_forum: <Button button="link" href="https://forum.lbry.tech" label={__('tech forum')} />,
}}
>
Join our %tech_forum%
</I18nMessage>
.
</li> </li>
</ul> </ul>
</div> </div>