From a5d9b985c3d8a412b831cb1ceb9ba723ecd7a150 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Fri, 26 Jul 2013 12:01:45 +0200 Subject: [PATCH] make 'restored' extension translatable --- apps/files_trashbin/lib/trash.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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++; } -- 2.39.5