aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/L10N
Commit message (Collapse)AuthorAgeFilesLines
* 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