Browse Source

Updated dialog actions wording on Create Folder, Remove Files and Rename Files to be more specific to the actionns

Morvidus 6 years ago
parent
commit
d41c01fade

+ 1 - 1
src/main/java/com/owncloud/android/ui/dialog/CreateFolderDialogFragment.java

@@ -101,7 +101,7 @@ public class CreateFolderDialogFragment
         // Build the dialog  
         AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
         builder.setView(v)
-                .setPositiveButton(R.string.common_ok, this)
+                .setPositiveButton(R.string.folder_confirm_create, this)
                 .setNegativeButton(R.string.common_cancel, this)
                 .setTitle(ThemeUtils.getColoredTitle(getResources().getString(R.string.uploader_info_dirname),
                         accentColor));

+ 2 - 2
src/main/java/com/owncloud/android/ui/dialog/RemoveFilesDialogFragment.java

@@ -104,8 +104,8 @@ public class RemoveFilesDialogFragment extends ConfirmationDialogFragment implem
         if (files.size() == 1) {
             args.putStringArray(ARG_MESSAGE_ARGUMENTS, new String[]{files.get(0).getFileName()});
         }
-        args.putInt(ARG_POSITIVE_BTN_RES, R.string.common_yes);
-        args.putInt(ARG_NEUTRAL_BTN_RES, R.string.common_no);
+        args.putInt(ARG_POSITIVE_BTN_RES, R.string.file_delete);
+        args.putInt(ARG_NEUTRAL_BTN_RES, R.string.file_keep);
         args.putInt(ARG_NEGATIVE_BTN_RES, localRemoveButton);
         args.putParcelableArrayList(ARG_TARGET_FILES, files);
         frag.setArguments(args);

+ 1 - 1
src/main/java/com/owncloud/android/ui/dialog/RenameFileDialogFragment.java

@@ -115,7 +115,7 @@ public class RenameFileDialogFragment
         // Build the dialog  
         AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
         builder.setView(v)
-                .setPositiveButton(R.string.common_ok, this)
+                .setPositiveButton(R.string.file_rename, this)
                 .setNegativeButton(R.string.common_cancel, this)
                 .setTitle(ThemeUtils.getColoredTitle(getResources().getString(R.string.rename_dialog_title),
                         accentColor));

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

@@ -826,5 +826,9 @@
     <string name="stream_not_possible_message">Please download media instead or use external app.</string>
     <string name="folder_already_exists">Folder already exists</string>
     <string name="notification_icon">Notification icon</string>
+    <string name="folder_confirm_create">Create</string>
+    <string name="file_delete">Delete</string>
+    <string name="file_keep">Keep</string>
+    <string name="file_rename">Rename</string>
     <string name="fab_label">Add or upload</string>
 </resources>