diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-22 17:38:58 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-07-01 10:20:07 +0200 |
commit | b997edad105d38703351b89998444ab0828f7d05 (patch) | |
tree | b619c2a89e0d496e8a59e7045eb7250532e8c9ed /lib/public/L10N | |
parent | ebedbf157968e40230a102c8f6f17c22990b0aae (diff) | |
download | nextcloud-server-b997edad105d38703351b89998444ab0828f7d05.tar.gz nextcloud-server-b997edad105d38703351b89998444ab0828f7d05.zip |
Add a dedicated method to get the language for another user
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/L10N')
-rw-r--r-- | lib/public/L10N/IFactory.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php index b9e6e603aa8..2c6db1864df 100644 --- a/lib/public/L10N/IFactory.php +++ b/lib/public/L10N/IFactory.php @@ -126,4 +126,13 @@ interface IFactory { * @since 14.0.0 */ public function getLanguageIterator(IUser $user = null): ILanguageIterator; + + /** + * Return the language to use when sending something to a user + * + * @param IUser|null $user + * @return string + * @since 20.0.0 + */ + public function getUserLanguage(IUser $user = null): string; } |