Fix translation issues in the Publish modal dialog.
Two issues: 1. Values not marked with __() 2. Split sentence. For #2, it seems like there are translations that don't make sense when combined, because the values are being translated independently from full sentence in Transifex. Decided to just make it full sentences.
This commit is contained in:
parent
4bbd831a16
commit
140364cb67
2 changed files with 7 additions and 6 deletions
|
@ -679,7 +679,8 @@
|
|||
"Looks like you don't have any transactions.": "Looks like you don't have any transactions.",
|
||||
"If Sync is on, LBRY will backup your wallet and preferences. If disabled, you are responsible for keeping a backup.": "If Sync is on, LBRY will backup your wallet and preferences. If disabled, you are responsible for keeping a backup.",
|
||||
"View My Publishes": "View My Publishes",
|
||||
"Your %publishMessage% pending on LBRY. It will take a few minutes to appear for other users.": "Your %publishMessage% pending on LBRY. It will take a few minutes to appear for other users.",
|
||||
"Your update is now pending on LBRY. It will take a few minutes to appear for other users.": "Your update is now pending on LBRY. It will take a few minutes to appear for other users.",
|
||||
"Your file is now pending on LBRY. It will take a few minutes to appear for other users.": "Your file is now pending on LBRY. It will take a few minutes to appear for other users.",
|
||||
"Upload will continue in the background, please do not shut down immediately. Leaving the app running helps the network, thank you!": "Upload will continue in the background, please do not shut down immediately. Leaving the app running helps the network, thank you!",
|
||||
"Are you sure want to revoke this claim?": "Are you sure want to revoke this claim?",
|
||||
"This will prevent others from resolving and accessing the content you published. It will return the LBC to your spendable balance, less a small transaction fee.": "This will prevent others from resolving and accessing the content you published. It will return the LBC to your spendable balance, less a small transaction fee.",
|
||||
|
|
|
@ -17,8 +17,10 @@ type Props = {
|
|||
class ModalPublishSuccess extends React.PureComponent<Props> {
|
||||
render() {
|
||||
const { closeModal, clearPublish, navigate, uri, isEdit, filePath } = this.props;
|
||||
const contentLabel = isEdit ? 'Update published' : 'File published';
|
||||
const publishMessage = isEdit ? 'update is now' : 'file is now';
|
||||
const contentLabel = isEdit ? __('Update published') : __('File published');
|
||||
const publishMessage = isEdit
|
||||
? __('Your update is now pending on LBRY. It will take a few minutes to appear for other users.')
|
||||
: __('Your file is now pending on LBRY. It will take a few minutes to appear for other users.');
|
||||
|
||||
function handleClose() {
|
||||
clearPublish();
|
||||
|
@ -29,9 +31,7 @@ class ModalPublishSuccess extends React.PureComponent<Props> {
|
|||
<Modal isOpen type="card" contentLabel={__(contentLabel)} onAborted={handleClose}>
|
||||
<Card
|
||||
title={__('Success')}
|
||||
subtitle={__(`Your %publishMessage% pending on LBRY. It will take a few minutes to appear for other users.`, {
|
||||
publishMessage,
|
||||
})}
|
||||
subtitle={publishMessage}
|
||||
body={
|
||||
<React.Fragment>
|
||||
<div className="card--inline">
|
||||
|
|
Loading…
Reference in a new issue