i18n more strings

This commit is contained in:
Akinwale Ariwodola 2019-12-06 17:51:15 +01:00
parent d69c1931ac
commit 0b43454adc
16 changed files with 22 additions and 25 deletions

View file

@ -147,7 +147,7 @@ class ClaimList extends React.PureComponent {
renderMorePlaceholder = () => { renderMorePlaceholder = () => {
return ( return (
<TouchableOpacity style={discoverStyle.fileItemMore} onPress={this.onMorePressed}> <TouchableOpacity style={discoverStyle.fileItemMore} onPress={this.onMorePressed}>
<Text style={discoverStyle.moreText}>more</Text> <Text style={discoverStyle.moreText}>{__('more')}</Text>
<Icon style={discoverStyle.moreIcon} name={'angle-double-down'} color={Colors.White} size={16} /> <Icon style={discoverStyle.moreIcon} name={'angle-double-down'} color={Colors.White} size={16} />
</TouchableOpacity> </TouchableOpacity>
); );

View file

@ -74,7 +74,7 @@ class CustomRewardCard extends React.PureComponent<Props> {
/> />
<Button <Button
style={rewardStyle.redeemButton} style={rewardStyle.redeemButton}
text={'Redeem'} text={__('Redeem')}
disabled={!this.state.rewardCode || this.state.rewardCode.trim().length === 0 || rewardIsPending} disabled={!this.state.rewardCode || this.state.rewardCode.trim().length === 0 || rewardIsPending}
onPress={() => { onPress={() => {
if (!rewardIsPending) { if (!rewardIsPending) {

View file

@ -50,7 +50,7 @@ class FileDownloadButton extends React.PureComponent {
if ((fileInfo && !fileInfo.stopped) || loading || downloading) { if ((fileInfo && !fileInfo.stopped) || loading || downloading) {
const progress = fileInfo && fileInfo.written_bytes ? (fileInfo.written_bytes / fileInfo.total_bytes) * 100 : 0, const progress = fileInfo && fileInfo.written_bytes ? (fileInfo.written_bytes / fileInfo.total_bytes) * 100 : 0,
label = fileInfo ? progress.toFixed(0) + '% complete' : __('Connecting...'); label = fileInfo ? __('%progress%% complete', { progress: progress.toFixed(0) }) : __('Connecting...');
return ( return (
<View style={[style, fileDownloadButtonStyle.container]}> <View style={[style, fileDownloadButtonStyle.container]}>

View file

@ -28,7 +28,7 @@ export default class RelatedContent extends React.PureComponent {
return ( return (
<View style={relatedContentStyle.container}> <View style={relatedContentStyle.container}>
<Text style={relatedContentStyle.title}>Related Content</Text> <Text style={relatedContentStyle.title}>{__('Related Content')}</Text>
{recommendedContent && {recommendedContent &&
recommendedContent recommendedContent
.filter(recommendedUri => recommendedUri !== normalizeURI(fullUri)) .filter(recommendedUri => recommendedUri !== normalizeURI(fullUri))

View file

@ -75,10 +75,10 @@ class StorageStatsCard extends React.PureComponent {
<View style={[storageStatsStyle.row, storageStatsStyle.totalSizeContainer]}> <View style={[storageStatsStyle.row, storageStatsStyle.totalSizeContainer]}>
<View style={storageStatsStyle.summary}> <View style={storageStatsStyle.summary}>
<Text style={storageStatsStyle.totalSize}>{formatBytes(this.state.totalBytes, 2)}</Text> <Text style={storageStatsStyle.totalSize}>{formatBytes(this.state.totalBytes, 2)}</Text>
<Text style={storageStatsStyle.annotation}>used</Text> <Text style={storageStatsStyle.annotation}>{__('used')}</Text>
</View> </View>
<View style={[storageStatsStyle.row, storageStatsStyle.toggleStatsContainer]}> <View style={[storageStatsStyle.row, storageStatsStyle.toggleStatsContainer]}>
<Text style={storageStatsStyle.statsText}>Stats</Text> <Text style={storageStatsStyle.statsText}>{__('Stats')}</Text>
<Switch <Switch
style={storageStatsStyle.statsToggle} style={storageStatsStyle.statsToggle}
value={this.state.showStats} value={this.state.showStats}

View file

@ -74,7 +74,7 @@ export default class TagSearch extends React.PureComponent {
<TextInput <TextInput
editable={editable} editable={editable}
style={tagStyle.searchInput} style={tagStyle.searchInput}
placeholder={'Search for more tags'} placeholder={__('Search for more tags')}
underlineColorAndroid={Colors.NextLbryGreen} underlineColorAndroid={Colors.NextLbryGreen}
value={this.state.tag} value={this.state.tag}
numberOfLines={1} numberOfLines={1}

View file

@ -26,7 +26,7 @@ class TransactionListRecent extends React.PureComponent<Props> {
return ( return (
<View style={walletStyle.transactionsCard}> <View style={walletStyle.transactionsCard}>
<View style={[walletStyle.row, walletStyle.transactionsHeader]}> <View style={[walletStyle.row, walletStyle.transactionsHeader]}>
<Text style={walletStyle.transactionsTitle}>Recent Transactions</Text> <Text style={walletStyle.transactionsTitle}>{__('Recent Transactions')}</Text>
<Link style={walletStyle.link} navigation={navigation} text={__('View All')} href={'#TransactionHistory'} /> <Link style={walletStyle.link} navigation={navigation} text={__('View All')} href={'#TransactionHistory'} />
</View> </View>
{fetchingTransactions && <Text style={walletStyle.infoText}>{__('Fetching transactions...')}</Text>} {fetchingTransactions && <Text style={walletStyle.infoText}>{__('Fetching transactions...')}</Text>}

View file

@ -127,7 +127,7 @@ class WalletSend extends React.PureComponent<Props> {
<Text style={[walletStyle.text, walletStyle.currency]}>LBC</Text> <Text style={[walletStyle.text, walletStyle.currency]}>LBC</Text>
</View> </View>
<Button <Button
text={'Send'} text={__('Send')}
style={[walletStyle.button, walletStyle.sendButton]} style={[walletStyle.button, walletStyle.sendButton]}
disabled={!canSend} disabled={!canSend}
onPress={this.handleSend} onPress={this.handleSend}

View file

@ -29,14 +29,12 @@ class WalletSignIn extends React.Component {
return ( return (
<View style={walletStyle.signInContainer}> <View style={walletStyle.signInContainer}>
<View style={walletStyle.signInSummaryRow}> <View style={walletStyle.signInSummaryRow}>
<Text style={walletStyle.signInTitle}>Account Recommended</Text> <Text style={walletStyle.signInTitle}>{__('Account Recommended')}</Text>
</View> </View>
<View style={walletStyle.onboarding}> <View style={walletStyle.onboarding}>
<Text style={walletStyle.onboardingText}> <Text style={walletStyle.onboardingText}>
{__( {__('A lbry.tv account allows you to earn rewards, backup your wallet, and keep everything in sync.')}
'An account with LBRY Inc. allows you to earn rewards, backup your wallet, and keep everything synced.'
)}
{'\n\n'} {'\n\n'}
{__('Without an account, you assume all responsibility for securing your wallet and LBRY data.')} {__('Without an account, you assume all responsibility for securing your wallet and LBRY data.')}
</Text> </Text>

View file

@ -74,7 +74,7 @@ class AboutPage extends React.PureComponent {
<View style={aboutStyle.container}> <View style={aboutStyle.container}>
<PageHeader title={'About LBRY'} onBackPressed={() => navigateBack(navigation, drawerStack, popDrawerStack)} /> <PageHeader title={'About LBRY'} onBackPressed={() => navigateBack(navigation, drawerStack, popDrawerStack)} />
<ScrollView style={aboutStyle.scrollContainer}> <ScrollView style={aboutStyle.scrollContainer}>
<Text style={aboutStyle.title}>Content Freedom</Text> <Text style={aboutStyle.title}>{__('Content Freedom')}</Text>
<Text style={aboutStyle.paragraph}> <Text style={aboutStyle.paragraph}>
{__( {__(
'LBRY is a free, open, and community-run digital marketplace. It is a decentralized peer-to-peer content distribution platform for creators to upload and share content, and earn LBRY credits for their effort. Users will be able to find a wide selection of videos, music, ebooks and other digital content they are interested in.' 'LBRY is a free, open, and community-run digital marketplace. It is a decentralized peer-to-peer content distribution platform for creators to upload and share content, and earn LBRY credits for their effort. Users will be able to find a wide selection of videos, music, ebooks and other digital content they are interested in.'
@ -85,7 +85,7 @@ class AboutPage extends React.PureComponent {
<Link style={aboutStyle.link} href="https://lbry.com/faq/android-basics" text={__('Android App Basics')} /> <Link style={aboutStyle.link} href="https://lbry.com/faq/android-basics" text={__('Android App Basics')} />
<Link style={aboutStyle.link} href="https://lbry.com/faq" text={__('Frequently Asked Questions')} /> <Link style={aboutStyle.link} href="https://lbry.com/faq" text={__('Frequently Asked Questions')} />
</View> </View>
<Text style={aboutStyle.socialTitle}>Get Social</Text> <Text style={aboutStyle.socialTitle}>{__('Get Social')}</Text>
<Text style={aboutStyle.paragraph}> <Text style={aboutStyle.paragraph}>
{__( {__(
'You can interact with the LBRY team and members of the community on Discord, Facebook, Instagram, Twitter or Reddit.' 'You can interact with the LBRY team and members of the community on Discord, Facebook, Instagram, Twitter or Reddit.'

View file

@ -271,7 +271,7 @@ class ChannelPage extends React.PureComponent {
style={channelPageStyle.actionButton} style={channelPageStyle.actionButton}
theme={'light'} theme={'light'}
icon={'edit'} icon={'edit'}
text={'Edit'} text={__('Edit')}
onPress={this.onEditPressed} onPress={this.onEditPressed}
/> />
)} )}
@ -280,7 +280,7 @@ class ChannelPage extends React.PureComponent {
style={[channelPageStyle.actionButton, channelPageStyle.deleteButton]} style={[channelPageStyle.actionButton, channelPageStyle.deleteButton]}
theme={'light'} theme={'light'}
icon={'trash-alt'} icon={'trash-alt'}
text={'Delete'} text={__('Delete')}
onPress={this.onDeletePressed} onPress={this.onDeletePressed}
/> />
)} )}
@ -306,14 +306,14 @@ class ChannelPage extends React.PureComponent {
style={channelPageStyle.tab} style={channelPageStyle.tab}
onPress={() => this.setState({ activeTab: Constants.CONTENT_TAB })} onPress={() => this.setState({ activeTab: Constants.CONTENT_TAB })}
> >
<Text style={channelPageStyle.tabTitle}>CONTENT</Text> <Text style={channelPageStyle.tabTitle}>{__('CONTENT')}</Text>
{Constants.CONTENT_TAB === this.state.activeTab && <View style={channelPageStyle.activeTabHint} />} {Constants.CONTENT_TAB === this.state.activeTab && <View style={channelPageStyle.activeTabHint} />}
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
style={channelPageStyle.tab} style={channelPageStyle.tab}
onPress={() => this.setState({ activeTab: Constants.ABOUT_TAB })} onPress={() => this.setState({ activeTab: Constants.ABOUT_TAB })}
> >
<Text style={channelPageStyle.tabTitle}>ABOUT</Text> <Text style={channelPageStyle.tabTitle}>{__('ABOUT')}</Text>
{Constants.ABOUT_TAB === this.state.activeTab && <View style={channelPageStyle.activeTabHint} />} {Constants.ABOUT_TAB === this.state.activeTab && <View style={channelPageStyle.activeTabHint} />}
</TouchableOpacity> </TouchableOpacity>
</View> </View>

View file

@ -1137,7 +1137,7 @@ class FilePage extends React.PureComponent {
</Text> </Text>
{tags && tags.length > 0 && ( {tags && tags.length > 0 && (
<View style={filePageStyle.tagContainer}> <View style={filePageStyle.tagContainer}>
<Text style={filePageStyle.tagTitle}>Tags</Text> <Text style={filePageStyle.tagTitle}>{__('Tags')}</Text>
<View style={filePageStyle.tagList}>{this.renderTags(tags)}</View> <View style={filePageStyle.tagList}>{this.renderTags(tags)}</View>
</View> </View>
)} )}

View file

@ -113,7 +113,7 @@ class WalletPage extends React.PureComponent {
// only display this view if it's not a new user (or auto-login has been attempted once) // only display this view if it's not a new user (or auto-login has been attempted once)
content = ( content = (
<View onLayout={onWalletViewLayout}> <View onLayout={onWalletViewLayout}>
<Text style={firstRunStyle.title}>Password</Text> <Text style={firstRunStyle.title}>{__('Password')}</Text>
<Text style={firstRunStyle.paragraph}> <Text style={firstRunStyle.paragraph}>
{hasSyncedWallet {hasSyncedWallet
? __('Please enter the password you used to secure your wallet.') ? __('Please enter the password you used to secure your wallet.')

View file

@ -103,7 +103,7 @@ class WelcomePage extends React.PureComponent {
} else { } else {
content = ( content = (
<View onLayout={onWelcomePageLayout}> <View onLayout={onWelcomePageLayout}>
<Text style={firstRunStyle.title}>Welcome to LBRY.</Text> <Text style={firstRunStyle.title}>{__('Welcome to LBRY.')}</Text>
<Text style={firstRunStyle.paragraph}> <Text style={firstRunStyle.paragraph}>
{__( {__(
'LBRY is a community-controlled content platform where you can find and publish videos, music, books, and more.' 'LBRY is a community-controlled content platform where you can find and publish videos, music, books, and more.'

View file

@ -104,7 +104,7 @@ class RewardsPage extends React.PureComponent {
if (this.state.isEmailVerified && this.state.isIdentityVerified && !this.state.isRewardApproved) { if (this.state.isEmailVerified && this.state.isIdentityVerified && !this.state.isRewardApproved) {
return ( return (
<View style={[rewardStyle.card, rewardStyle.verification]}> <View style={[rewardStyle.card, rewardStyle.verification]}>
<Text style={rewardStyle.title}>Manual Reward Verification</Text> <Text style={rewardStyle.title}>{__('Manual Reward Verification')}</Text>
<Text style={rewardStyle.text}> <Text style={rewardStyle.text}>
__('You need to be manually verified before you can start claiming rewards.') Please request to be verified __('You need to be manually verified before you can start claiming rewards.') Please request to be verified
on the{' '} on the{' '}

View file

@ -109,8 +109,7 @@ class SearchPage extends React.PureComponent {
return ( return (
<View style={searchStyle.noResults}> <View style={searchStyle.noResults}>
<Text style={searchStyle.noResultsText}> <Text style={searchStyle.noResultsText}>
There are no results to display for <Text style={searchStyle.boldText}>{query}</Text>. Please try a different {__('There are no results to display for "%query%". Please try a different search term.', { query })}
search term.
</Text> </Text>
</View> </View>
); );