Commit Graph

12 Commits

Author SHA1 Message Date
Michal Čihař
9a59032379 Improve collation descriptions
- detect new languages
- detect new Unicode variants
- better describe collation method

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 15:33:33 +02:00
Michal Čihař
6429689607 Simplify collations reading
Remove dependency from charsets to collations, we really do not need it.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 15:20:11 +02:00
Michal Čihař
a7a44c28c5 All charsets/collation we get from the MySQL server are available
There is no need for explicit checking for availability later in the
code.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 15:17:32 +02:00
Michal Čihař
b311780d76 Separate methods for charset and collation dropdowns
They do not share much code in the end and this way the code is more
readable.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 13:04:41 +02:00
Michal Čihař
3e2029e750 Move MySQL charsets handling to the Charsets class
Issue #11731

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 12:55:42 +02:00
Michal Čihař
f9a02cde30 Simplify code by storing frequently used array members in variable
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 11:14:57 +02:00
Michal Čihař
a8820cbd4e Remove not needed mysql prefix from static variables
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 11:14:57 +02:00
Michal Čihař
d30bb0581c Load collations only when needed
In many cases we need only charset information, so split the loading.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 11:14:57 +02:00
Michal Čihař
e1db0a72cf Remove unused code
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 11:06:00 +02:00
Michal Čihař
54f0d14ea9 Remove session caching for MySQL charsets
This cache makes the session data quite huge giving performance penalty
when loading the cache. Loading the data again from MySQL server is
faster than this.

Also the charsets data is really needed only on few pages, the overall
impact of this caching is negative.

Caching the data per request however is useful.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 11:04:09 +02:00
Michal Čihař
cfc2f1cb05 Move charsets obtaining to the Charsets class
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 10:49:09 +02:00
Michal Čihař
cd4008b3d7 Move MySQL charset maps to separate class
This allows us to load it only when needed

Issue #11731

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 10:33:40 +02:00