Commit Graph

15 Commits

Author SHA1 Message Date
Michal Čihař
924aabf652 Do not show language selector without choices
Move the check from template to the code, so that the selection is
completely hidden when there is nothing to select.

Fixes #12988

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-13 11:22:43 +01:00
Michal Čihař
cf7a731ca1 Merge branch 'QA_4_6' 2016-11-18 11:01:10 +01:00
Michal Čihař
cc961340d9 Remove check for < in Accept-Language header
It is no longer needed since we do match language against existing ones.

Issue #12710

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-11-18 10:52:57 +01:00
Deven Bansod
e2dac31bdb Refactor the language selector display into a template
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-10-31 09:02:59 +05:30
Michal Čihař
52fe0f358d Add Igbo language
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-08-30 13:57:09 +02:00
Michal Čihař
8b26bc1f65 Start Kabylian translation
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-08-01 16:07:16 +02:00
Michal Čihař
ea1693da03 Merge branch 'QA_4_6' 2016-05-11 13:58:00 +02:00
Michal Čihař
63c89d2e33 Fixed setting mixed case languages
Switched to use same code in both approaches to set language.

Fixes #12118

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-11 13:57:22 +02:00
Michal Čihař
3780b08015 Add Filipinese translation
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-26 14:40:16 +02:00
Michal Čihař
5d755b194a Fixed activation of some languages
We need to maintain mixed case language codes as well.

Fixes #12118

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-03-24 23:30:24 +01:00
Michal Čihař
5042b65398 Merge branch 'QA_4_5' into QA_4_6 2016-02-12 10:45:43 +01:00
Michal Čihař
8813090359 Add infrastructure to map language to MySQL locale
Issue #11789

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-13 08:44:24 +01:00
Michal Čihař
60b7bb1733 Add method for getting current language
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-13 08:30:23 +01:00
Michal Čihař
bd779eeaea Implement language selection using LanguageManager
Issue #11847

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-12 14:51:08 +01:00
Michal Čihař
fd045a94e7 Initial implementation of LanguageManager
The LanguageManager is responsible for choosing correct language and
Language class wraps invididual locales, allows matching and their
activation.

Issue #11847

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-12 14:51:07 +01:00