Browse Source

extract strings, use title

tobiasKaminsky 8 years ago
parent
commit
be4fb43fb4

+ 2 - 3
src/main/java/com/owncloud/android/ui/activity/StorageMigration.java

@@ -221,10 +221,9 @@ public class StorageMigration {
         }
 
         private void askToStillMove() {
-
             new AlertDialog.Builder(mContext)
-                    .setMessage("Source directory not readable. Do you still want to change the storage path to "
-                            + mStorageTarget + "? Note: all data will have to be downloaded again.")
+                    .setTitle(R.string.file_migration_source_not_readable_title)
+                    .setMessage(mContext.getString(R.string.file_migration_source_not_readable, mStorageTarget))
                     .setNegativeButton(R.string.common_no, new OnClickListener() {
                         @Override
                         public void onClick(DialogInterface dialogInterface, int i) {

+ 3 - 0
src/main/res/values/strings.xml

@@ -422,6 +422,9 @@
     <string name="file_migration_override_data_folder">Replace</string>
     <string name="file_migration_use_data_folder">Use</string>
 
+    <string name="file_migration_source_not_readable_title">Source directory not readable!</string>
+    <string name="file_migration_source_not_readable">Do you still want to change the storage path to %1$s?\n\nNote: all data will have to be downloaded again.</string>
+
     <string name="prefs_category_accounts">Accounts</string>
     <string name="prefs_add_account">Add account</string>
     <string name="drawer_manage_accounts">Manage accounts</string>