summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/rename.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-09 12:07:39 -0800
committerLukas Reschke <lukas@statuscode.ch>2013-01-09 12:07:39 -0800
commitfda1ada4f07a23c427468ab4ed97c11303171ce2 (patch)
tree8a0570961ad24a2e3e38a175dae4c58b64607f47 /apps/files/ajax/rename.php
parentca027f37496bc54b3c03bdc88ea36b47c0e88d9b (diff)
parenta40c95242f728d633f3db6312c3024673412fff6 (diff)
downloadnextcloud-server-fda1ada4f07a23c427468ab4ed97c11303171ce2.tar.gz
nextcloud-server-fda1ada4f07a23c427468ab4ed97c11303171ce2.zip
Merge pull request #1131 from owncloud/more_translations
translate move and rename error messages
Diffstat (limited to 'apps/files/ajax/rename.php')
-rw-r--r--apps/files/ajax/rename.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/ajax/rename.php b/apps/files/ajax/rename.php
index cb0bec399d1..89b4d4bba73 100644
--- a/apps/files/ajax/rename.php
+++ b/apps/files/ajax/rename.php
@@ -14,7 +14,7 @@ $newname = stripslashes($_GET["newname"]);
// Delete
if( $newname !== '.' and OC_Files::move( $dir, $file, $dir, $newname )) {
OCP\JSON::success(array("data" => array( "dir" => $dir, "file" => $file, "newname" => $newname )));
-}
-else{
- OCP\JSON::error(array("data" => array( "message" => "Unable to rename file" )));
+} else {
+ $l=OC_L10N::get('files');
+ OCP\JSON::error(array("data" => array( "message" => $l->t("Unable to rename file") )));
}