diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-08-28 15:46:51 -0700 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-08-28 15:46:51 -0700 |
commit | ea6e74ca9546ca95b3a6372c6106cd8ab2ea2ee9 (patch) | |
tree | 1030989f984db84cbb335c6220482f9317e16c1e | |
parent | af6eb9d41b3e888fcc0f4aa4a832dc6e5a5065f9 (diff) | |
parent | 87c3f34a93257f015304ac48247eeaf38745af9f (diff) | |
download | nextcloud-server-ea6e74ca9546ca95b3a6372c6106cd8ab2ea2ee9.tar.gz nextcloud-server-ea6e74ca9546ca95b3a6372c6106cd8ab2ea2ee9.zip |
Merge pull request #4552 from dampfklon/fix4552
Make group suffix in share dialog translatable
-rw-r--r-- | core/ajax/share.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index bdcb61284ec..d3c6a8456a6 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -213,6 +213,10 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo } } $count = 0; + + // enable l10n support + $l = OC_L10N::get('core'); + foreach ($groups as $group) { if ($count < 15) { if (stripos($group, $_GET['search']) !== false @@ -221,7 +225,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo || !is_array($_GET['itemShares'][OCP\Share::SHARE_TYPE_GROUP]) || !in_array($group, $_GET['itemShares'][OCP\Share::SHARE_TYPE_GROUP]))) { $shareWith[] = array( - 'label' => $group.' (group)', + 'label' => $group.' ('.$l->t('group').')', 'value' => array( 'shareType' => OCP\Share::SHARE_TYPE_GROUP, 'shareWith' => $group |