Commit graph

543 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
Amir Sarabadani
b80f4a9efe languages: Fix phpcs errors
We are introducing a new sniff to fix space between array elements.

Bug: T342297
Change-Id: I0eb19cba13ba2b7de2a900603c470add06400db0
2023-08-18 03:45:33 +02:00
MdsShakil
1f7f9b44a8 Add আলাপ and আলোচনা as namespaceAliases in Mediawiki core
Both words are frequently used in Bengali with the same meaning, and we use both of them on Mediawiki as well.
So both words have been added as namespace aliases in all talk namespaces.

Bug: T341831
Change-Id: Ibcdc6da31b982d6212c8b744ef766b7a25821182
2023-07-17 13:09:18 +00:00
MdsShakil
a3962085ca Add some missing special page Bengali translation
Bug: T336106
Change-Id: Ib7e589e280b94dd8b1a46481d79fc576dfb55842
2023-05-07 03:48:29 +00:00
Tim Starling
7efc7f7518 Copy the Renameuser extension into core
Copy the Renameuser extension into core, with minimal code changes. The
hook handlers are inlined into Article, SpecialLog and
SpecialContributions.

Bug: T27482
Change-Id: I314021f4138773df6aaf2753b33ab8283cd16974
2023-03-03 09:39:39 -05:00
Stang
aa3fac56b4 Remove twn-related comment from languages/messages/* files
Bug: T304802
Change-Id: Iccacf6288d758e526c95df69861385a4ac2d0f55
2022-11-13 22:46:44 -05:00
MdsShakil
f6bd606547 Change of Listgrants special page Bengali translation
Bug: T320353
Change-Id: I5dac955bc8cc16f97c412e7c1eac81190b11a36e
2022-10-09 17:43:08 +00:00
MdsShakil
0bd3ff6717 Fix Bengali namespaceAliases translation of NS_MEDIAWIKI_TALK
NS_MEDIAWIKI_TALK aliases currently goes to NS_FILE_TALK, it's needed to fixed.

Bug: T320340
Change-Id: I4f579eda5b684a954c5ce502e4bcddae4191da53
2022-10-09 07:04:48 +00: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
Tim Starling
514d941a73 Add structure test for Messages*.php files
* Verify that the fallback chain is not too long
* Add some other obvious tests and fix the files that fail them.

Bug: T310532
Change-Id: I00f3aed35e756a3985f9f16af6d4721e2b61d3f6
2022-06-16 03:09:39 +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
Umherirrender
673477a4b4 Sort special page alises alphabetically
Use @phpcs-require-sorted-array from new codesniffer release 32.0.0

Bug: T255826
Change-Id: I827d1f5010d000609324ec398beeb142d9bac299
2020-10-30 09:59:17 +01:00
Santhosh Thottingal
ce8d0e9599 Update formatNum implementation to match tr35 and latest CLDR
* Update digitGroupingPattern to match CLDR 31: New versions of CLDR has
  digit grouping pattern with decimal part. Update digitGroupingPattern
  values in Message classes with this improved pattern.
  Refer: http://unicode.org/reports/tr35/tr35-numbers.html

* Refer the following chart for the decimal patterns.
  http://www.unicode.org/cldr/charts/31/by_type/numbers.number_formatting_patterns.html

* Uses PHP NumberFormatter class for the commafy implementation, which
  is available in PHP 7.

* Some tests need to update to match the TR 35 spec

* The formatNum public method in Language.php is the preferred way to
  use this feature. It does separator transformation and digit transformation
  wherever applicable.

* Renamed the second param name for formatNum from noCommafy to noSeparators

* commafy method is deprecated and formatNum is preferred. Practically,
  we are not just adding comma, but seperators according to the language.
  Replaced some tests based on commafy methods with tests based on formatNum.

Note: The corresponding js implementation is not changed in this commit.
It would probably be a good idea to use globalize.js, which is also based
on the CLDR patterns.

Note: This patch preserves the existing off-by-one error in
$minimumGroupingDigits; T262500 will eventually fix this.

Bug: T167088
Co-Authored-By: C. Scott Ananian <cscott@cscott.net>
Change-Id: Ic721b9a91e78e4ef07040339d1006b7a90a910c0
2020-10-21 10:08:04 -04:00
Aftab
55a2408f21 Add another Bengali synonym for HIDDENCAT in MessagesBn.php
Bug: T222126
Change-Id: Ie54433ed32ed209d3cb0077c5c2e3f1c67a94444
2019-05-09 16:10:41 +00:00
Aftab
24f3f19ca2 Fixing mediawiki's য় problem
Bengali $magicWords translations with য় (U+09DF) does not working because the character য় (U+09DF) was interpreted by MediaWiki as য (U+09AF) and nukta (U+09BC).

See also: https://gerrit.wikimedia.org/r/#/c/326433/

Bug: T153132
Change-Id: I6ef18acd7c1eb0ce87e81163ef0130620d48d200
2016-12-16 18:52:54 +00:00
Pmlineditor
580c02f299 Add $magicWords translation for Bengali (bn)
Bug: T151134
Change-Id: I81ce473668e3712ea575dc38f5eb76abb45498ac
2016-12-03 18:14:04 +01:00
MarcoAurelio
73d0ada674 Add $linkTrail for Bengali (bn)
Bug: T151111
Change-Id: I3723a10022de0c53a99d7275390e86a2c66c862c
2016-11-28 11:29:31 +00:00
MarcoAurelio
dfb2224663 Add $specialPageAliases for Bengali (bn)
Bug: T150586
Change-Id: Iac08fcaa9e501b3e88c348f15539619defe067c2
2016-11-15 11:42:34 +00: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
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
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
f8baf3a1de Localisation updates from https://translatewiki.net.
Change-Id: I93194841aebc13bb2e6e147ae6170a3acf2186e7
2014-03-22 20:33:31 +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
96c0f2ad6c Localisation updates from https://translatewiki.net.
Change-Id: I87ed70aa87a61057fa81f0eae63363af85fd71a0
2014-03-11 20:43:01 +00:00
Translation updater bot
a83a6504a5 Localisation updates from https://translatewiki.net.
Change-Id: I02cf02d1e9ce69f9b23eb7ddd23b1482e4ab7891
2014-03-07 21:38:12 +00:00
Translation updater bot
c5120a9676 Localisation updates from https://translatewiki.net.
Change-Id: I11ac7d4aeadddc7f20f44b98a9c08c8f20019ee6
2014-02-23 21:43:18 +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
988c92e651 Localisation updates from https://translatewiki.net.
Change-Id: I97bdb2a6d7351a1f60ad83d71e3ea18f38c40e54
2014-02-10 20:42:35 +00:00
Translation updater bot
21e75c4edc Localisation updates from https://translatewiki.net.
Change-Id: If319ada434046084f15742666d6b01504d028faa
2014-02-03 21:17:34 +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
7b1abca5c0 Localisation updates from https://translatewiki.net.
Change-Id: Icb726976f02aaed49f1b1e83a429c6a05c8ae103
2014-01-28 21:09:31 +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
84fedf1bd9 Localisation updates from https://translatewiki.net.
Change-Id: I36b88d4b387ed2313b2160a6ba9fc6be056ded96
2014-01-20 20:17:10 +00:00
Translation updater bot
97e0c5354b Localisation updates from https://translatewiki.net.
Change-Id: I1bc4622fa5c9c489fddd386c95fb9dbe05df7ce5
2014-01-19 20:07:30 +00:00
Translation updater bot
fc1665c9da Localisation updates from https://translatewiki.net.
Change-Id: I8b17b1f8ea175c4f1cf75bece53b79eba39bb509
2014-01-18 21:11:17 +00:00
Translation updater bot
03787df91f Localisation updates from https://translatewiki.net.
Change-Id: I3819b640ed499cdd677dd95b7e2b7c353b58a046
2014-01-12 20:35:45 +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
2924ade7eb Localisation updates from https://translatewiki.net.
Change-Id: I81ed6d9e11a852b7a2ab89694615f751a983963e
2013-12-20 20:40:09 +00:00
Translation updater bot
30979c32ea Localisation updates from https://translatewiki.net.
Change-Id: I80558ee8b9933e7c6ee9a866f469da928ebec4bb
2013-12-17 19:23:05 +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