summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/ajax
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-07 16:17:54 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-07 16:17:54 +0100
commit488ab0dba2bc6d48968255943edaef7174757308 (patch)
tree14525b11eb11f54ae09816dadde7f5fd02d6bed4 /apps/files_versions/ajax
parent0efcf33e2f349ad7b2be183ee5363db784d2cc5f (diff)
downloadnextcloud-server-488ab0dba2bc6d48968255943edaef7174757308.tar.gz
nextcloud-server-488ab0dba2bc6d48968255943edaef7174757308.zip
l10n support enhanced in files_version
Diffstat (limited to 'apps/files_versions/ajax')
-rw-r--r--apps/files_versions/ajax/rollbackVersion.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/ajax/rollbackVersion.php b/apps/files_versions/ajax/rollbackVersion.php
index dc5a59cb4af..216051dbcb0 100644
--- a/apps/files_versions/ajax/rollbackVersion.php
+++ b/apps/files_versions/ajax/rollbackVersion.php
@@ -11,6 +11,7 @@ $revision=(int)$_GET['revision'];
if(OCA\Files_Versions\Storage::rollback( $file, $revision )) {
OCP\JSON::success(array("data" => array( "revision" => $revision, "file" => $file )));
}else{
- OCP\JSON::error(array("data" => array( "message" => "Could not revert:" . $file )));
+ $l = OC_L10N::get('files_versions');
+ OCP\JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", $file ))));
}