Merge "Warn if stateful ParserOutput transforms are used"
[lhc/web/wiklou.git] / includes / collation / NorthernSamiUppercaseCollation.php
1 <?php
2 /**
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * http://www.gnu.org/copyleft/gpl.html
17 *
18 * @since 1.31
19 *
20 * @file
21 */
22
23 /**
24 * Temporary workaround for incorrect collation of Northern Sami
25 * language ('se') in Wikimedia servers (see bug T181503).
26 *
27 * When the ICU's 'se' collation has been included in PHP-intl and Wikimedia
28 * servers updated to that new version of PHP, this file should be deleted
29 * and the collation for 'se' set to 'uca-se'.
30 *
31 * @since 1.31
32 */
33
34 class NorthernSamiUppercaseCollation extends CustomUppercaseCollation {
35
36 public function __construct() {
37 parent::__construct( [
38 'A',
39 'Á',
40 'B',
41 'C',
42 'Č',
43 'Ʒ', // Not part of modern alphabet, but part of ICU
44 'Ǯ', // Not part of modern alphabet, but part of ICU
45 'D',
46 'Đ',
47 'E',
48 'F',
49 'G',
50 'Ǧ', // Not part of modern alphabet, but part of ICU
51 'Ǥ', // Not part of modern alphabet, but part of ICU
52 'H',
53 'I',
54 'J',
55 'K',
56 'Ǩ', // Not part of modern alphabet, but part of ICU
57 'L',
58 'M',
59 'N',
60 'Ŋ',
61 'O',
62 'P',
63 'Q',
64 'R',
65 'S',
66 'Š',
67 'T',
68 'Ŧ',
69 'U',
70 'V',
71 'W',
72 'X',
73 'Y',
74 'Z',
75 'Ž',
76 'Ø', // Not part of native alphabet, but part of ICU
77 'Æ', // Not part of native alphabet, but part of ICU
78 'Å', // Not part of native alphabet, but part of ICU
79 'Ä', // Not part of native alphabet, but part of ICU
80 'Ö', // Not part of native alphabet, but part of ICU
81 ], Language::factory( 'se' ) );
82 }
83 }