mirror of
https://github.com/nextcloud/server.git
synced 2024-08-19 02:10:47 +02:00
l10n support enhanced in files_versions
This commit is contained in:
parent
18a288a3c3
commit
e0212c1174
@ -12,6 +12,6 @@ if(OCA\Files_Versions\Storage::rollback( $file, $revision )) {
|
|||||||
OCP\JSON::success(array("data" => array( "revision" => $revision, "file" => $file )));
|
OCP\JSON::success(array("data" => array( "revision" => $revision, "file" => $file )));
|
||||||
}else{
|
}else{
|
||||||
$l = OC_L10N::get('files_versions');
|
$l = OC_L10N::get('files_versions');
|
||||||
OCP\JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", $file ))));
|
OCP\JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", array($file) ))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user