Skip to content

Commit

Permalink
translation && version
Browse files Browse the repository at this point in the history
  • Loading branch information
waterFallFlow committed Jul 31, 2018
1 parent 68334fa commit c409626
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ android {
renderscriptTargetApi 27
renderscriptSupportModeEnabled true
versionCode 1
versionName "0.1.4"
versionName "0.1.5"
missingDimensionStrategy "RNN.reactNativeVersion", "reactNative55"
ndk {
abiFilters "armeabi-v7a", "x86"
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bitportal"
android:versionCode="1"
android:versionName="0.1.4">
android:versionName="0.1.5">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
Expand Down
2 changes: 1 addition & 1 deletion ios/bitportal/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1.4</string>
<string>0.1.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
8 changes: 4 additions & 4 deletions shared/components/Form/TransferAssetsForm/index.native.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export const errorMessages = (error, messages) => {

switch (String(message)) {
case 'Key derivation failed - possibly wrong passphrase':
return 'Invalid password'
return messages.snd_title_error_psw
default:
if (!~String(message).indexOf('net usage of transaction is too high')) {
return 'net usage of transaction is too high'
return messages.snd_title_error_hinet
} else if (!~String(message).indexOf('cpu usage of transaction is too high')) {
return 'cpu usage of transaction is too high'
return messages.snd_title_error_hicpu
}

return messages.snd_txtbox_tras_err
Expand Down Expand Up @@ -67,7 +67,7 @@ const asyncValidate = (values, dispatch, props) => new Promise((resolve, reject)
props.actions.validateEOSAccountRequested({
field: 'toAccount',
value: props.toAccount,
errorMessage: 'Account dose not exist!',
errorMessage: messages[props.locale].snd_title_error_invact,
resolve,
reject
})
Expand Down
12 changes: 10 additions & 2 deletions shared/components/Form/TransferAssetsForm/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"snd_title_name_amt" : "数量",
"snd_title_name_bln" : "余额:",
"snd_txtbox_txt_rmk" : "附言",
"snd_button_name_nxt" : "下一步"
"snd_button_name_nxt" : "下一步",
"snd_title_error_invact" : "账户不存在",
"snd_title_error_psw" : "密码错误",
"snd_title_error_hinet" : "NET的使用过高",
"snd_title_error_hicpu" : "CPU的使用过高"
},
"en": {
"snd_title_name_accnm" : "Account",
Expand All @@ -23,6 +27,10 @@
"snd_title_name_amt" : "Amount",
"snd_title_name_bln" : "Balance:",
"snd_txtbox_txt_rmk" : "Memo",
"snd_button_name_nxt" : "Next"
"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"
}
}

0 comments on commit c409626

Please sign in to comment.