aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/L10N
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2021-10-14 08:05:17 +0000
committerChristopher Ng <chrng8@gmail.com>2021-10-19 04:44:40 +0000
commit7215148a242815a5064ce5d00a387c634dc936f3 (patch)
tree4edf67253bd8c3bbe3ea2f1fba17e21b221e9282 /lib/public/L10N
parent382ba66ab5e1a675347e86d93593eb228da253bb (diff)
downloadnextcloud-server-7215148a242815a5064ce5d00a387c634dc936f3.tar.gz
nextcloud-server-7215148a242815a5064ce5d00a387c634dc936f3.zip
Add new account properties
- New properties - Organisation - Role - Headline - Biography - Profile Enabled property - Fix errors with building default account properties - Fix L10N factory method `getLanguage` not public error - Update tests Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/public/L10N')
-rw-r--r--lib/public/L10N/IFactory.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php
index 69b7d2281ce..0c8c945caab 100644
--- a/lib/public/L10N/IFactory.php
+++ b/lib/public/L10N/IFactory.php
@@ -29,6 +29,7 @@ declare(strict_types=1);
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace OCP\L10N;
use OCP\IUser;
@@ -152,6 +153,14 @@ interface IFactory {
public function getLanguageIterator(IUser $user = null): ILanguageIterator;
/**
+ * returns the common language and other languages in an
+ * associative array
+ *
+ * @since 23.0.0
+ */
+ public function getLanguages(): array;
+
+ /**
* Return the language to use when sending something to a user
*
* @param IUser|null $user