From db30b3b00479c5d71bbb4888cf209a3c9a9cbfae Mon Sep 17 00:00:00 2001 From: YuanQY Date: Thu, 4 Oct 2012 16:21:25 +0800 Subject: Gallery2: Fix hard code message. Change-Id: I3fb43c7e93e8dbb131df4af40aebffdb28540d2b --- res/values-zh-rCN/strings.xml | 3 +++ res/values-zh-rTW/strings.xml | 3 +++ res/values/strings.xml | 3 +++ src/com/android/gallery3d/app/AbstractGalleryActivity.java | 4 ++-- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 9bd5195a8..c4f21444e 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -173,4 +173,7 @@ "已导入" "屏幕截图" "帮助" + + 没有存储 + 没有可用的外部存储. diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml index 722e0babc..f5c2a2d28 100644 --- a/res/values-zh-rTW/strings.xml +++ b/res/values-zh-rTW/strings.xml @@ -173,4 +173,7 @@ "匯入" "螢幕擷取畫面" "說明" + + 沒有存儲 + 沒有可用的外部存儲. diff --git a/res/values/strings.xml b/res/values/strings.xml index 899c1e697..3823e8a26 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -445,4 +445,7 @@ + + No Storage + No external storage available. diff --git a/src/com/android/gallery3d/app/AbstractGalleryActivity.java b/src/com/android/gallery3d/app/AbstractGalleryActivity.java index 144485df8..7e9f50a04 100644 --- a/src/com/android/gallery3d/app/AbstractGalleryActivity.java +++ b/src/com/android/gallery3d/app/AbstractGalleryActivity.java @@ -143,8 +143,8 @@ public class AbstractGalleryActivity extends Activity implements GalleryActivity }; mAlertDialog = new AlertDialog.Builder(this) .setIconAttribute(android.R.attr.alertDialogIcon) - .setTitle("No Storage") - .setMessage("No external storage available.") + .setTitle(R.string.no_storage_title) + .setMessage(R.string.no_storage_message) .setNegativeButton(android.R.string.cancel, onClick) .setOnCancelListener(onCancel) .show(); -- cgit v1.2.3