Skip to content

Commit

Permalink
Merge pull request #502 from brave/rewards_i18n
Browse files Browse the repository at this point in the history
Updates i18n for rewards
  • Loading branch information
bbondy committed Sep 26, 2018
1 parent a6d9cee commit 7d79a1a
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 62 deletions.
10 changes: 4 additions & 6 deletions browser/ui/webui/brave_webui_source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ void CustomizeWebUIHTMLSource(const std::string &name, content::WebUIDataSource*
{ "donationTitle", IDS_BRAVE_REWARDS_LOCAL_DONAT_TITLE },
{ "donationDesc", IDS_BRAVE_REWARDS_LOCAL_DONAT_DESC },
{ "donationTotalDonations", IDS_BRAVE_REWARDS_LOCAL_DONAT_TOTAL_DONATIONS },
{ "donationList", IDS_BRAVE_REWARDS_LOCAL_DONAT_LIST },
{ "donationVisitSome", IDS_BRAVE_REWARDS_LOCAL_DONAT_VISIT_SOME },
{ "donationAbility", IDS_BRAVE_REWARDS_LOCAL_DONAT_ABILITY },
{ "donationAbilityYT", IDS_BRAVE_REWARDS_LOCAL_DONAT_ABILITY_YT },
Expand Down Expand Up @@ -254,8 +253,6 @@ void CustomizeWebUIHTMLSource(const std::string &name, content::WebUIDataSource*
{ "grantDisclaimer", IDS_BRAVE_UI_GRANT_DISCLAIMER },
{ "grantExpire", IDS_BRAVE_UI_GRANT_EXPIRE },
{ "grants", IDS_BRAVE_UI_GRANTS },
{ "howDoesItWork", IDS_BRAVE_UI_HOW_DOES_IT_WORK },
{ "howDoesItWorkDesc", IDS_BRAVE_UI_HOW_DOES_IT_WORK_DESC },
{ "import", IDS_BRAVE_UI_IMPORT },
{ "includeInAuto", IDS_BRAVE_UI_INCLUDE_IN_AUTO },
{ "makeMonthly", IDS_BRAVE_UI_MAKE_MONTHLY },
Expand Down Expand Up @@ -289,8 +286,6 @@ void CustomizeWebUIHTMLSource(const std::string &name, content::WebUIDataSource*
{ "pleaseNote", IDS_BRAVE_UI_PLEASE_NOTE },
{ "print", IDS_BRAVE_UI_PRINT },
{ "readyToTakePart", IDS_BRAVE_UI_READY_TO_TAKE_PART },
{ "readyToTakePartBold", IDS_BRAVE_UI_READY_TO_TAKE_PART_BOLD },
{ "readyToTakePartDesc", IDS_BRAVE_UI_READY_TO_TAKE_PART_DESC },
{ "readyToTakePartOptInText", IDS_BRAVE_UI_READY_TO_TAKE_PART_OPT_IN_TEXT },
{ "readyToTakePartStart", IDS_BRAVE_UI_READY_TO_TAKE_PART_START },
{ "recoveryKeys", IDS_BRAVE_UI_RECOVERY_KEYS },
Expand Down Expand Up @@ -321,6 +316,8 @@ void CustomizeWebUIHTMLSource(const std::string &name, content::WebUIDataSource*
{ "rewardsPanelOffText2", IDS_BRAVE_UI_REWARDS_PANEL_OFF_TEXT2 },
{ "rewardsPanelText1", IDS_BRAVE_UI_REWARDS_PANEL_TEXT1 },
{ "rewardsPanelText2", IDS_BRAVE_UI_REWARDS_PANEL_TEXT2 },
{ "rewardsPanelText3", IDS_BRAVE_UI_REWARDS_PANEL_TEXT3 },
{ "rewardsPanelText4", IDS_BRAVE_UI_REWARDS_PANEL_TEXT4 },
{ "rewardsRestoreText1", IDS_BRAVE_UI_REWARDS_RESTORE_TEXT1 },
{ "rewardsRestoreText2", IDS_BRAVE_UI_REWARDS_RESTORE_TEXT2 },
{ "rewardsRestoreText3", IDS_BRAVE_UI_REWARDS_RESTORE_TEXT3 },
Expand Down Expand Up @@ -361,8 +358,9 @@ void CustomizeWebUIHTMLSource(const std::string &name, content::WebUIDataSource*
{ "welcomeHeaderOne", IDS_BRAVE_UI_WELCOME_HEADER_ONE},
{ "welcomeHeaderTwo", IDS_BRAVE_UI_WELCOME_HEADER_TWO},
{ "whyBraveRewards", IDS_BRAVE_UI_WHY_BRAVE_REWARDS },
{ "whyBraveRewardsBold", IDS_BRAVE_UI_WHY_BRAVE_REWARDS_BOLD },
{ "whyBraveRewardsDesc", IDS_BRAVE_UI_WHY_BRAVE_REWARDS_DESC },
{ "whyBraveRewardsDesc1", IDS_BRAVE_UI_WHY_BRAVE_REWARDS_DESC_1 },
{ "whyBraveRewardsDesc2", IDS_BRAVE_UI_WHY_BRAVE_REWARDS_DESC_2 },
{ "yourWallet", IDS_BRAVE_UI_YOUR_WALLET }
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion components/brave_rewards/ui/components/contributeBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ContributeBox extends React.Component<Props, State> {
type={'contribute'}
>
{getLocale('contributionDisabledText1')} <br />
{getLocale('contributionDisabledText2')}}
{getLocale('contributionDisabledText2')}
</DisabledContent>
)
}
Expand Down
3 changes: 0 additions & 3 deletions components/brave_rewards/ui/components/donationsBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ class DonationBox extends React.Component<Props, {}> {
<List title={getLocale('donationTotalDonations')}>
<Tokens value={0} converted={0} />
</List>
<List title={getLocale('donationList')}>
{getLocale('total')} &nbsp;<Tokens value={numRows} hideText={true} toFixed={false} />
</List>
<TableDonation
rows={donationRows}
allItems={allSites}
Expand Down
Loading

0 comments on commit 7d79a1a

Please sign in to comment.