Commit graph

48 commits

Author SHA1 Message Date
Alexandre Emsenhuber
5b760e4233 Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: Ia79634e62a7aee293d4e8534082f503bbc2b614f
2012-06-07 13:06:19 +02:00
Reedy
90db885789 '/Şçʹ/u' => 'Щь'
^ Duplicate array key listed twice

Change-Id: Id24beb982662a5e6c9e1d2b1f1e1ff637e50f2dd
2012-04-07 21:13:12 +01:00
Sam Reed
b6b807b2bc More documentation! 2011-05-29 16:32:05 +00:00
Sam Reed
6869bd5893 More documentation! 2011-05-29 15:59:47 +00:00
Sam Reed
f54cfa1001 More documentation! 2011-05-29 15:53:18 +00:00
Platonides
82fb370dfc Changes to doc-comments. /* to /** in language folder. 2011-05-22 22:05:18 +00:00
Sam Reed
15f4f6f360 Explicitally define some variables
Function documentation
2011-02-18 23:21:48 +00:00
Sam Reed
6b3b915353 Big attack on unused variables... 2010-10-14 20:53:04 +00:00
Sam Reed
22764a53f8 Braces, spaces, and a few unused arrays 2010-09-21 06:55:49 +00:00
Platonides
d3e1536f46 Follow-up r72561. Missed language folder. 2010-09-07 22:39:05 +00:00
Sam Reed
e476b51e3a Stylize languages/*, languages/classes/*, but not languages/messages/* 2010-07-29 09:43:18 +00:00
Tim Starling
750b8f7c04 In LanguageConverter:
* Rewrote convertArray() as an RD parser (with inline tokenizer) as suggested on CR r60986. Fixes unclosed rule issue (with parser test). Fixes O(N^2) timing.
* Removed $this->mMarkup abstraction. Life is complicated enough as it is.
* Replaced a couple of instances of explode() with StringUtils::explode(), limited element count in a couple more.

In ConverterRule:
* Removed mConvTable initialisation from the constructor, unnecessary
* Optimised the "-{xxx}-" tight loop by replacing function calls such as count() and in_array() with language constructs such as isset(). Reduced execution time from 356us to 275us.
* Cached $varsep_pattern for further reduction to 243us.
* A couple more parseFlags() hacks brings it back to 230us.
* Split out $this->mVariantFlags from $this->mFlags. Rearranged flag detection into a foreach/switch to avoid unnecessary isset() calls. 189us.
* Added a special-case optimisation to generateConvTable() for the case where there are no tables defined inline in the article. 116us.
* Fixed bug from r37499: "!R || !N" is always true since they are mutually exclusive, "!R && !N" was intended (with parser test).
* Fixed E_NOTICE from "-{N|foo}-"
2010-01-19 02:36:33 +00:00
Mark A. Hershberger
c568220e61 Refactor LanguageConversion so that title conversion isn't so flimsy. Pull MagicWord detection into Parser->doDoubleUnderscore() && remove ParserConvert. 2010-01-07 04:13:14 +00:00
Philip Tzou
205ef1ba8b 1. Use param $ignoreOtherCond instead of $forTemplate and $ignoreSubmitCond in findVariantLink().
2. Drop some duplicate categories produced by findVariantLink().
2009-02-02 07:54:43 +00:00
Philip Tzou
a31dceccc9 To find an available category name during update table 'categorylinks'. Just act on the language which enabled LanguageConverter. 2009-02-02 06:53:49 +00:00
Ilmari Karonen
34fb6297cd Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
This is a global search and replace of NS_IMAGE and NS_IMAGE_TALK with NS_FILE and NS_FILE_TALK respectively in all core files, excluding those already updated in step 1 (r44004).
2008-12-01 17:14:30 +00:00
Andrew Garrett
c06afd56b3 Revert "Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions."
Uses $dir in extension files, and assumes that it remains unchanged in require_once( 'maintenance/commandLine.inc' ).
In fact, it is likely that '$dir' will be set when setting up command-line, as some extensions will use the same var.

Recommended fix: Use $CentralAuth_dir, $EmailPage_dir, etc.
2008-11-30 03:15:22 +00:00
Siebrand Mazeland
daaa7f37a1 Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions. 2008-11-26 23:17:15 +00:00
Alexandre Emsenhuber
05b0fbd558 (bug 15303) Title conversion for templates wasn't working in some cases 2008-08-25 18:06:54 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Siebrand Mazeland
555019a2c6 remove EOL whitespace, and excess empty lines 2008-05-17 17:10:18 +00:00
Raimond Spekking
e828d1b011 Localisation updates Kazakh
Bug 12145, patch by AlefZet
2008-04-29 05:39:35 +00:00
Raimond Spekking
70ab71ec3a Localisation updates Kazakh translations
(bug 12145) Patch by AlefZet
2008-01-14 14:22:32 +00:00
Shinjiman
9320470247 * (bug 12145) Update Kazakh translations
Patch by AlefZet
2008-01-11 14:16:42 +00:00
Bertrand Grondin
f12a2961a7 Patch update Kazakh language by AlefZet 2008-01-07 05:16:01 +00:00
Raimond Spekking
47ac190a5e * (bug 12145) Update Kazakh translations
Patch by AlefZet
2008-01-02 15:15:26 +00:00
Bertrand Grondin
486b42b455 Patch submitted by AlefZet - Update internazionalisation files. 2007-12-30 16:24:26 +00:00
Brion Vibber
4dd96b58aa Load additional local translation tables in constructor instead of in a function that's only called sometimes when cached data *isn't* available.
Keeps things working and not spewing horrible errors everywhere when a caching system is available.
2007-12-27 22:46:23 +00:00
Niklas Laxström
e93bdac4bb * Fix notices, whitespace 2007-12-24 13:33:38 +00:00
Raimond Spekking
dc161492db * (bug 12145) Update Kazakh translations
Patch by AlefZet
2007-12-17 15:31:32 +00:00
Shinjiman
2c1a553c5e * (bug 12145) Update Kazakh translations
Patch by AlefZet
2007-12-09 23:40:17 +00:00
Shinjiman
640d73a46b * (bug 12145) Update Kazakh translations, adding kk-variants
Patch by AlefZet
2007-12-09 16:24:35 +00:00
Shinjiman
612d2816f4 * (bug 12145) Update Kazakh translations
Patch by AlefZet
2007-12-02 10:48:34 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Raimond Spekking
ac96ce4ec6 * (bug 7859) Update Kazakh translations
Patch by AlefZet
2007-05-08 20:57:41 +00:00
Raimond Spekking
57c8cb3e38 BOM :-( 2007-05-01 15:02:44 +00:00
Raimond Spekking
1d84493cd1 * (bug 7859) Update Kazakh translations
Patch by AlefZet
2007-05-01 09:45:11 +00:00
Raimond Spekking
9fd667fcdc * (bug 7859) Update Kazakh translations
Patch by AlefZet
2007-04-29 20:57:38 +00:00
Raimond Spekking
0779534b06 * (bug 7859) Update Kazakh translations
Patch by AlefZet
2007-04-28 05:05:24 +00:00
Raimond Spekking
a9d2de0964 * (bug 7859) Update Kazakh translations
Patch by AlefZet
2007-04-26 04:54:50 +00:00
Leon Weber
eec08456e7 * (bug 7859) yet another kazakh localisation patch. 2007-01-21 09:55:14 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Robert Stojnić
5b2a644f2e More lang variant stuff:
* More parser tests, also added 'variant' option for testing
* Add global $wgDefaultLanguageVariant, can be used to set a default
  fallback variant
* Restructured some of the parser code in LanguageConverter, fix flag
  processing and add some comments to despookify the old zh code :)
* Cleanup of some old hacks in LanguageSr and Kk (do not use the global 
  title object, but the one passed to the parser)
2007-01-01 17:20:19 +00:00
Rotem Liss
b704b9ea22 (bug 7859) Updates for Kazakh i18n 2006-11-24 15:06:50 +00:00
Tim Starling
e5b2e9f447 Applying patch (slightly modified) from bug 8003 by AlefZet. The patch is clearly necessary, but I'm not sure if it is sufficient. Also fixed indenting. 2006-11-22 09:06:24 +00:00
Tim Starling
2f12a58d93 * Introduced StringUtils.php, populated it with some generic string functions, both new and collected from various other files.
* Removed some backtracking regexes with an O(N^2) worst case, replaced with StringUtils::delimiterReplace(). There is a beneficial functional difference: /*/ is no longer considered to be a complete CSS comment.
* Changed the parser strip state from an array to an object. This should hopefully avoid the PHP bugs with array references. StripState uses the new ReplacementArray to do the replacements, thereby supporting FSS. 
* Removed DatabaseFunctions.php from the default startup sequence. Moved wfGetDB() to GlobalFunctions.php.
* Introduced the SiteStats class, with a collection of cached site stats accessor functions.
* Removed all global functions from Parser.php, they don't belong there.
* Made LanguageConverter use the new ReplacementArray class instead of managing its own FSS objects.
2006-11-21 09:53:45 +00:00
Rotem Liss
822b26dd80 (bug 7859) Updates for Kazakh i18n 2006-11-10 13:30:45 +00:00
Rotem Liss
95064a38ca (bug 6706) Kazakh language variants (cyrillic-latin-arabic script conversion, language and messages files) 2006-11-06 17:46:58 +00:00