Remove hardwired strings for no external storage.
bug: 6682495
Change-Id: I68652d6b01842a42907b953574d563cf98e65219
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 899c1e6..0000c61 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -445,4 +445,10 @@
<!-- Web address for gallery help. DO NOT TRANSLATE -->
<string name="help_url_gallery_main" translatable="false"></string>
+
+ <!-- The tilte of a dialog showing there is no external storage. [CHAR LIMIT=20] -->
+ <string name="no_external_storage_title">No Storage</string>
+
+ <!-- The message of a dialog showing there is no external storage. [CHAR LIMIT=none] -->
+ <string name="no_external_storage">No external storage available</string>
</resources>
diff --git a/src/com/android/gallery3d/app/AbstractGalleryActivity.java b/src/com/android/gallery3d/app/AbstractGalleryActivity.java
index 144485d..0987ac3 100644
--- a/src/com/android/gallery3d/app/AbstractGalleryActivity.java
+++ b/src/com/android/gallery3d/app/AbstractGalleryActivity.java
@@ -143,8 +143,8 @@
};
mAlertDialog = new AlertDialog.Builder(this)
.setIconAttribute(android.R.attr.alertDialogIcon)
- .setTitle("No Storage")
- .setMessage("No external storage available.")
+ .setTitle(R.string.no_external_storage_title)
+ .setMessage(R.string.no_external_storage)
.setNegativeButton(android.R.string.cancel, onClick)
.setOnCancelListener(onCancel)
.show();