diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-07-26 12:01:45 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-26 12:01:45 +0200 |
commit | a5d9b985c3d8a412b831cb1ceb9ba723ecd7a150 (patch) | |
tree | f368df4641ec5f7ac34b02386e969bec8071fcae /apps/files_trashbin | |
parent | 3354249691e68854c5e8e7265c9787d61fef278c (diff) | |
download | nextcloud-server-a5d9b985c3d8a412b831cb1ceb9ba723ecd7a150.tar.gz nextcloud-server-a5d9b985c3d8a412b831cb1ceb9ba723ecd7a150.zip |
make 'restored' extension translatable
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/trash.php | 5 |
1 files 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++; } |