From de6a5141b9ca4dfeb018203fb9d2594bea8b9a20 Mon Sep 17 00:00:00 2001 From: seven332 Date: Sun, 6 Mar 2016 14:49:30 +0800 Subject: [PATCH] Update string.xml --- .../hippo/ehviewer/ui/CommonOperations.java | 2 +- .../com/hippo/ehviewer/ui/MainActivity.java | 8 +++---- ...DownloadScene.java => DownloadsScene.java} | 6 ++--- .../ehviewer/ui/scene/FavoritesScene.java | 2 +- .../ehviewer/ui/scene/GalleryDetailScene.java | 2 +- app/src/main/res/menu/drawer_favorites.xml | 2 +- app/src/main/res/menu/nav_drawer_main.xml | 4 ++-- app/src/main/res/values-zh-rCN/strings.xml | 24 ++++++++++++++++--- app/src/main/res/values-zh-rHK/strings.xml | 24 ++++++++++++++++--- app/src/main/res/values-zh-rTW/strings.xml | 24 ++++++++++++++++--- app/src/main/res/values/strings.xml | 7 +++--- 11 files changed, 80 insertions(+), 25 deletions(-) rename app/src/main/java/com/hippo/ehviewer/ui/scene/{DownloadScene.java => DownloadsScene.java} (99%) diff --git a/app/src/main/java/com/hippo/ehviewer/ui/CommonOperations.java b/app/src/main/java/com/hippo/ehviewer/ui/CommonOperations.java index a73215e0c..35a98f75f 100644 --- a/app/src/main/java/com/hippo/ehviewer/ui/CommonOperations.java +++ b/app/src/main/java/com/hippo/ehviewer/ui/CommonOperations.java @@ -75,7 +75,7 @@ public final class CommonOperations { Settings.putDefaultFavSlot(Settings.INVALID_DEFAULT_FAV_SLOT); } } - }, activity.getString(R.string.remember_favorite_slot), false) + }, activity.getString(R.string.remember_favorite_collection), false) .setTitle(R.string.add_favorites_dialog_title) .show(); } diff --git a/app/src/main/java/com/hippo/ehviewer/ui/MainActivity.java b/app/src/main/java/com/hippo/ehviewer/ui/MainActivity.java index f819786e8..62ef1716c 100644 --- a/app/src/main/java/com/hippo/ehviewer/ui/MainActivity.java +++ b/app/src/main/java/com/hippo/ehviewer/ui/MainActivity.java @@ -38,7 +38,7 @@ import com.hippo.ehviewer.client.EhUrlOpener; import com.hippo.ehviewer.client.EhUtils; import com.hippo.ehviewer.ui.scene.BaseScene; import com.hippo.ehviewer.ui.scene.DownloadLabelScene; -import com.hippo.ehviewer.ui.scene.DownloadScene; +import com.hippo.ehviewer.ui.scene.DownloadsScene; import com.hippo.ehviewer.ui.scene.FavoritesScene; import com.hippo.ehviewer.ui.scene.GalleryCommentsScene; import com.hippo.ehviewer.ui.scene.GalleryDetailScene; @@ -76,7 +76,7 @@ public final class MainActivity extends StageActivity registerLaunchMode(GalleryInfoScene.class, SceneFragment.LAUNCH_MODE_STANDARD); registerLaunchMode(GalleryCommentsScene.class, SceneFragment.LAUNCH_MODE_STANDARD); registerLaunchMode(GalleryPreviewsScene.class, SceneFragment.LAUNCH_MODE_STANDARD); - registerLaunchMode(DownloadScene.class, SceneFragment.LAUNCH_MODE_SINGLE_TASK); + registerLaunchMode(DownloadsScene.class, SceneFragment.LAUNCH_MODE_SINGLE_TASK); registerLaunchMode(DownloadLabelScene.class, SceneFragment.LAUNCH_MODE_SINGLE_TASK); registerLaunchMode(FavoritesScene.class, SceneFragment.LAUNCH_MODE_SINGLE_TASK); registerLaunchMode(ProgressScene.class, SceneFragment.LAUNCH_MODE_STANDARD); @@ -295,8 +295,8 @@ public final class MainActivity extends StageActivity startScene(new Announcer(FavoritesScene.class)); } else if (id == R.id.nav_history) { - } else if (id == R.id.nav_download) { - startScene(new Announcer(DownloadScene.class)); + } else if (id == R.id.nav_downloads) { + startScene(new Announcer(DownloadsScene.class)); } else if (id == R.id.nav_settings) { Intent intent = new Intent(this, SettingsActivity.class); startActivity(intent); diff --git a/app/src/main/java/com/hippo/ehviewer/ui/scene/DownloadScene.java b/app/src/main/java/com/hippo/ehviewer/ui/scene/DownloadsScene.java similarity index 99% rename from app/src/main/java/com/hippo/ehviewer/ui/scene/DownloadScene.java rename to app/src/main/java/com/hippo/ehviewer/ui/scene/DownloadsScene.java index 8dc292062..41cf98533 100644 --- a/app/src/main/java/com/hippo/ehviewer/ui/scene/DownloadScene.java +++ b/app/src/main/java/com/hippo/ehviewer/ui/scene/DownloadsScene.java @@ -86,7 +86,7 @@ import java.util.ArrayList; import java.util.LinkedList; import java.util.List; -public class DownloadScene extends ToolbarScene +public class DownloadsScene extends ToolbarScene implements DownloadManager.DownloadInfoListener, EasyRecyclerView.OnItemClickListener, EasyRecyclerView.OnItemLongClickListener, @@ -238,7 +238,7 @@ public class DownloadScene extends ToolbarScene setNavigationIcon(R.drawable.v_arrow_left_dark_x24); // Clear nav checked item - setNavCheckedItem(R.id.nav_download); + setNavCheckedItem(R.id.nav_downloads); // Hide IME ActivityHelper.hideSoftInput(getActivity()); @@ -1000,7 +1000,7 @@ public class DownloadScene extends ToolbarScene @Override public void onOutOfCustomChoice(EasyRecyclerView view) { if (mRecyclerView != null) { - mRecyclerView.setOnItemLongClickListener(DownloadScene.this); + mRecyclerView.setOnItemLongClickListener(DownloadsScene.this); } if (mFabLayout != null) { mFabLayout.setExpanded(false); diff --git a/app/src/main/java/com/hippo/ehviewer/ui/scene/FavoritesScene.java b/app/src/main/java/com/hippo/ehviewer/ui/scene/FavoritesScene.java index fbe629dfd..b00db5ee2 100644 --- a/app/src/main/java/com/hippo/ehviewer/ui/scene/FavoritesScene.java +++ b/app/src/main/java/com/hippo/ehviewer/ui/scene/FavoritesScene.java @@ -403,7 +403,7 @@ public class FavoritesScene extends BaseScene implements String[] favCat = Settings.getFavCat(); System.arraycopy(favCat, 0, items, 2, 10); new AlertDialog.Builder(getContext()) - .setTitle(R.string.default_favorites_slot) + .setTitle(R.string.default_favorites_collection) .setItems(items, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { diff --git a/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java b/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java index a17bf586b..17fd6c303 100644 --- a/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java +++ b/app/src/main/java/com/hippo/ehviewer/ui/scene/GalleryDetailScene.java @@ -1248,7 +1248,7 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene @TargetApi(Build.VERSION_CODES.LOLLIPOP) public boolean onTransition(Context context, FragmentTransaction transaction, Fragment exit, Fragment enter) { - if (!(enter instanceof GalleryListScene) && !(enter instanceof DownloadScene) && + if (!(enter instanceof GalleryListScene) && !(enter instanceof DownloadsScene) && !(enter instanceof FavoritesScene)) { return false; } diff --git a/app/src/main/res/menu/drawer_favorites.xml b/app/src/main/res/menu/drawer_favorites.xml index 4028c1329..7fbf58143 100644 --- a/app/src/main/res/menu/drawer_favorites.xml +++ b/app/src/main/res/menu/drawer_favorites.xml @@ -28,7 +28,7 @@ diff --git a/app/src/main/res/menu/nav_drawer_main.xml b/app/src/main/res/menu/nav_drawer_main.xml index 800fd37a8..36dfd94ac 100644 --- a/app/src/main/res/menu/nav_drawer_main.xml +++ b/app/src/main/res/menu/nav_drawer_main.xml @@ -39,8 +39,8 @@ android:icon="@drawable/v_history_black_x24"/> 热门 收藏 历史 - 下载 + 下载 设置 用户名 @@ -101,6 +101,7 @@ 找不到画廊 + 下载 阅读 查看更多信息 @@ -123,6 +124,16 @@ 在其他应用中打开 评分成功 评分失败 + 没有种子 + 种子 + 已收藏 + 未收藏 + 添加收藏 + 记住收藏夹 + 已添加至收藏 + 移除收藏 + 添加收藏失败 + 移除收藏失败 根本把持不住 @@ -179,6 +190,8 @@ 无下载项目 未启动 等待中 + 下载中 + 已下载 失败 %d 未完成 已完成 @@ -204,6 +217,8 @@ EhViewer 下载服务 %s %1$s,%2$s + 记住下载标签 + 默认下载标签 无标签 @@ -275,6 +290,9 @@ 删除收藏 删除 %d 项收藏 移动收藏 + 默认收藏夹 + 让我选择 + 收藏信息 被玩坏了 @@ -295,10 +313,10 @@ 秒 - 分 + 分钟 - 时 + 小时 天 diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 63c42e2fe..775d45074 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -23,7 +23,7 @@ 熱門 收藏 歷史 - 下載 + 下載 設置 用户名 @@ -101,6 +101,7 @@ 找不到畫廊 + 下載 閲讀 查看更多信息 @@ -123,6 +124,16 @@ 在其他應用中打開 評分成功 評分失敗 + 沒有種子 + 種子 + 已收藏 + 未收藏 + 添加收藏 + 記住收藏夾 + 已添加至收藏 + 移除收藏 + 添加收藏失敗 + 移除收藏失敗 根本把持不住 @@ -179,6 +190,8 @@ 無下載項目 未啟動 等待中 + 下載中 + 已下載 失敗 %d 未完成 已完成 @@ -204,6 +217,8 @@ EhViewer 下載服務 %s %1$s,%2$s + 記住下載標籤 + 默認下載標籤 無標籤 @@ -275,6 +290,9 @@ 刪除收藏 刪除 %d 項收藏 移動收藏 + 默認收藏夾 + 讓我選擇 + 收藏信息 被玩壞了 @@ -295,10 +313,10 @@ 秒 - 分 + 分鐘 - 時 + 小時 天 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 3d06592c2..42d3f7ff0 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -23,7 +23,7 @@ 熱門 收藏 歷史 - 下載 + 下載 設定 使用者名稱 @@ -101,6 +101,7 @@ 找不到畫廊 + 下載 閱讀 檢視更多資訊 @@ -123,6 +124,16 @@ 在其他應用中開啟 評分成功 評分失敗 + 沒有種子 + 種子 + 已收藏 + 未收藏 + 新增收藏 + 記住收藏夾 + 已新增至收藏 + 移除收藏 + 新增收藏失敗 + 移除收藏失敗 根本把持不住 @@ -179,6 +190,8 @@ 無下載項目 未啟動 等待中 + 下載中 + 已下載 失敗 %d 未完成 已完成 @@ -204,6 +217,8 @@ EhViewer 下載服務 %s %1$s,%2$s + 記住下載標籤 + 預設下載標籤 無標籤 @@ -275,6 +290,9 @@ 刪除收藏 刪除 %d 項收藏 移動收藏 + 預設收藏夾 + 讓我選擇 + 收藏資訊 被玩壞了 @@ -295,10 +313,10 @@ 秒 - 分 + 分鐘 - 時 + 小時 天 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index becf202b0..f91f42c94 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -35,7 +35,7 @@ What\'s hot Favourite History - Download + Downloads Settings Stub @@ -140,6 +140,7 @@ Can\'t find the gallery + Download Read More information @@ -168,7 +169,7 @@ Favorited Unfavorited Add to favorites - Remember favorite slot + Remember favorite collection Added to favorites Removed from favorites Failed to add to favorites @@ -328,7 +329,7 @@ Delete from favorites Delete %d items from favorites Move favorites - Default favorites slot + Default favorites collection Let me select Favorites info