i18n updates and fixes (#822)

FileExporter - fix double translation. Just let the client provide the string to use.

Collection - translate built-in lists
This commit is contained in:
infinite-persistence 2022-02-07 10:15:22 -08:00 committed by GitHub
parent ce903c9280
commit c67893815b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 10 deletions

View file

@ -564,7 +564,6 @@
"Use this address to receive LBRY Credits.": "Use this address to receive LBRY Credits.",
"Embedded": "Embedded",
"Failed to load %language% translations.": "Failed to load %language% translations.",
"odysee.com Account": "odysee.com Account",
"Paid content cannot be embedded": "Paid content cannot be embedded",
"This content cannot be embedded": "This content cannot be embedded",
"Your videos are ready to be transferred.": "Your videos are ready to be transferred.",
@ -1270,6 +1269,8 @@
"Upload complete.": "Upload complete.",
"Upload Complete": "Upload Complete",
"Uploading": "Uploading",
"Creating": "Creating",
"Saving": "Saving",
"View My Uploads": "View My Uploads",
"View My Dashboard": "View My Dashboard",
"No recent uploads": "No recent uploads",
@ -1345,6 +1346,7 @@
"Not Yet": "Not Yet",
"Confirm Upload": "Confirm Upload",
"Confirm Edit": "Confirm Edit",
"Confirm Update": "Confirm Update",
"Create Livestream": "Create Livestream",
"File": "File",
"Transcode": "Transcode",
@ -1453,7 +1455,6 @@
"Create A Channel": "Create A Channel",
"At least 10 views are required to earn the reward, consume more!": "At least 10 views are required to earn the reward, consume more!",
"Blocked %channel%": "Blocked %channel%",
"Comment(s) blocked.": "Comment(s) blocked.",
"You earned %lbc% for streaming your first video.": "You earned %lbc% for streaming your first video.",
"You earned %lbc% for successfully completing The Journey L4: Perfect Harmony.": "You earned %lbc% for successfully completing The Journey L4: Perfect Harmony.",
"You earned %lbc% for successfully completing The Journey L3: Bliss.": "You earned %lbc% for successfully completing The Journey L3: Bliss.",
@ -1497,12 +1498,12 @@
"Sync your YouTube channel to %site_name%": "Sync your YouTube channel to %site_name%",
"You earned %lbc% for syncing your YouTube channel.": "You earned %lbc% for syncing your YouTube channel.",
"Get your YouTube videos in front of the %site_name% audience.": "Get your YouTube videos in front of the %site_name% audience.",
"Your %site_name% channel name": "Your %site_name% channel name",
"Your desired %site_name% channel name": "Your desired %site_name% channel name",
"these terms": "these terms",
"how the program works": "how the program works",
"Claim Now": "Claim Now",
"I want to sync my content to %site_name% and the LBRY network and agree to %terms%. I have also read and understand %faq%.": "I want to sync my content to %site_name% and the LBRY network and agree to %terms%. I have also read and understand %faq%.",
"This will verify you are an active YouTuber. Channel names cannot be changed once chosen, please be extra careful. Additional instructions will be emailed to you after you verify your email on the next page. %learn_more%.": "This will verify you are an active YouTuber. Channel names cannot be changed once chosen, please be extra careful. Additional instructions will be emailed to you after you verify your email on the next page. %learn_more%.",
"This will verify you are an active YouTuber with over 300 subscribers and original content. Channel names cannot be changed once chosen, please be extra careful. %learn_more%.": "This will verify you are an active YouTuber with over 300 subscribers and original content. Channel names cannot be changed once chosen, please be extra careful. %learn_more%.",
"Invite sent to %email%": "Invite sent to %email%",
"Log in to reply": "Log in to reply",
"Coveted Creator L9: Whoa Baby!": "Coveted Creator L9: Whoa Baby!",
@ -1663,11 +1664,14 @@
"Are you sure you want to view this content? Viewing will not unblock @%channel%": "Are you sure you want to view this content? Viewing will not unblock @%channel%",
"Are you sure you want to view this content? Viewing will not unmute @%channel%": "Are you sure you want to view this content? Viewing will not unmute @%channel%",
"View Content": "View Content",
"Block list": "Block list",
"Personal": "Personal",
"Global": "Global",
"Global Admin": "Global Admin",
"Moderator": "Moderator",
"Global Unblock Channel": "Global Unblock Channel",
"Global Block Channel": "Global Block Channel",
"Blocked on behalf of:": "Blocked on behalf of:",
"Block this channel on behalf of %creator%.": "Block this channel on behalf of %creator%.",
"Block this channel on behalf of the creator.": "Block this channel on behalf of the creator.",
"Enter the timeout duration. Examples: %examples%": "Enter the timeout duration. Examples: %examples%",
@ -1925,7 +1929,9 @@
"No replays found.": "No replays found.",
"Replay video available": "Replay video available",
"Check for Replays": "Check for Replays",
"Create or Schedule a New Stream": "Create or Schedule a New Stream",
"You can upload your own recording or select a replay when your stream is over": "You can upload your own recording or select a replay when your stream is over",
"Edit / Update": "Edit / Update",
"This channel isn't staking enough Credits for inline image previews.": "This channel isn't staking enough Credits for inline image previews.",
"This channel isn't staking enough Credits for link previews.": "This channel isn't staking enough Credits for link previews.",
"Latest": "Latest",
@ -2021,6 +2027,8 @@
"Remove Card": "Remove Card",
"Sorry, there was an error in processing your payment!": "Sorry, there was an error in processing your payment!",
"Congratulations! Your account has been connected with Odysee.": "Congratulations! Your account has been connected with Odysee.",
"Although your account is connected it still requires verification to begin receiving tips.": "Although your account is connected it still requires verification to begin receiving tips.",
"Please use the button below to complete your verification process and enable tipping for your account.": "Please use the button below to complete your verification process and enable tipping for your account.",
"Your account balance is %balance% USD. Functionality to view your transactions and withdraw your balance will be landing shortly.": "Your account balance is %balance% USD. Functionality to view your transactions and withdraw your balance will be landing shortly.",
"Your account balance is $0 USD. When you receive a tip you will see it here.": "Your account balance is $0 USD. When you receive a tip you will see it here.",
"Congratulations, you have already begun receiving tips on Odysee!": "Congratulations, you have already begun receiving tips on Odysee!",
@ -2058,6 +2066,7 @@
"Payment History": "Payment History",
"There was an error from the server, please try again later": "There was an error from the server, please try again later",
"There was an error getting your card setup, please try again later": "There was an error getting your card setup, please try again later",
"Complete Verification": "Complete Verification",
"View Transactions": "View Transactions",
"Bank Accounts": "Bank Accounts",
"Connect a bank account to receive tips and compensation in your local currency.": "Connect a bank account to receive tips and compensation in your local currency.",
@ -2083,6 +2092,7 @@
"[Removed]": "[Removed]",
"lbry.tv has been retired. You have been magically transported to Odysee.com. %more%": "lbry.tv has been retired. You have been magically transported to Odysee.com. %more%",
"Show more livestreams": "Show more livestreams",
"Show less livestreams": "Show less livestreams",
"Winning Search for %matching_term%": "Winning Search for %matching_term%",
"%group_name% matching %matching_term%": "%group_name% matching %matching_term%",
"Searching...": "Searching...",

View file

@ -65,7 +65,7 @@ class FileExporter extends React.PureComponent<Props> {
)}
{progressMsg && (
<>
{__(progressMsg)}
{progressMsg}
<Spinner type="small" />
</>
)}

View file

@ -110,7 +110,8 @@ const SearchOptions = (props: Props) => {
<Button
key={option}
button="alt"
label={t[1]}
// $FlowFixMe https://github.com/facebook/flow/issues/2221
label={__(t[1])}
className={classnames(`button-toggle`, {
'button-toggle--active': options[SEARCH_OPTIONS.CLAIM_TYPE] === option,
})}
@ -139,7 +140,8 @@ const SearchOptions = (props: Props) => {
type="checkbox"
blockWrap={false}
disabled={options[SEARCH_OPTIONS.CLAIM_TYPE] !== SEARCH_OPTIONS.INCLUDE_FILES}
label={t[1]}
// $FlowFixMe https://github.com/facebook/flow/issues/2221
label={__(t[1])}
checked={!isFilteringByChannel && options[option]}
onChange={() => updateSearchOptions(option, !options[option])}
/>

View file

@ -51,7 +51,7 @@ export const PAGE_TITLE = {
[PAGES.SEARCH]: 'Search',
[PAGES.SEND]: 'Send Credits',
[PAGES.SETTINGS]: 'Settings',
[PAGES.SETTINGS_BLOCKED_MUTED]: 'Block and muted channels',
[PAGES.SETTINGS_BLOCKED_MUTED]: 'Blocked and muted channels',
[PAGES.SETTINGS_CREATOR]: 'Creator settings',
[PAGES.SETTINGS_NOTIFICATIONS]: 'Manage notifications',
[PAGES.SETTINGS_STRIPE_ACCOUNT]: 'Bank Accounts',

View file

@ -139,6 +139,9 @@ export default function CollectionPage(props: Props) {
{uri && <ClaimAuthor uri={uri} />}
</div>
);
const listName = claim ? claim.value.title || claim.name : collection && collection.name;
const info = (
<Card
title={
@ -151,7 +154,7 @@ export default function CollectionPage(props: Props) {
}
className="icon--margin-right"
/>
{claim ? claim.value.title || claim.name : collection && collection.name}
{isBuiltin ? __(listName) : listName}
</span>
}
titleActions={unavailableUris.length > 0 ? removeUnavailable : titleActions}

View file

@ -124,7 +124,7 @@ export default function YoutubeSync(props: Props) {
{nameError ? (
<span className="error__text">{nameError}</span>
) : (
__('Your %site_name% desired channel name', { site_name: IS_WEB ? SITE_NAME : 'LBRY' })
__('Your desired %site_name% channel name', { site_name: IS_WEB ? SITE_NAME : 'LBRY' })
)}
</label>
<div className="form-field__prefix">@</div>