From: Björn Schießle Date: Fri, 26 Jul 2013 10:01:45 +0000 (+0200) Subject: make 'restored' extension translatable X-Git-Tag: v6.0.0alpha2~389^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a5d9b985c3d8a412b831cb1ceb9ba723ecd7a150;p=nextcloud-server.git make 'restored' extension translatable --- diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php index b2bd562e37d..d09c4d5f7b1 100644 --- a/apps/files_trashbin/lib/trash.php +++ b/apps/files_trashbin/lib/trash.php @@ -807,6 +807,7 @@ class Trashbin { private static function getUniqueFilename($location, $filename, $view) { $ext = pathinfo($filename, PATHINFO_EXTENSION); $name = pathinfo($filename, PATHINFO_FILENAME); + $l = \OC_L10N::get('files_trashbin'); // if extension is not empty we set a dot in front of it if ($ext !== '') { @@ -815,9 +816,9 @@ class Trashbin { if ($view->file_exists('files' . $location . '/' . $filename)) { $i = 2; - $uniqueName = $name . " (restored)" . $ext; + $uniqueName = $name . " (".$l->t("restored").")". $ext; while ($view->file_exists('files' . $location . '/' . $uniqueName)) { - $uniqueName = $name . " (restored " . $i . ")" . $ext; + $uniqueName = $name . " (".$l->t("restored") . " " . $i . ")" . $ext; $i++; }