Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
waterFallFlow committed Jul 31, 2018
1 parent c409626 commit 1c83fb4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
8 changes: 4 additions & 4 deletions shared/components/Form/TransferAssetsForm/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"snd_button_name_nxt" : "下一步",
"snd_title_error_invact" : "账户不存在",
"snd_title_error_psw" : "密码错误",
"snd_title_error_hinet" : "NET的使用过高",
"snd_title_error_hicpu" : "CPU的使用过高"
"snd_title_error_hinet" : "网络资源不足,请抵押更多的EOS",
"snd_title_error_hicpu" : "计算资源不足,请抵押更多的EOS"
},
"en": {
"snd_title_name_accnm" : "Account",
Expand All @@ -30,7 +30,7 @@
"snd_button_name_nxt" : "Next",
"snd_title_error_invact" : "Account dose not exist!",
"snd_title_error_psw" : "Invalid password",
"snd_title_error_hinet" : "net usage of transaction is too high",
"snd_title_error_hicpu" : "cpu usage of transaction is too high"
"snd_title_error_hinet" : "NET usage of transaction is too high",
"snd_title_error_hicpu" : "CPU usage of transaction is too high"
}
}
9 changes: 8 additions & 1 deletion shared/screens/Assets/AssetChart/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,14 @@ export default class AssetChart extends Component {
renderItem={({ item }) => <RecordItem key={item.get('account_action_seq')} item={item} onPress={this.checkTransactionRecord} eosAccountName={eosAccountName} />}
onEndReached={this.loadMore}
onEndReachedThreshold={0.5}
ListFooterComponent={(loaded && hasMore) ? <ActivityIndicator style={{ marginVertical: 10 }} size="small" color="white" /> : (loaded && <Text style={{ marginVertical: 10, alignSelf: 'center', color: 'white' }}>没有更多数据了</Text>)}
ListFooterComponent={
(loaded && hasMore)
? <ActivityIndicator style={{ marginVertical: 10 }} size="small" color="white" />
: (loaded &&
<Text style={{ marginVertical: 10, alignSelf: 'center', color: 'white' }}>
{messages[locale].token_title_name_nomore}
</Text>)
}
/>
</View>
<View style={[styles.btnContainer, styles.between]}>
Expand Down
6 changes: 4 additions & 2 deletions shared/screens/Assets/AssetChart/messages.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"zh": {
"token_button_name_send": "转账",
"token_button_name_receive": "收款"
"token_button_name_receive": "收款",
"token_title_name_nomore": "没有更多数据了"
},
"en": {
"token_button_name_send": "Send",
"token_button_name_receive": "Receive"
"token_button_name_receive": "Receive",
"token_title_name_nomore": "No more data"
}
}
9 changes: 8 additions & 1 deletion shared/screens/Profile/TransactionHistory/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ export default class TransationHistory extends Component {
renderItem={({ item }) => <RecordItem key={item.get('account_action_seq')} item={item} onPress={this.checkTransactionRecord} eosAccountName={eosAccountName} />}
onEndReached={this.loadMore}
onEndReachedThreshold={0.5}
ListFooterComponent={(loaded && hasMore) ? <ActivityIndicator style={{ marginVertical: 10 }} size="small" color="white" /> : (loaded && <Text style={{ marginVertical: 10, alignSelf: 'center', color: 'white' }}>没有更多数据了</Text>)}
ListFooterComponent={
(loaded && hasMore)
? <ActivityIndicator style={{ marginVertical: 10 }} size="small" color="white" />
: (loaded &&
<Text style={{ marginVertical: 10, alignSelf: 'center', color: 'white' }}>
{messages[locale].txhis_sec_time_nomore}
</Text>)
}
/>
</View>
</View>
Expand Down
6 changes: 4 additions & 2 deletions shared/screens/Profile/TransactionHistory/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
"txhis_title_txt_date" : "今天",
"txhis_sec_time_mins" : "分钟前",
"txhis_sec_time_hrs" : "小时前",
"txhis_sec_time_days" : "天前"
"txhis_sec_time_days" : "天前",
"txhis_sec_time_nomore": "没有更多数据了"
},
"en": {
"txhis_title_name_txhistory" : "Transaction History",
"txhis_title_txt_date" : "Today",
"txhis_sec_time_mins" : "mins ago",
"txhis_sec_time_hrs" : "hours ago",
"txhis_sec_time_days" : "days ago"
"txhis_sec_time_days" : "days ago",
"txhis_sec_time_nomore": "No more data"
}
}

0 comments on commit 1c83fb4

Please sign in to comment.