Commit graph

1934 commits

Author SHA1 Message Date
Bartosz Dziewoński 32b23da93a Namespace translation updates
* Renamed 'no' to 'nb'
* Added 'fi' and 'ro'

Requested at:
* bug 59014
* https://meta.wikimedia.org/wiki/User_talk:Matma_Rex#Translation_of_Module_namespace_name
* https://translatewiki.net/wiki/Thread:Support/Rename_%22module%22_namespace
* https://meta.wikimedia.org/w/index.php?title=Stewards%27_noticeboard&oldid=6929612#Renaming_namespaces

Change-Id: I69ec61305d638dd39e70406e192101c89ab7a1f4
2014-01-03 14:17:26 +01:00
Marius Hoch ac62e34952 Add mw.html to Scribunto
A module for building complex HTML from Lua using a
fluent interface. The module is originally from enwiki,
but the authors allowed us to reuse it under GPLv2+
(as stated in the file).
The module will be loaded per default and comes with
unit tests.

As discussed on wikitech-l:
http://lists.wikimedia.org/pipermail/wikitech-l/2013-December/073320.html

Change-Id: I7c8d4378091c13d5ace0dd1fcbb4e27163e8c896
2014-01-03 00:04:34 +01:00
Translation updater bot 06b58e1550 Localisation updates from https://translatewiki.net.
Change-Id: I18a3f68ae2cf1f40954f636eeff09ef9636d7cf6
2014-01-01 19:59:03 +00:00
Translation updater bot 0d58bc0145 Localisation updates from https://translatewiki.net.
Change-Id: Ic806a5a48b4ff248a87db98b0edc0190ebbfabea
2013-12-28 19:31:43 +00:00
Translation updater bot fdfb89464a Localisation updates from https://translatewiki.net.
Change-Id: I0a3d3db8ac66ccea6f86bc6a775ca8e78bc44bf3
2013-12-19 20:54:14 +00:00
Brad Jorsch 3ced70adb8 Provide access to Language::getFallbacksFor()
The other fallback-related functions in PHP all seem to be based on
this.

Bug: 48328
Change-Id: I4b54ab0c1e1535529f47443f6d0e72a59d3d120c
2013-12-16 14:12:47 -05:00
Translation updater bot fe52171f05 Localisation updates from https://translatewiki.net.
Change-Id: I61ca59d84a126834c31a4bcb5362abe7fa69f972
2013-12-13 20:08:24 +00:00
Timo Tijhof 4b31b71cfc Clean up existing code and pass jshint
Coding style:
* Avoid meaningless '_' in variable names, especially when used
  inconsistently.
* Avoid trailing line comments.
* Consistent if/else curly brace position.
* Consistently use single quotes (there are no magic quotes in js).
* Consistently use $ in variable names of jQuery-wrapped elements
  (as opposed to plain node references).
* Avoid using variable names like '_this' or 'that', instead name
  them after the object.
* Too many var statements.
* Hoist var statement.
* Fix alignment of closing parentheses in initEditPage.

Code quality:
* Remove commented out code.
* Add missing radix parameter for parseInt.
* Remove unused private function "printWithRunin".
* Remove unused parameters.
* Don't call "console.log" in production client-side code because
  the console doesn't always exist in normal browser modes (and
  would result in an Uncaught ReferenceError, aborting the script
  unexpectedly and leaving the user interface in a likely
  unresponsive state).
* Use the Promise.done and Promise.fail handlers of mw.Api,
  instead of the deprecated 'ok' and 'err' parameters.
* Use jQuery#on instead of the deprecated jQuery#bind.
* Use a local shared reference to the singleton instead of relying
  on 'this' context, this way the methods can be called
  regardless of context. Such as in the $(document).ready(), or
  when passing around setErrors callback.
* Avoid using invalid html shortcuts like <div/>, use <tag>
  for creation, and <tag>..</tag> for parsing (per style guide).
* Document inputKeydown parameter being jQuery.Event (as oppposed
  to native Event).

Misc:
* Renamed '_in' to 'in', and renamed again to 'input' ('in' is an
  illegal variable name and would've crashed).

Change-Id: I283fda1409b1e76db56a939183bdaefc95e60961
2013-12-13 00:50:13 +01:00
Translation updater bot 60cee45f4e Localisation updates from https://translatewiki.net.
Change-Id: I8db1fd2c79f87fd682c977beaf7297579f094e0b
2013-12-12 21:16:40 +00:00
jenkins-bot 88d09d10fc Merge "Revert "(bug 54951) Add Malayalam aliases for 828 and 829"" 2013-12-12 01:39:49 +00:00
Translation updater bot 89fdb02d5f Localisation updates from https://translatewiki.net.
Change-Id: I4cac1b0d4319a1aa781ea9b96c8c61a3bb9d3ca0
2013-12-11 20:28:23 +00:00
Reedy b38ef94a39 Revert "(bug 54951) Add Malayalam aliases for 828 and 829"
This doesn't have the wanted result; breaking ml projects

Bug: 58074

This reverts commit 336116f9cf.

Change-Id: I7a0ee61da14b59231009664bde62a7f7095a43cb
2013-12-11 16:58:16 +00:00
Timo Tijhof 7cd42da5fd Add .jshintrc file
Change-Id: Ib3bfa59bead56559547af05eed9ed928a2429fa3
2013-12-11 00:06:41 +01:00
jenkins-bot 3f9377cd70 Merge "Use jquery.spinner when console is pending" 2013-12-10 22:36:18 +00:00
Translation updater bot 339d888c9e Localisation updates from https://translatewiki.net.
Change-Id: I8eab8fe0b622b80aa0a1379a94ea53c4087c56f9
2013-12-10 20:44:08 +00:00
Brad Jorsch e4575c0b7c Use jquery.spinner when console is pending
This makes it more obvious to the user that something is going on.

Bug: 56472
Change-Id: I80938e0e48bd01eece4a99b8bda632a4b1375333
2013-12-10 13:07:54 -05:00
Brad Jorsch fcb6d9ff92 Add access to Language::fetchLanguageNames
Apparently this is useful on Commons, where they would like to iterate
over all language names in some of their templates.

Bug: 47833
Change-Id: I6e3291bedc72da6630c485ea9bf381d8d2f5453a
2013-12-10 12:22:09 -05:00
Brad Jorsch 0763e22292 Expose PPFrame::getTitle to Lua
This field already exists in PHP with exactly the content requested in
bug 47089, so we may as well expose it on the frame object.

Bug: 47089
Change-Id: I672820589f6ebc7c4daad29b5eb156733a5bc5cc
2013-12-10 04:26:03 +00:00
jenkins-bot 7cab36cea5 Merge "Tracking category for modules saved with errors" 2013-12-10 00:12:35 +00:00
Brad Jorsch 628c8b60ca Tracking category for modules saved with errors
When the "Allow saving code with errors" checkbox is used, an
automatically-added tracking category would be useful. And we may as
well also include the error message that would have been displayed when
trying to save without that checkbox checked.

Bug: 39605
Change-Id: Ideb72a58887fb1187b9adba80b7245cdca070ce4
2013-12-09 12:00:16 -05:00
Marius Hoch 99e69490d8 Fix a PHP Notice in Scribunto_LuaEngine
Change-Id: Ie09ec0a415c8ac72ede1ae77ba2257bbe6062505
2013-12-09 01:40:01 +01:00
Translation updater bot 6a1b0d5765 Localisation updates from https://translatewiki.net.
Change-Id: If26ffbd6e5e2696e0d378cb1901f1bcc91c27540
2013-12-08 20:27:28 +00:00
Translation updater bot dbbf1803c6 Localisation updates from https://translatewiki.net.
Change-Id: I1d60e9a2d12c44f0785ff11f7b9960f0f7696f31
2013-12-07 01:48:39 +00:00
Translation updater bot 1d65fd705b Localisation updates from https://translatewiki.net.
Change-Id: I7d4527b810069e7e21adea63bf9cf2b3d084c8e6
2013-11-24 20:36:03 +00:00
Translation updater bot e2c24b043b Localisation updates from https://translatewiki.net.
Change-Id: Ic27d05bbae53dc06c449ec1f3ea228196c0c6a6c
2013-11-21 20:40:17 +00:00
Tomasz W. Kozlowski 336116f9cf (bug 54951) Add Malayalam aliases for 828 and 829
This patch adds Malayalam language aliases for NS
828 and 829 per bug 54951 comment 7 (by praveenp)
and Santhosh's suggestion in bug 54951 comment 9.

Bug: 54951
Change-Id: I933f81782f3482334c9a8d820d4ea2b1120f5c59
2013-11-15 18:02:51 +01:00
Ebrahim Byagowi 6126644d92 Add CKB namespace aliases
Change-Id: I12aa46856c5ec43ddf5bf876dfe5fa8d1eaee3a2
2013-11-11 17:43:23 +00:00
jenkins-bot a18a762fd7 Merge "Add mw.isSubsting()" 2013-11-06 18:26:56 +00:00
Brad Jorsch 8872dd3eda Update phpunit @group annotations
Some tests weren't being run as they should have been when phpunit's
--group option was used.

Change-Id: I29ff9a04322b91cc085247e5663dfc7bc67d3439
2013-11-01 11:56:24 -04:00
Brad Jorsch d4331f0c96 Add mw.isSubsting()
It's already possible to detect whether the current template is being
substituted via ParserFunctions (see [[en:Template:Ifsubst]]), and a
similar trick works with frame:preprocess. So we may as well provide the
flag directly.

Bug: 47828
Change-Id: Id06d27c6283ee589a8830b78c04e56978e0ac6da
2013-10-31 22:05:00 -04:00
jenkins-bot 47fc1462c4 Merge "Properly handle spaces/underscores in mw.site.namespaces" 2013-10-31 19:36:03 +00:00
Brad Jorsch ec2f67c7ea Regularize whitespace handling in mw.title
Specifically:
* String conversion in non-URL contexts (e.g. .prefixedText) uses spaces
  instead of underscores.
* Setting .fragment now applies the same transformations that are done
  (in PHP) by mw.title.new.

Bug: 56217
Change-Id: I12e354636bcde3327864088175fb4de61aecc81a
2013-10-31 11:54:26 -04:00
Brad Jorsch f31aa37adc Properly handle spaces/underscores in mw.site.namespaces
The PHP call that makes mw.site.namespaces work case-insensitively
doesn't handle non-standard spaces/underscores. So standardize them
before the call.

Bug: 56216
Change-Id: I4758478b126858fb581614f64eb15472f42fef51
2013-10-31 11:09:16 -04:00
Translation updater bot b34573ba74 Localisation updates from http://translatewiki.net.
Change-Id: I66d39d1e2b5156c1ce52ada4273dd2f37ca75c35
2013-10-28 20:12:18 +00:00
Translation updater bot afc1a85c4e Localisation updates from http://translatewiki.net.
Change-Id: Iacbad8e63e409b917c61e84728dfeaffa3fc24d3
2013-10-25 18:59:08 +00:00
Translation updater bot 2fd69a8853 Localisation updates from http://translatewiki.net.
Change-Id: I34e16a30c3c66e25683c9ebc5d08c6d0a4027c61
2013-10-24 20:49:40 +00:00
Pavel Selitskas 184a649631 Translate namespaces for [be]
Change-Id: Ia9c52b379eb204d3e2852c795b33a7f7b21ae898
2013-10-23 19:23:02 +03:00
Translation updater bot aab9e691cc Localisation updates from http://translatewiki.net.
Change-Id: I7dd82a0a14ad3d06f614e7a0b0ff6a1120cb7dba
2013-10-21 19:39:39 +00:00
Translation updater bot 20d285d647 Localisation updates from http://translatewiki.net.
Change-Id: I4403892d4edcdc6b2f57e0f2232953a91bb556e0
2013-10-20 21:47:19 +00:00
Translation updater bot bf8501693c Localisation updates from http://translatewiki.net.
Change-Id: I5250dbbe89c2b01351592ac366ab7b76b8be33ce
2013-10-18 19:24:05 +00:00
jenkins-bot 32cc0a2979 Merge "Fix frame:extensionTag when not passed args" 2013-10-11 18:27:38 +00:00
Translation updater bot d86f29ce42 Localisation updates from http://translatewiki.net.
Change-Id: Ia9223f033cdfc20c6d7f315f7b1d8537e2eec302
2013-10-08 00:59:07 +00:00
Brad Jorsch 18f858314a Fix frame:extensionTag when not passed args
Bug: 55436
Change-Id: I82b638e89be1d57c941cc4534dc44944a7389740
2013-10-07 14:43:05 -04:00
This, that and the other fb8c34ecc0 Add namespace names for Malayalam (ml)
Bug: 54951
Change-Id: Icaafd460834425912e6c1bee2a95952a606b831a
2013-10-04 17:35:35 +10:00
Translation updater bot d7a4569de2 Localisation updates from http://translatewiki.net.
Change-Id: I25d772246155ec5111021a8e755f651719b73f9f
2013-10-02 19:50:05 +00:00
jenkins-bot 9ded458c28 Merge "Modules should be in English (while docs are not)" 2013-10-01 16:57:25 +00:00
Translation updater bot c1b7b7a116 Localisation updates from http://translatewiki.net.
Change-Id: I15b1683614b25830482451962337f7258f00e69f
2013-09-29 20:13:34 +00:00
Translation updater bot 6a4e8a2ba7 Namespace names for Macedonian (mk)
Per https://translatewiki.net/wiki/Thread:Support/Module_and_Education_Program_namespace_translations_%284%29

Change-Id: I74424041abcddd8beb7cfe48ce991c112de4e0f2
2013-09-27 09:53:49 +00:00
jenkins-bot 53f699eceb Merge "Improve mw.text.nowiki, part 2" 2013-09-24 22:11:40 +00:00
Translation updater bot df615d3a87 Localisation updates from http://translatewiki.net.
Change-Id: Ice28e0720b29ed1d0b486613bec96808af0c4dd6
2013-09-21 19:40:24 +00:00