diff options
author | C. Scott Ananian <cscott@cscott.net> | 2024-06-04 13:55:10 -0400 |
---|---|---|
committer | C. Scott Ananian <cscott@cscott.net> | 2024-07-30 20:27:17 +0000 |
commit | 450fe7fcd8360248d9e8d32df963af101b0e37c5 (patch) | |
tree | 0e73b545ab6198c35f990300da25ac2b7e0d57cc /languages/messages/MessagesAf.php | |
parent | 416c33bb6a5fe56adb5dd402788b3b11594613ea (diff) | |
download | mediawikicore-450fe7fcd8360248d9e8d32df963af101b0e37c5.tar.gz mediawikicore-450fe7fcd8360248d9e8d32df963af101b0e37c5.zip |
Make {{#language}} consistent with {{#dir}} and {{#bcp47}}
Add the same no-arg options for language code that
{{#dir}} and {{#bcp47}} have, for consistency:
* `{{#language}}` will return the name of the *target language*
(for articles, the content language; for messages, the user language)
The default value for the "in language" argument should be the autonym.
This was working previously but only via a baroque code flow path for
invalid language codes. Make this a bit clearer and add tests.
Since non-autonym language code translations are added via the
[[Extension:CLDR]] in production, hook LanguageGetTranslatedLanguageNames
in the ParserTestRunner to ensure that we can test this.
Followup-To: Ice1c671c5b3cc077d2bb80ea5dc25c5eabbfeb36
Followup-To: I19c3e91a924e080f37dc95a0d4e61493583b533e
Change-Id: Ibf6e7f194cc056eadb48a5ad8e6d01a761d9351c
Diffstat (limited to 'languages/messages/MessagesAf.php')
-rw-r--r-- | languages/messages/MessagesAf.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/languages/messages/MessagesAf.php b/languages/messages/MessagesAf.php index 910e59cda280..80ecf35f1d9d 100644 --- a/languages/messages/MessagesAf.php +++ b/languages/messages/MessagesAf.php @@ -63,7 +63,7 @@ $magicWords = [ 'img_thumbnail' => [ '1', 'duimnael', 'thumb', 'thumbnail' ], 'img_top' => [ '1', 'bo', 'top' ], 'index' => [ '1', '__INDEKS__', '__INDEX__' ], - 'language' => [ '0', '#TAAL:', '#LANGUAGE:' ], + 'language' => [ '0', '#TAAL', '#LANGUAGE' ], 'localweek' => [ '1', 'HUIDIGEWEEK', 'LOCALWEEK' ], 'namespace' => [ '1', 'NAAMSPASIE', 'NAMESPACE' ], 'noeditsection' => [ '0', '__GEENNUWEAFDELING__', '__NOEDITSECTION__' ], |