summaryrefslogtreecommitdiffstats
path: root/lib/public/L10N/IFactory.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-07-05 00:41:59 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-07-05 14:33:08 +0200
commit772bbd99bee83d17707c73a630a4d47c4b8bc807 (patch)
tree9cc5293fe3454e3e71be018b80825a5686516ae5 /lib/public/L10N/IFactory.php
parentcbfcfb236f3e8ace6c64ab5a654b9a331a3ce1c0 (diff)
downloadnextcloud-server-772bbd99bee83d17707c73a630a4d47c4b8bc807.tar.gz
nextcloud-server-772bbd99bee83d17707c73a630a4d47c4b8bc807.zip
Backend work to provide NC whats New info to users
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public/L10N/IFactory.php')
-rw-r--r--lib/public/L10N/IFactory.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php
index 9c006073200..1bc231e4e2e 100644
--- a/lib/public/L10N/IFactory.php
+++ b/lib/public/L10N/IFactory.php
@@ -21,6 +21,8 @@
*/
namespace OCP\L10N;
+use OCP\IUser;
+
/**
* @since 8.2.0
*/
@@ -93,10 +95,16 @@ interface IFactory {
/**
* iterate through language settings (if provided) in this order:
* 1. returns the forced language or:
- * 2. returns the user language or:
- * 3. returns the system default language or:
- * 4+∞. returns 'en'
+ * 2. if applicable, the trunk of 1 (e.g. "fu" instead of "fu_BAR"
+ * 3. returns the user language or:
+ * 4. if applicable, the trunk of 3
+ * 5. returns the system default language or:
+ * 6. if applicable, the trunk of 5
+ * 7+∞. returns 'en'
+ *
+ * Hint: in most cases findLanguage() suits you fine
+ *
* @since 14.0.0
*/
- public function iterateLanguage(bool $reset = false): string;
+ public function getLanguageIterator(IUser $user = null): ILanguageIterator;
}