Commit graph

850 commits

Author SHA1 Message Date
C. Scott Ananian
450fe7fcd8 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
2024-07-30 20:27:17 +00:00
Stang
aa3fac56b4 Remove twn-related comment from languages/messages/* files
Bug: T304802
Change-Id: Iccacf6288d758e526c95df69861385a4ac2d0f55
2022-11-13 22:46:44 -05:00
Timo Tijhof
939700e8ff language: Continue doc Languages subgroup for msg files and subclasses
Follows-up I301f471f86ba2.

For ease of navigation, move Converter subclasses to a group called
"Languages", which for documentation purposes is a subgroup of
"Language". The next commit does the same for Messages* files,
and Language subclasses (done separately for ease of review).

Change-Id: If1cef9aa15f536ebaedd4477ad7453426e7f3b85
2022-06-29 00:13:45 +00:00
Umherirrender
7f28fe35b8 Sort magic words alises alphabetically in static language files
Use @phpcs-require-sorted-array from new codesniffer release 32.0.0

Similiar to special page alias in
I827d1f5010d000609324ec398beeb142d9bac299

Bug: T255826
Change-Id: I7b7cbf0c03714001609437af68fe16e06930cc33
2021-03-06 16:21:51 +01:00
Fomafix
78f9b210bf Use HTTPS instead of HTTP for Amazon
This change is performed using:

sed -i -e 's/http:\/\/www.amazon/https:\/\/www.amazon/g' languages/messages/Messages*.php

Change-Id: I22c5e7a8d33a80b8cbe814f9735e7c24f1b004f9
2017-01-19 14:45:49 +01:00
Fomafix
ce6f7faadd Remove trailing empty lines in PHP
Performed using
find . -name \*.php -exec sed -i -e :a -e '/./,$!d;/^\n*$/{$d;N;};/\n$/ba' {} \;

Change-Id: I5d0627f94c73690cf3a8a453539c22c760c2aa60
2017-01-16 22:06:43 +01:00
eranroz
9e60ff49ba Add prefered magic words first
When there are multiple aliases, the first alias MUST be the
preferred alias in that language, so that wikitext code
generators can generate the desired syntax.

The other aliases SHOULD be sorted by the following convention:
- Local first, English last
- Most common first, least common last

Bug: T116020
Change-Id: Ia670512e0cb375335873e7f9a08b638bbe039e45
2016-04-02 10:26:47 +02:00
Kunal Mehta
6e9b4f0e9c Convert all array() syntax to []
Per wikitech-l consensus:
 https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Notes:
* Disabled CallTimePassByReference due to false positives (T127163)

Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Niklas Laxström
b382478944 Cleanup message file documentation
* Interface strings are now elsewhere
* MessagesQQQ no longer exists
* Prefer https for translatewiki.net

Change-Id: I76652ea94cca80441cd5d978029e4707ee41c4fd
2014-06-05 14:06:25 +00:00
Kevin Israel
c2a2750cbc Special:BookSources: Remove link to PriceSCAN
This price comparison service seems to have shut down in 2011. The
ISBN link likely has been broken for years, and there is no working
URL on the site itself to replace it with.

Change-Id: Ib3e61bbd86302f885bff75cb92fa87d35d657d5f
2014-04-27 08:11:09 -04:00
Siebrand Mazeland
0dd91d5396 Migrate translations for core to JSON format
Largest patch set in the history of MediaWiki!

Change-Id: I918cfdc46c099017ca3622d1bcbbdd30c4fd00f6
2014-04-01 21:25:43 +00:00
Translation updater bot
504179c922 Localisation updates from https://translatewiki.net.
Change-Id: I6ac7ce50b6204e9e9d63695c9532d33796d4cc7d
2014-03-29 21:13:18 +00:00
Translation updater bot
9ff59d43e9 Localisation updates from https://translatewiki.net.
Change-Id: Ica6fa7fc2d685a655e07b24cd54c7ec42d10f214
2014-03-27 20:29:00 +00:00
Translation updater bot
8f2e73f9b3 Localisation updates from https://translatewiki.net.
Change-Id: I31ee0d1685cdf6b315cb5336b30e548c76d67a95
2014-03-26 20:37:55 +00:00
Translation updater bot
e14f84ab9c Localisation updates from https://translatewiki.net.
Change-Id: I18970accbce3b383e4ad89df2b5cd0d638861e26
2014-03-21 20:46:11 +00:00
Translation updater bot
ed3e9d73ed Localisation updates from https://translatewiki.net.
Change-Id: If3a8ff71e98aab98c39991147c715ec388ef91aa
2014-03-19 20:44:32 +00:00
Translation updater bot
c9c8d2de86 Localisation updates from https://translatewiki.net.
Change-Id: If66ddc1478b986417b08bd6d84cf441ea7f4526c
2014-03-15 20:07:15 +00:00
Translation updater bot
b4b8216df8 Localisation updates from https://translatewiki.net.
Change-Id: I603eeeed9980a1190075cb54092edefdaf3c2ed5
2014-03-13 15:29:06 +00:00
Translation updater bot
78c3af541b Localisation updates from https://translatewiki.net.
Change-Id: Ia03f6dcf21ee8e589758e039566adb661893804f
2014-03-10 21:21:57 +00:00
Translation updater bot
775ccf3813 Localisation updates from https://translatewiki.net.
Change-Id: I1d75011f4c5f78746fb1b05ef05858ac6a35eec4
2014-03-09 20:20:06 +00:00
Translation updater bot
5a44ef0bca Localisation updates from https://translatewiki.net.
Change-Id: I2dd97b0dda0af44be6ad3979d5934554a4d7e31c
2014-03-02 20:32:03 +00:00
Translation updater bot
f4c666cd00 Localisation updates from https://translatewiki.net.
Change-Id: I2535a33defbc75fdb860acac3c98a8511e064a0a
2014-02-24 20:53:27 +00:00
Translation updater bot
6146a7d310 Localisation updates from https://translatewiki.net.
Change-Id: Id88aa24093b40a87b6beee70d81124179f95f006
2014-02-19 20:03:32 +00:00
Translation updater bot
7913859094 Localisation updates from https://translatewiki.net.
Change-Id: I86c1c01411f82197c10f7c3cce25feede39f9166
2014-02-17 20:35:28 +00:00
Translation updater bot
50a1379550 Localisation updates from https://translatewiki.net.
Change-Id: Id3d35cd6092604494646483ef80a546b80d8fdb9
2014-02-16 20:10:55 +00:00
Translation updater bot
f2a16ab59c Localisation updates from https://translatewiki.net.
Change-Id: I9ed903822cabaf2a845d01f1a68ee34ac444d980
2014-02-01 19:37:45 +00:00
Translation updater bot
a0cbba1d18 Localisation updates from https://translatewiki.net.
Change-Id: I8187963fdb3b2cb88ee7afc1cc3b32cf8672e20b
2014-01-26 15:54:15 +00:00
Translation updater bot
cf96f84742 Localisation updates from https://translatewiki.net.
Change-Id: Idf89d2bff84d9c4e74be06a2532222891b0fb30e
2014-01-24 20:00:37 +00:00
Translation updater bot
e40079c3f8 Localisation updates from https://translatewiki.net.
Change-Id: Iaee33fbd265807b18879b6f9873d1d4344dfb878
2014-01-08 20:34:03 +00:00
Translation updater bot
e71579d747 Localisation updates from https://translatewiki.net.
Change-Id: I1b1e7c920d7a71f8c2230dbacf9ce4b51bb1d2fe
2014-01-06 19:58:18 +00:00
Translation updater bot
3f198951cb Localisation updates from https://translatewiki.net.
Change-Id: Ie4cf8986d2fc3bdf1d485958c7171b0b86cefee2
2014-01-05 20:08:28 +00:00
Translation updater bot
74a8074c78 Localisation updates from https://translatewiki.net.
Change-Id: Idbf58dc6bad40ceecaea84f944a5558fe62ec775
2014-01-02 20:37:24 +00:00
Translation updater bot
1dd419783d Localisation updates from https://translatewiki.net.
Change-Id: Ie7840763fc088ca06b0704749ab31ccedd0b8aec
2013-12-27 18:24:52 +00:00
Translation updater bot
2e0d67ac4d Localisation updates from https://translatewiki.net.
Change-Id: Ia0c0839f6625c878e89d3d29bdec77446b8e77fb
2013-12-26 19:18:09 +00:00
Translation updater bot
925f9f1713 Localisation updates from https://translatewiki.net.
Change-Id: If7cc1c1d3be260cda5f8aa2543fd2196a09d4622
2013-12-16 19:38:10 +00:00
Translation updater bot
ac4354bdaa Localisation updates from https://translatewiki.net.
Change-Id: I81f2c786041718b678dbd9fba411e24d0c4d4cf7
2013-12-14 20:42:14 +00:00
Translation updater bot
4dd6a41af7 Localisation updates from https://translatewiki.net.
Change-Id: I78257c1482d2a8a5a36693082c3228a63d0f4b8f
2013-12-10 20:48:26 +00:00
Translation updater bot
9ffcc282ab Localisation updates from https://translatewiki.net.
Change-Id: Id4b89fcef61ccf1e329710f6beff9398669fdadb
2013-12-08 20:26:31 +00:00
Translation updater bot
4767a49bf9 Localisation updates from https://translatewiki.net.
Change-Id: Id32d5c87533081016e6a00312703f450782a1d6d
2013-12-07 10:46:45 +00:00
Translation updater bot
5531631535 Localisation updates from https://translatewiki.net.
Change-Id: I91af046a42d410457d6ccb6ce44657a29d184434
2013-12-05 21:22:40 +00:00
Translation updater bot
f3eacb22b9 Localisation updates from https://translatewiki.net.
Change-Id: Ic4c5e76d04630a9da5bde0590db09b55d30132ec
2013-12-04 20:29:19 +00:00
Translation updater bot
d767073dc0 Localisation updates from https://translatewiki.net.
Change-Id: I5fe5f8015d44550ad334d67536ad6728fc838db6
2013-12-03 20:53:40 +00:00
Translation updater bot
a13c897f4d Localisation updates from https://translatewiki.net.
Change-Id: I5c7c2cde9b44ccfd3edd8101d677e2d8f1797982
2013-12-02 20:32:58 +00:00
Siebrand Mazeland
5d4c172d48 Localisation updates from https://translatewiki.net.
Updates for translations of namespace names.

Change-Id: I4663a6b549ca5423683d4f3ccc64b08a8b8ed635
2013-12-02 10:53:51 +01:00
Siebrand Mazeland
167fbe85f9 Localisation updates from https://translatewiki.net.
Updates for translations of magic words.

Change-Id: I90308108ef2aba3bce7c62afe6e536b8e2180271
2013-12-02 10:17:43 +01:00
Translation updater bot
4e4b89cb7b Localisation updates from https://translatewiki.net.
Change-Id: Ie9895f1ab208f4e1055bb74e288f82a7e0dd30d6
2013-11-25 21:12:12 +00:00
Translation updater bot
e7e842ad37 Localisation updates from https://translatewiki.net.
Change-Id: Iac7415ec17a0a30026e8c542f5ddd98d67b35d59
2013-11-24 20:26:31 +00:00
Translation updater bot
85ca75742d Localisation updates from https://translatewiki.net.
Change-Id: Ic27f47711e4bec31f50d0d8714cf5f5f12da4f50
2013-11-23 10:46:28 +00:00
Translation updater bot
4484261325 Localisation updates from http://translatewiki.net.
Change-Id: I0eb353cd0cadf0bed7cd17d4c3eb2c7e108f6aa6
2013-11-20 21:03:52 +00:00
Translation updater bot
5223f5cdc4 Localisation updates from http://translatewiki.net.
Change-Id: I2ffb4e1f59ad5619ad15b7556c826ff2e206a1be
2013-11-19 20:14:44 +00:00