summaryrefslogtreecommitdiffstats
path: root/lib/private/L10N
Commit message (Collapse)AuthorAgeFilesLines
* Backend work to provide NC whats New info to usersArthur Schiwon2018-07-052-28/+143
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust backend and gui to update and changelog serverArthur Schiwon2018-06-291-0/+32
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* docblock version fixesGeorg Ehrke2018-06-281-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* move locales file to /resources/Georg Ehrke2018-06-272-437/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* fix use of findLocaleGeorg Ehrke2018-06-271-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* properly handle force_locale settingGeorg Ehrke2018-06-271-0/+5
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* cache available locales to minimize fs accessGeorg Ehrke2018-06-271-6/+23
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* OC.getLocale() now returns Locale and no longer LanguageThomas Citharel2018-06-271-1/+1
| | | | | | | Added OC.getLanguage() to get Language <html lang=''> still gets language, though according to IETF BCP47 locale should be good. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* handle config.php valuesThomas Citharel2018-06-271-5/+10
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Fix review & testsThomas Citharel2018-06-272-0/+496
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Allow apps to specify locale for localisationThomas Citharel2018-06-272-13/+31
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge pull request #9435 from nextcloud/bugfix/noid/fix_force_language_html_attrRoeland Jago Douma2018-05-231-0/+5
|\ | | | | make sure force language is reflected in html lang attribute
| * Always set the request language to the force languageRoeland Jago Douma2018-05-231-6/+5
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * make sure force language is reflected in html lang attributeGeorg Ehrke2018-05-221-0/+6
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Added language support in users listJohn Molakvoæ (skjnldsv)2018-05-161-3/+78
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Relax what t accepts so we don't break it allRoeland Jago Douma2018-02-221-2/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix other testsRoeland Jago Douma2018-02-211-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Proper closure for functionRoeland Jago Douma2018-02-211-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make OCP\IL10N strictRoeland Jago Douma2018-02-211-19/+19
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Improve conditional of loopMorris Jobke2018-01-251-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Request->getHeader() should always return a stringMorris Jobke2018-01-171-1/+1
| | | | | | | | PHPDoc (of the public API) says that this method returns string but it also returns null, which is not allowed in some method calls. This fixes that behaviour and returns an empty string and fixes all code paths that explicitly checked for null to be still compliant. Found while enabling the strict_typing for lib/private for the PHP7+ migration. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* check if $defaultLanguage is a valid string before we move onBjoern Schiessle2017-12-011-2/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* use formal version of German if default_language is set to 'de_DE'Bjoern Schiessle2017-11-301-1/+25
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-063-0/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make L10N->l provide weekdayNameGeorg Ehrke2017-11-031-0/+2
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use symfony/translation for L10N pluralsRoeland Jago Douma2017-08-071-1/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some more invalid PHPDocs in legacy classesLukas Reschke2017-08-011-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move \OC_L10N_String to proper \OC\L10N\L10NStringRoeland Jago Douma2017-07-242-4/+91
| | | | | | | * Proper namespacing * Fixed phpdocs Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to force a language and set it via the ocs apiJoas Schilling2017-06-211-1/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't force the use of Accept-Language anymoreJoas Schilling2017-04-071-18/+0
| | | | | | | | | | | | | | | | | This is not intended anymore, since it falls back to force english when the header is not set. Also 0228bc6e66cbcb2848eacb41f1de6e7f63ebcb65 makes clear that the order should be: 1. User setting 2. Accept language 3. Admin default This is the case since the commit from above, unless via OCS and DAV. Both forced to accept-language falling back to english. By removing the force, it now also matches the w3 priority list: https://www.w3.org/International/questions/qa-lang-priorities Signed-off-by: Joas Schilling <coding@schilljs.com>
* Simplify isSubDirectory checkLukas Reschke2016-10-071-4/+26
| | | | | | Shaves off another 9ms per request as can be seen at https://blackfire.io/profiles/compare/dd54cef3-e58d-4a22-b8f4-c7c4b70697be/graph Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* ACCEPT_LANGUAGE goes before default_langaugeRoeland Jago Douma2016-09-042-20/+63
| | | | | | | | | | | | | | | | | | | See https://github.com/nextcloud/server/issues/970 Before we had 1. Users settings in personal settings 2. Admins default language settings 3. Accept-Language settings of the browser However this is not in line with https://www.w3.org/International/questions/qa-lang-priorities So this changes the order to 1. Users settings in personal settings 3. Accept-Language settings of the browser 2. Admins default language settings
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-212-4/+6
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Do not save the language as request lang for apps when we didn't find anyJoas Schilling2016-05-041-1/+1
|
* Move \OC\L10N to PSR-4Roeland Jago Douma2016-04-272-0/+606