aboutsummaryrefslogtreecommitdiffstats
path: root/languages/messages/MessagesSr_el.php
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@cscott.net>2024-06-04 13:55:10 -0400
committerC. Scott Ananian <cscott@cscott.net>2024-07-30 20:27:17 +0000
commit450fe7fcd8360248d9e8d32df963af101b0e37c5 (patch)
tree0e73b545ab6198c35f990300da25ac2b7e0d57cc /languages/messages/MessagesSr_el.php
parent416c33bb6a5fe56adb5dd402788b3b11594613ea (diff)
downloadmediawikicore-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/MessagesSr_el.php')
-rw-r--r--languages/messages/MessagesSr_el.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages/messages/MessagesSr_el.php b/languages/messages/MessagesSr_el.php
index 18e74517c559..ac352aa4eff8 100644
--- a/languages/messages/MessagesSr_el.php
+++ b/languages/messages/MessagesSr_el.php
@@ -355,7 +355,7 @@ $magicWords = [
'img_upright' => [ '1', 'uspravno', 'uspravno=$1', 'uspravno_$1', 'upright', 'upright=$1', 'upright $1' ],
'img_width' => [ '1', '$1p', '$1piksel', '$1px' ],
'index' => [ '1', '__INDEKSIRAJ__', '__INDEKSIRANJE__', '__INDEKS__', '__INDEX__' ],
- 'language' => [ '0', '#JEZIK:', '#LANGUAGE:' ],
+ 'language' => [ '0', '#JEZIK', '#LANGUAGE' ],
'lcfirst' => [ '0', 'LCPRVI:', 'LCFIRST:' ],
'localday' => [ '1', 'LOKALNIDAN', 'LOKALNI_DAN', 'LOCALDAY' ],
'localday2' => [ '1', 'LOKALNIDAN2', 'LOKALNI_DAN2', 'LOCALDAY2' ],