Skip to content

Commit

Permalink
add some translation
Browse files Browse the repository at this point in the history
  • Loading branch information
esdeathlove committed May 28, 2017
1 parent 8cb31a3 commit 42f5658
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@
<string name="stop_service">%s に切り替え</string>
<string name="profile_default">現在のプロファイルを使用する</string>

<string name="tips_testing">テスティング....</string>
<string name="tips_sorting">整理....</string>
<string name="action_full_test">完全な待ち時間のテスト</string>
<string name="action_sort">レイテンシによる自動ソート</string>
<string name="ping">Ping</string>

<!-- status -->
<string name="sent">送信済み:</string>
<string name="received">受信済み:</string>
Expand Down
6 changes: 6 additions & 0 deletions src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@
</plurals>
<string name="undo">Вернуть</string>

<string name="tips_testing">тестирование....</string>
<string name="tips_sorting">сортировка....</string>
<string name="action_full_test">Испытание полностью латентность</string>
<string name="action_sort">Автоматическая сортировка по времени ожидания</string>
<string name="ping">пинг</string>


<string name="scan_qrcode_install_title">Сканирование подсказки кода</string>
<string name="scan_qrcode_install_text">Кажется, вы не установили сканер в соответствии с ZXing стандартами, нажмите кнопку «ОК» приведет вас в магазин приложений, где вы установили загрузку, или вы можете нажать кнопку «Загрузить», чтобы загрузить APK установлен непосредственно.</string>
Expand Down
6 changes: 6 additions & 0 deletions src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@
<string name="stop_service">切换到 %s</string>
<string name="profile_default">使用当前配置</string>

<string name="tips_testing">测试中...</string>
<string name="tips_sorting">排序中...</string>
<string name="action_full_test">完整延时测试</string>
<string name="action_sort">基于延时自动排序</string>
<string name="ping">测试延时</string>

<!-- status -->
<string name="sent">发送:</string>
<string name="received">接收:</string>
Expand Down
6 changes: 6 additions & 0 deletions src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@
<string name="stop_service">切換至 %s</string>
<string name="profile_default">使用目前的設定檔</string>

<string name="tips_testing">測試中...</string>
<string name="tips_sorting">排序中...</string>
<string name="action_full_test">完整延時測試</string>
<string name="action_sort">基於延時自動排序</string>
<string name="ping">測試延時</string>

<!-- status -->
<string name="sent">傳送:</string>
<string name="received">接收:</string>
Expand Down
10 changes: 7 additions & 3 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@
<string name="recovery_summary">Reset all the background services</string>
<string name="about">About</string>
<string name="about_title">ShadowsocksR %s</string>
<string name="ping">Ping</string>
<string name="share">Share</string>
<string name="share_message">Scan QR code or use Android Beam (NFC)</string>
<string name="share_message_without_nfc">Scan QR code</string>
Expand All @@ -137,8 +136,6 @@
<string name="flushing">Flushing</string>
<string name="add_profile">Add Profile</string>
<string name="action_apply_all">Apply Settings to All Profiles</string>
<string name="action_full_test">Full latency test</string>
<string name="action_sort">Auto sort by latency</string>
<string name="action_export">Export to Clipboard</string>
<string name="action_import">Import from Clipboard</string>
<string name="action_export_msg">Successfully export!</string>
Expand All @@ -164,6 +161,13 @@
</plurals>
<string name="undo">Undo</string>

<string name="tips_testing">Testing....</string>
<string name="tips_sorting">Sorting....</string>
<string name="action_full_test">Full latency test</string>
<string name="action_sort">Auto sort by latency</string>
<string name="ping">Ping</string>



<string name="scan_qrcode_install_title">Scan tips</string>
<string name="scan_qrcode_install_text">It seems that You haven\'t installed the zxing scanner, click the ok button will guide you to play store, or you can click the \'direct download\' button to download directly and installed it.</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ final class ProfileManagerActivity extends AppCompatActivity with OnMenuItemClic
val pingBtn = itemView.findViewById(R.id.ping_single)
pingBtn.setOnClickListener(_ => {

val singleTestProgressDialog = ProgressDialog.show(ProfileManagerActivity.this, "Testing", "Testing", false, false)
val singleTestProgressDialog = ProgressDialog.show(ProfileManagerActivity.this, getString(R.string.tips_testing), getString(R.string.tips_testing), false, false)

var profile = item

Expand Down Expand Up @@ -642,7 +642,7 @@ final class ProfileManagerActivity extends AppCompatActivity with OnMenuItemClic

isTesting = true

testProgressDialog = ProgressDialog.show(this, "Testing", "Testing", false, true, new OnCancelListener() {
testProgressDialog = ProgressDialog.show(this, getString(R.string.tips_testing), getString(R.string.tips_testing), false, true, new OnCancelListener() {
def onCancel(dialog: DialogInterface) {
// TODO Auto-generated method stub
// Do something...
Expand Down Expand Up @@ -786,7 +786,7 @@ final class ProfileManagerActivity extends AppCompatActivity with OnMenuItemClic
app.profileManager.getAllProfilesByElapsed match {
case Some(profiles) => {
var counter = 0
testProgressDialog = ProgressDialog.show(this, "Sorting", "Sorting", false, false)
testProgressDialog = ProgressDialog.show(this, getString(R.string.tips_sorting), getString(R.string.tips_sorting), false, false)

new Thread {
override def run() {
Expand Down

0 comments on commit 42f5658

Please sign in to comment.