Commit graph

1921 commits

Author SHA1 Message Date
jenkins-bot
4a136f3ee0 Merge "Chinese Conversion Table Update 2015-7" 2015-09-08 20:23:24 +00:00
Kevin Israel
43ad3e8f6c Cleanup after extraction of utfnormal library
* Delete includes/compat/normal/.gitignore, which excluded files
  now located in various directories within the utfnormal repo.
* Remove "For NFC see includes/compat/normal" comments from
  maintenance/language, replacing them with a note that "This
  data file is used after normalizing to NFC."

Change-Id: I0ac990ec1a547b4c454ed738ce1dfffce0f53ba4
2015-08-17 02:57:04 -04:00
Chiefwei
936b15267c Chinese Conversion Table Update 2015-7
Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82
.

It is only data changes and only works for Chinese WikiProjects.

Change-Id: I4cb1d13903a31241ed50ab1eaf0c6f3bd6435e83
2015-08-16 12:33:33 +08:00
Chiefwei
d52f4a1a0f Chinese Conversion Table Update 2015-6
Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82 .

It is only data changes and only works for Chinese WikiProjects.

Change-Id: Ibf6d776d07a611a2afcb2c6c984074c39c8c0d70
2015-07-16 05:08:51 +00:00
Ori Livneh
8338476b8e Create a subdirectory for compatibility stubs
Instead of littering includes/ with stub back-compat aliases, house such
classes in includes/compat/.

Change-Id: I4c1b83e35c8d6c18777a4a3e17d81023915cfb7f
2015-06-29 19:27:13 +00:00
Chiefwei
ac69d6c9be Chinese Conversion Table Update 2015-5
Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82.

It is only data changes and only works for Chinese WikiProjects.

Change-Id: I0933141b0f06c5b7d7f1fb8153f6433276dc872f
2015-06-27 13:46:51 +08:00
Kunal Mehta
f6e5079a69 Use mediawiki/at-ease library for suppressing warnings
wfSuppressWarnings() and wfRestoreWarnings() were split out into a
separate library. All usages in core were replaced with the new
functions, and the wf* global functions are marked as deprecated.

Additionally, some uses of @ were replaced due to composer's autoloader
being loaded even earlier.

Ie1234f8c12693408de9b94bf6f84480a90bd4f8e adds the library to
mediawiki/vendor.

Bug: T100923
Change-Id: I5c35079a0a656180852be0ae6b1262d40f6534c4
2015-06-11 18:49:29 +00:00
Chiefwei
839ffb0830 Chinese Conversion Table Update 2015-4
Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82.

It is only data changes and only works for Chinese WikiProjects.

Change-Id: Ic1355c98e8e18217c73461239d4754f9d117999d
2015-06-02 16:59:05 +08:00
Chiefwei
60d58c19c5 Chinese Conversion Table Update 2015-3
Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82.

It is only data changes and only works for Chinese WikiProjects.

Change-Id: I8c9a52a3c03031330b8be771f3c74e6007efab73
2015-05-18 08:13:03 +00:00
Chad Horohoe
f94e85e976 wfRunHooks() -> Hooks::run() in maintenance scripts
Change-Id: I6550bca3a6a3a6cd67bb1ed94c09805deed86dbc
2015-04-27 21:42:17 -07:00
Liangent
18e70e9705 Improve Makefile.py for zhtable
* Fix incorrect parsing of phrases with spaces in them by using tabs as
  separators only in *.manual
* Make the order of items in PHP array output more stable, so contribs
  from different people don't conflict with each other
* Include version number in file name of Unihan database, so existing
  old file doesn't prevent downloading of a newer version of Unihan

Change-Id: Ifb6b33b937a7b82218172e3fdd937bda4ea4cc6c
2015-04-23 04:15:37 +00:00
jenkins-bot
cf73ab56ff Merge "Chinese Conversion Table Update 2015-2" 2015-04-21 06:45:29 +00:00
Chiefwei
63c79fc250 Chinese Conversion Table Update 2015-2
Update the Chinese conversion table to fix bugs reported.

It is only data changes and only works for Chinese WikiProjects.

Bug: T92758
Change-Id: I89a425517b2ba48645e57c48103a48ac5b1718c2
2015-04-18 14:13:36 +08:00
Kunal Mehta
13975fe76a Use wikimedia/utfnormal library, add backwards-compatability layer
This drops support for the custom utf8 normal PHP extension in favor
of the intl extension.

Bug: T90825
Change-Id: Ifbaeb2ef684217cf6187ccc4fb4d303f89608300
2015-03-24 12:59:26 -07:00
jenkins-bot
28b59da2a1 Merge "Update the Chinese conversion table for Chinese WikiProjects" 2015-03-10 13:58:22 +00:00
Chiefwei
f968119a28 Update the Chinese conversion table for Chinese WikiProjects
The Chinese conversion table is substantially updated to fix a lot of
bugs reported in recent years, and the script generating conversion
table (LanguageZh.php) is also modified to facilitate the maintenance.

Zh-sg and zh-my is set to fallback to zh-cn to improve reading
experience, since there is only trivial difference among them, just like
zh-hk and zh-mo. Further optimization for zh-sg and zh-my will be
performed in local conversion table of Chinese WikiProjects.

Bug: T91620
Change-Id: I1bb0315d6d7a2c9653905654d933942e362bcc42
2015-03-06 19:51:13 +00:00
Kunal Mehta
c8900f30af Move includes/normal to includes/libs/normal
Change-Id: Ib530ad9dbe1d3a33dc53ef8b9620f61d4e1a2d62
2015-01-29 00:00:35 +00:00
Aaron Schulz
6921770414 Updated some try-catch statements: MWException -> Exception
Change-Id: I76601a86e30f4984e3b1a8c8ec5ef5a0f652433a
2015-01-09 17:20:22 -08:00
Ricordisamoa
fc5fd5c37a Typo fixes and non-code tweaks
Skipped replacements:
* prefered → preferred
* prolly → probably

Skipped files:
* resources/lib/jquery.ui/jquery.ui.mouse.js
* resources/lib/jquery/jquery.form.js

Change-Id: Ib7923f362ddfca1b892bf5d601785d6b5aa5d44c
2014-12-12 18:31:15 +00:00
csteipp
f4e6bebea7 Use 0x for hexadecimal prefix
0X is a legal hex prefix, but tools like pfff and my syntax highlighter
prefer the more common 0x.

Change-Id: I38bba068f9a97566b0df9fb0a2fe72d25519a21b
2014-09-16 18:59:07 +00:00
umherirrender
25971af694 Cleanup some docs (maintenance)
- Fixed spacing inside docs
- Makes beginning of @param/@return in capital

Change-Id: I864b8b3f1f67e34e369aba7aadaf87e7752c894d
2014-08-09 22:08:40 +02:00
umherirrender
2b021dc48a Fixed spacing
- Added/removed spaces around parenthesis
- Added space after switch/if/foreach
- changed else if to elseif

Change-Id: I99cda543e0e077320091addd75c188cb6e3a42c2
2014-07-19 23:12:10 +02:00
Max Semenik
dadec1b2d3 Add a maintenance script to list variants and languages with then
Change-Id: Ide9ab040e93f3fc942b67363b7444903521ef79a
2014-06-04 15:31:30 -07:00
Alexandre Emsenhuber
527932136f Remove not-working scripts in maintenance/language
Change-Id: Idd6b1d5dc93a5bd71f0ad7445ce2f6ddc4beeb33
2014-05-24 07:32:16 +02:00
Alexandre Emsenhuber
7c7dbce0f0 Remove messageTypes.inc and replace it by a hook
The list is now maintained in the translatewiki repo:
https://git.wikimedia.org/blob/translatewiki.git/HEAD/groups%2FMediaWiki%2FMediaWiki.yaml

Change-Id: I4a33b22e425cbc1eeaf8b53870ef7b7947e91b40
2014-05-13 21:45:28 +02:00
Bartosz Dziewoński
1c4b578214 Remove messages.inc, rebuildLanguage.php, writeMessagesArray.inc
They are not being used anymore since the messages lists are in JSON
format, no idea why they were still here. Especially messages.inc is
just confusing everyone adding or removing messages.

Change-Id: If104ca1609e122b6871a97521065916a26734516
2014-05-12 16:00:24 +02:00
Jackmcbarn
f14e48f4f9 Allow moving category pages
Allow category pages to be moved. This is to preserve attribution of the
page only and does not cause pages in the category to recategorize to the
new one. A warning explains this when such a move is attempted. The new
right move-categorypages is required to do this, which is assigned to user
and sysop by default (the same as other move-related rights). The message
category-move-redirect-override can be used to cause custom text to be
placed on the "old" category page in lieu of a redirect.

Bug: 28569
Bug: 5451
Change-Id: Ic93616a54c8e98e3dc71daee3c92c466d64daffc
2014-05-09 18:12:25 +01:00
Brad Jorsch
e9d4d06276 HTMLForm: Add "cloner" type
SecurePoll is going to need the ability to have a form for stuff like
"one or more admin usernames" and "one or more poll questions, each with
one or more options".

This change implements a generic field container that simply displays as
a <ul> followed by an "add more" button, with each <li> containing
various fields including a "remove" button.

Since this is only going to show up in SecurePoll to people creating a
poll (not to general users), the current design is functional but not
necessarily beautiful. Those interested in beauty are welcome to do so
in a followup change.

Change-Id: I46fad3971739ddc961259fe32eb6e1cd265a1c06
2014-05-02 15:02:40 +00:00
jenkins-bot
e03f5e9c9e Merge "Update formatting in maintenance/ (3/4)" 2014-04-23 23:12:45 +00:00
Aaron Schulz
89d85a4be4 Added pool counter support for all thumb.php requests
* This can limit how many workers work on a given file at once,
  regardless of which specific thumbnail parameters are requested.
* Also added a BagOStuff::incrWithInit() method per DRY.
* Tweaked the register_shutdown_function() callback to avoid
  File/MediaTransformOutput references, since they may involve
  TempFSFile objects.

Change-Id: Ic01461cb974ab23b179ac3b60cf6de12e36360f6
2014-04-23 20:57:17 +00:00
Siebrand Mazeland
5a77286a1e Update formatting in maintenance/ (3/4)
Change-Id: I4390c4ea12a6a626b0e6817b6446635116ca9fe3
2014-04-23 20:09:13 +02:00
umherirrender
c81ceae2f8 Remove superfluous # at end of line from languages.inc
Change-Id: Ia625e8de5e4d04dd35b537fd905af53b66f4026b
2014-04-18 19:03:13 +02:00
umherirrender
e78776373e Fixed some @params documentation (maintenance)
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: I727deec35a712de0f0c676cc87dfa661f1ee965b
2014-04-17 22:48:32 +02:00
tonythomas01
74756a2409 Removed 'Remember my login' preference
Removed 'Remember my login' from Preferences, as it was unwanted. It adds
to the complexity of the user preferences

Bug: 52342
Co-Author: Tyler Romeo <tylerromeo@gmail.com>
Change-Id: I7c957e1e1aaecf47f7c47bc063b5d3b364644afc
2014-04-16 12:49:44 +05:30
Liangent
68d2b5f861 zhtable: Add zh2Hant rule 箱里 => 箱裡
Change-Id: Iab42af3a6246174263a1aa752912349a76cdb6a8
2014-04-09 08:45:27 +00:00
Bartosz Dziewoński
ef2c7d1df8 Remove unused 'prefs-beta' message
Unused since change Id8b9a47a in WikiEditor (9 months ago).

Bug: 28555
Change-Id: I76667a15ccbb1f6bdc5e5a67ffcb0a65ce55d124
2014-04-06 01:49:03 +02:00
Alexandre Emsenhuber
6ea0417cef Fix language statistics after messages have been moved to JSON
Statistics are now showing always no messages since languages.inc
does not manage to load the JSON messages.

Had to make LocalisationCache::readJSONFile() public so that it can
be used in  languages.inc; since all methods from LocalisationCache
return localisations merged with fallbacks, which is not what we
want here.

Fix for I918cfdc46c (0dd91d5).

Change-Id: Ib52287db618b9d072e847130070d165a3e7ae44b
2014-04-02 20:05:51 +02:00
Aaron Schulz
eb03cf3f7d Added a Redis pool counter class
* This should be easier to set up for typical installs

Change-Id: Icb4a7481b944fa0818c4635e3edbe12d08af9924
2014-04-01 15:57:31 -07:00
unknown
610236b467 Implement listing for tracking categories
Special page to implement list of Tracking Categories. Global
$wgTrackingCategories added containing list of tracking categories

Bug: 60333
Change-Id: I7d4bb90622a6bae60845942ef93cfe64f229d2d2
2014-03-29 14:50:39 +05:30
jenkins-bot
b382dfd42b Merge "Add a 'revdelete-selected-file' message on Special:RevisionDelete" 2014-03-26 17:18:57 +00:00
Brian Wolff
24276faf68 Add Special:ListDuplicatedFiles expensive query special page.
I saw some comments recently on commons suggesting that
better ways are needed to manage duplicate files (There are tools
for if a specific file is a duplicate, but no backlog of
outstanding duplicate files).

This seems like a fairly easy first step in that direction.

Wasn't sure if this should be an image gallery type
query page, or just a list. I think in this case a plain
list is more useful.

Change-Id: Ibe4b9da71ca6451ec4e6b0050feaf3ca70e1b888
2014-03-24 00:16:05 -03:00
jenkins-bot
96024533a6 Merge "Add link to PD help translatable pages from sidebar" 2014-03-20 23:17:26 +00:00
Ladsgroup
16a5102765 Change URLs to mediawiki.org in comments to HTTPS
These are only documentation fixes
http://www.mediawiki.org --> https://www.mediawiki.org

Change-Id: I62ad42be1a3aac410cc53e98ce79389ceddd8988
2014-03-20 16:59:46 +00:00
Federico Leva
3a6ea89d4a Add link to PD help translatable pages from sidebar
Reuses the existing helppage default message and
adds it to ignored messages as Special:MyLanguage
is used and translations have to be removed:
this does not bother customised local links.

Now using HTTPS URL to mediawiki.org per Brion
on bug 54835. This slightly increases the footprint
of the change but should keep everything functionally
equivalent. The sidebar is not bothered by full URLs,
except in self-defeating tests which are also fixed here.

Bug: 53887
Change-Id: I999b97729536dbab4a3a5efd8d6f86527f031948
2014-03-19 23:01:09 +01:00
jenkins-bot
df1a0cc446 Merge "Link to existing login help page by default from helplogin-url" 2014-03-19 10:48:19 +00:00
csteipp
9d7af803a1 Allow login with passwords not meeting complexity requirements
As part of https://www.mediawiki.org/wiki/Requests_for_comment/Passwords

This patch:
* Allows users to login with a password that does not meet the
  requirements of User::isValidPassword(), including the minimum password
  length.
* Adds a configuration flag that specifies if users should be sent to
  the change password form when they login with a password that doesn't
  meet the requirements of User::isValidPassword().

To test the UX as it will be on WMF wikis, set
$wgMinimalPasswordLength=6 in your LocalSettings.php.

Change-Id: Ib7b72005fea1c69073c0a33a68c0a0df0d6528d2
2014-03-18 20:46:44 +00:00
Federico Leva
7821e9d814 Link to existing login help page by default from helplogin-url
Detailed rationale discussed on bugzilla, bug 53888 and parent,
where consensus on the design was gained.

Using https link per Brion et al. in comments and bug 54835,
with new keys for the messages in order to avoid any conflict
with existing messages. (The translations of the removed messages
will be automatically removed by localisation updates.)

https://www.mediawiki.org/wiki/Help:Logging_in was improved by Lloffiwr
and now also marked for translation. The link is ready for future
translations thanks to the use of the standard Special:MyLanguage, hence
the message is made ignored to allow customisations only locally.

Bug: 53888
Change-Id: I8cefafbcd3bd1d6a03cec7cf1d0efdf607fec21d
2014-03-18 00:26:38 +00:00
umherirrender
c0ed76d715 Add a 'revdelete-selected-file' message on Special:RevisionDelete
This allows a file adjusted message when delete file versions and can
make clear the difference between deleting a revision of the file
description page or a version of the file.

Also renamed 'revdelete-selected' to 'revdelete-selected-text' to be
able to reorder the params, this allows using the same code for each
type (log, text and file)

Change-Id: I02514eda2f267ede16b4298ed5cae64c6787f79d
2014-03-16 08:23:15 +00:00
jenkins-bot
bedc38649b Merge "Split revdelete-text on Special:RevisionDelete for each type" 2014-03-14 23:02:34 +00:00
umherirrender
3ff5a3da27 Split revdelete-text on Special:RevisionDelete for each type
This allows specific text for each type.
Types here are: text, file and log

Change-Id: Icb24dfb483f940e90215ecc01f5765185963c7ed
2014-03-12 20:11:27 +01:00