]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make group suffix in share dialog translatable
authordampfklon <me@dampfklon.de>
Thu, 22 Aug 2013 17:52:08 +0000 (19:52 +0200)
committerdampfklon <me@dampfklon.de>
Thu, 22 Aug 2013 17:52:08 +0000 (19:52 +0200)
core/ajax/share.php

index bdcb61284ecdd8603a7165790c4d7420fed49d53..d3c6a8456a60422c204e7668e0d0c784d8a97d44 100644 (file)
@@ -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