Skip to content

Commit 21a2413

Browse files
committed
refactor: embed localized language names in 'info.php'
Add a 'localized_names' array to 'src/info.php' mapping language identifiers to human-readable names and remove the now-redundant 'src/lang_lang.php'. This centralizes language name definitions in the module info file to reduce duplication and simplify lookups.
1 parent 438c267 commit 21a2413

2 files changed

Lines changed: 51 additions & 49 deletions

File tree

src/info.php

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,55 @@
1919
'flag' => 'us',
2020
'version' => '1.0.16',
2121
'version_id' => 10016,
22+
23+
// Localized language names.
24+
'localized_names' => [
25+
'arabic' => 'Arabic',
26+
'armenian' => 'Armenian',
27+
'bengali' => 'Bengali',
28+
'brazilian' => 'Portuguese (Brazil)',
29+
'bulgarian' => 'Bulgarian',
30+
'catalan' => 'Catalan',
31+
'chinese' => 'Chinese (Simplified)',
32+
'croatian' => 'Croatian',
33+
'czech' => 'Czech',
34+
'danish' => 'Danish',
35+
'dutch' => 'Dutch',
36+
'english' => 'English',
37+
'estonian' => 'Estonian',
38+
'filipino' => 'Filipino',
39+
'finnish' => 'Finnish',
40+
'french' => 'French',
41+
'georgian' => 'Georgian',
42+
'german' => 'German',
43+
'greek' => 'Greek',
44+
'hindi' => 'Hindi',
45+
'hungarian' => 'Hungarian',
46+
'indonesian' => 'Indonesian',
47+
'italian' => 'Italian',
48+
'japanese' => 'Japanese',
49+
'korean' => 'Korean',
50+
'latvian' => 'Latvian',
51+
'lithuanian' => 'Lithuanian',
52+
'malay' => 'Malay',
53+
'norwegian' => 'Norwegian',
54+
'persian' => 'Persian',
55+
'polish' => 'Polish',
56+
'portuguese' => 'Portuguese',
57+
'romanian' => 'Romanian',
58+
'russian' => 'Russian',
59+
'serbian' => 'Serbian',
60+
'slovak' => 'Slovak',
61+
'slovenian' => 'Slovenian',
62+
'spanish' => 'Spanish',
63+
'swahili' => 'Swahili',
64+
'swedish' => 'Swedish',
65+
'taiwanese' => 'Chinese (Traditional)',
66+
'tamil' => 'Tamil',
67+
'thai' => 'Thai',
68+
'turkish' => 'Turkish',
69+
'ukrainian' => 'Ukrainian',
70+
'urdu' => 'Urdu',
71+
'vietnamese' => 'Vietnamese',
72+
],
2273
];

src/lang_lang.php

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)