Browse Source

Update messages for moving files operation results

jabarros 10 years ago
parent
commit
8188d4fa92
2 changed files with 5 additions and 4 deletions
  1. 3 3
      res/values/strings.xml
  2. 2 1
      src/com/owncloud/android/utils/ErrorMessageAdapter.java

+ 3 - 3
res/values/strings.xml

@@ -290,9 +290,9 @@
 	<string name="file_list_empty_moving">Nothing in here. You can add a folder!</string>
 	<string name="move_choose_button_text">Choose</string>
 
-	<string name="move_file_invalid_into_descendent">Invalid move into descendent.</string>
-	<string name="move_file_invalid_overwrite">It is not possible to move one file where another with the same name exists.</string>
+	<string name="move_file_invalid_into_descendent">It is not possible to move a folder into a descendant</string>
+	<string name="move_file_invalid_overwrite">The file exists already in the destination folder</string>
 	<string name="move_file_error">An error occurred while trying to move this file or folder</string>
-	<string name="move_file_forbidden">It is forbidden to move this file or folder.</string>
+	<string name="forbidden_permissions_move">to move this file</string>
 
 </resources>

+ 2 - 1
src/com/owncloud/android/utils/ErrorMessageAdapter.java

@@ -196,7 +196,8 @@ public class ErrorMessageAdapter {
                 message = res.getString(R.string.move_file_invalid_overwrite);
 
             } else if (result.getCode() == ResultCode.FORBIDDEN) {
-                message = res.getString(R.string.move_file_forbidden);
+                message = String.format(res.getString(R.string.forbidden_permissions),
+                        res.getString(R.string.forbidden_permissions_move));
 
             }else {    // Generic error
                 // Show a Message, operation finished without success