Alexandre Emsenhuber
15833dafdf
Fix case of some Title methods
...
Change-Id: I1a37ffb0e8cde4deac027721b0e463585b58d634
2013-03-26 10:54:15 +01:00
Kaldari
06b0967caa
Allow the retrieval of the plural rule type for a given number
...
For example, find out which rule type should be applied for 5 items
in Arabic. The result would be 'few'.
This implementation should be non-disruptive and completely backwards
compatible (which is the main reason it isn't a lot simpler).
Change-Id: I3d72e4105f6244b0695116940e62a2ddef66eb66
2013-03-20 14:34:12 +05:30
jenkins-bot
36a7858300
Merge "Remove custom plurals for Nso and Sl in favour of CLDR"
2013-03-20 08:41:52 +00:00
Santhosh Thottingal
133f5952fd
Remove custom plurals for Nso and Sl in favour of CLDR
...
Nso - Northern Sotho
Sl - Slovenian
Plural rules were not changed. They are same in CLDR and MW
Change-Id: I0e0c84352de2de8f58af5a9147ba18b0fe1fb39a
2013-03-20 08:35:59 +00:00
umherirrender
8764b3aa7c
Remove spaces in function signature
...
Change-Id: I45aea7a7af88cd913b2f485913620a8af0ab2fed
2013-03-18 20:44:43 +01:00
Santhosh Thottingal
43f5eb600b
Move plural rules of Samogitian(sgs) to plurals-mediawiki.xml
...
* CLDR does not define plural rules for sgs.
* Port the plural rules present in LanguageSgs.php to CLDR plural
definition syntax
* Remove LanguageSgs.php
* Update the tests, reorder/rename the plural form names
Change-Id: I44658402d69a6805cdfd189fe780eadee94056c7
2013-03-18 13:41:46 +05:30
jenkins-bot
e3915cee8f
Merge "Remove Lithuanian override of plural rules"
2013-03-04 13:03:58 +00:00
Santhosh Thottingal
f3e7de1133
Remove Lithuanian override of plural rules
...
Same rules defined in CLDR plural rules
Change-Id: I2420720fe7dc42bb196bdd442839e41bf7b7c766
2013-03-04 18:11:06 +05:30
Santhosh Thottingal
406d958795
Remove custom Latvian(lv) language plural rules
...
CLDR is now in sync with MW plural rules. So no need of custom plural logic
Change-Id: I399f99ddd40eea67e981d5710658ba635f115a31
2013-03-04 16:49:02 +05:30
Santhosh Thottingal
1f650cb9b7
Update plural rules from CLDR, and correct Armenian plural rules
...
* Upgrade to revision 8007, Contains minor change - Armenian(hy) is added
* Remove MW custom plural logic from LanguageHy.php
* Add qunit test case
* Correct phpunit testcase
Change-Id: If78436fa1597e6f3b7f050c5eede4521018904c0
2013-02-14 11:37:24 +05:30
Amir E. Aharoni
2a481e74cf
Russian grammar updates
...
* Replace == with ===
* Add support for the prepositional case
* Add support for Wikidata
* Add tests
Change-Id: Ic02bfb9ce88e93775036f3d15921cedca602237c
2013-02-11 07:15:13 +01:00
Marius Hoch
05c697cbcc
(bug 44748) Load default variant tables before using them
...
Change-Id: I69c4348e66279763fccec77a68c47ebc87d33008
2013-02-07 23:10:00 +01:00
Alexandre Emsenhuber
07d46a5f65
Follow-up Idf308e82 ( e88b0fb): use wfMessage() and numParams()
...
So that it matches Language::formatDuration().
Change-Id: I7144640c93e95290600997d370a33d946897ef70
2013-01-04 13:23:20 +01:00
Liangent
e88b0fbeb3
Add LanguageZh_hans::formatDuration() for Chinese.
...
Change-Id: Idf308e82887fc1d964e08b28904e026d0b2e4217
2012-12-22 18:28:35 +00:00
Liangent
e01adbfc0b
Clean up Language::markNoConversion().
...
* IRIs are getting more and more widely used these days so Chinese
characters are also needed to be prevented from being converted
in text of external links.
* So now all markNoConversion() functions in languages with variants
do the same thing. Merge them into a single function in the
Language class and drop implementations in individual languages.
* By the way rephrase phpdoc of that function, and (bug 24798) fix
the link detection regex to use wfUrlProtocolsWithoutProtRel().
Protocol-relative regex is excluded to avoid false positives.
* Add parser test for it.
Change-Id: I2ec0ac2b9b11221584adb72555168498de209d57
2012-11-18 03:46:53 +08:00
Amir E. Aharoni
8686212781
Cleanup Hebrew grammar code a little.
...
Added comments and changed == to ===.
Change-Id: I3124bfd7341b1b3b46bb3e5215001d6967845f48
2012-11-11 10:09:37 +05:30
umherirrender
82375631c2
Fix tabs inside/between statements/text
...
This tabs are strange and a space there is better
Change-Id: I0885dff575ee2fcd0668d08fef3226e132c5b319
2012-10-26 18:18:59 +02:00
Siebrand Mazeland
4b62b0339c
Prefix new ContentHandler hooks in WikiPage with Page instead of Article
...
Covers 3 hooks:
* ArticleContentInsertComplete -> PageContentInsertComplete
* ArticleContentSave -> PageContentSave
* ArticleContentSaveComplete -> PageContentSaveComplete
Change-Id: I186669a5941d8982725ed364b481215d291b2043
2012-10-11 18:22:52 +02:00
daniel
329d5b3516
Merge branch 'Wikidata' into master.
...
This introduces the ContentHandler facility into MediaWiki,
see docs/contenthandler.txt.
For convenient review, a squashed version is available at
https://gerrit.wikimedia.org/r/27191
The ContentHandler facility is a major building block of the Wikidata project.
It has been discussed repeatedly on wikitech-l.
Change-Id: I3804e2d5f6f59e6a39db80744bdf61bfe8c14f98
2012-10-09 11:34:24 +02:00
Niklas Laxström
a719f7ef12
Add parameters to LanguageQqx-generated messages.
...
This avoids outputing bunch of unhelpful (parentheses) messages.
Change-Id: I55fab4f132f28be3fe7e4bc8f51d403b11d24284
2012-10-08 20:54:25 +00:00
daniel
a138706729
Fix usage of deprecated ArticleSaveComplete hook in core
...
Change-Id: Ic01fd95d50a909470d6f0ffd93c972322789d49a
2012-10-08 14:13:59 +02:00
daniel
c546fae8ed
merge latest master into Wikidata branch
...
Change-Id: Id4e0f40c03679c13d8934a6add99b5cd86d0437d
2012-10-08 13:58:54 +02:00
awjrichards
c381fea140
Merge "Clean up: Declare variables with public instead of var"
2012-09-28 22:25:45 +00:00
daniel
b6b686c13b
merged master
...
Change-Id: I0ef7c7f33a5dc5855f38b20c03ddc5306f38ec66
2012-09-19 12:34:10 +02:00
Siebrand
653de10de0
Merge "Removed some language files no longer needed"
2012-09-17 16:48:05 +00:00
Niklas Laxström
4b78ce0c4d
Removed some language files no longer needed
...
Only have plural defined which is same as in cldr
Change-Id: I0bacb38397af14bf413dcf4a9df0b9f3fbe4110b
2012-09-16 18:06:52 +00:00
Niklas Laxström
5e40d9cecb
Migrate hsb plural rules to cldr format
...
Change-Id: I9d1c34d8e63767a6abc4f98c09caf65d5056433a
2012-09-16 17:53:10 +00:00
Marius Hoch
652c4be7c2
Clean up: Declare variables with public instead of var
...
Variables in classes should be declared using public $foo
instead of var $foo for various reasons. As we require PHP 5.3
we don't have to take care about that PHP4 left over, but can
get rid of it in favour of the more clear and better readable
public.
See also: http://php.net/manual/en/language.oop5.visibility.php
(Divided into several commits to keep reviewable)
Change-Id: Ic723d0347ab2e3c78bc0097345c68bbee3dc035a
2012-09-14 21:00:00 +02:00
daniel
12166f46b4
merged master (2012-09-11)
...
Change-Id: I8e953eaa22f9d331b0af5e780fbeff6d702b23e3
2012-09-11 11:43:02 +02:00
Siebrand Mazeland
21b592d1ad
Replace deprecated methods.
...
Also updated code formatting.
Change-Id: I188b5d29c9496383df10c391b29e9d26e59e8aeb
2012-09-08 00:28:16 +02:00
daniel
b6fe213226
merge latest master.
...
some tests fail due to logical changes, will fix that in a follow-up
Change-Id: I8a5e4087ecf674fbcf6327c5d168cd401be12400
2012-09-05 17:50:13 +02:00
Liangent
7b6dcb21ea
Followup da433140: remove an old workaround
...
The code was to work around a bug fixed by da433140 .
Change-Id: I793cedf3d3cbc23dc5d07b3e0325ad238853385a
2012-09-04 23:39:19 +08:00
daniel
9994968774
merged master
...
Change-Id: Ib2b879c4daa17401eeeb50767c0e5a54254855c3
2012-08-29 15:20:15 +02:00
Daniel Kinzler
392af46809
Revert "merged master"
...
This reverts commit 67bfdc7a68
2012-08-29 13:14:49 +00:00
daniel
67bfdc7a68
merged master
...
Change-Id: Ib2b879c4daa17401eeeb50767c0e5a54254855c3
2012-08-29 12:06:38 +02:00
Hoo man
8ffbb077b3
Use __DIR__ instead of dirname( __FILE__ )
...
Removed left over uses of dirname( __FILE__ ) to __DIR__, even in comments.
Running the PHP version test in maintenance/Maintenance.php earlier, so that
we no longer have to stay PHP < 5.3 compatible in there.
Change-Id: I5a00bd5c6af44b7f826c4e5576a7b3de7b5026d8
2012-08-27 23:58:28 +02:00
jeroendedauw
38c7f444e1
Use __DIR__ instead of dirname( __FILE__ )
...
We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :)
Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1
2012-08-27 21:45:00 +02:00
daniel
29719f846b
merging latest master
...
Change-Id: I36b7f2f63ab8c08f8412d521dc68ea45c8b67711
2012-08-20 16:55:28 +02:00
Santhosh Thottingal
bbbcf089db
CLDR Plural rules based plural form calculation
...
* Use the plurals.xml of CLDR for the plural rules of languages
* Use plurals-mediawiki.xml to override or extend the rules inside MW
* Remove the convertPlural method in each LanguageXX.php
* Parse and load the xml files in LocalisationCache
* Use the CLDRPluralRuleEvaluator.php for parsing the cldr plural rules
(This is taken from Translate extension and might require a replacement
parser without using eval)
* Add getPluralRules() to make the CLDR plural rules available to JS.
PS3: More method documentation, cleanup
Change-Id: I58a9cdfe60c7b9027bf031c91370472054f04ae2
2012-08-16 11:45:17 +10:00
robin
96c5ca4725
Add rule in Uzbek language converter
...
Per user feedback, make sure yo? gets converted to ??, and not to ???
Change-Id: I7a161cfd4c2bc782091ef3844ff5facf0cf27278
2012-08-10 22:59:59 +02:00
daniel
c0b50eb47d
merged master
...
Change-Id: I6afafe971afb3f38fc8f1e66ba409283b8a698f8
2012-08-02 11:01:22 +02:00
robin
c6156c4b06
Add language converter for Uzbek.
...
Also add tests per Hashar, based on the Serbian file but less since
Uzbek does not have "variant guessing" or custom plural rules.
Change-Id: I27da994b88fbe13cfb7df12851e704d881397666
2012-07-27 15:59:13 +02:00
daniel
3d58f903d8
Merge branch 'master' of ssh://gerrit.wikimedia.org:29418/mediawiki/core into Wikidata
2012-06-11 17:45:59 +02:00
Alexandre Emsenhuber
a9d92e0960
Added missing GPLv2 headers in some places.
...
Also made file/class documentation more consistent.
Change-Id: I162f57c994765189681ac3fb30f889e648c6c6a1
2012-06-10 19:40:03 +02:00
Alexandre Emsenhuber
b7ed0276e5
Added missing GPLv2 headers in some places.
...
Also made file/class documentation more consistent.
Change-Id: I82ee132a976cfeb3d77ce551295bf6d2d90e14da
2012-06-09 22:24:16 +02:00
Alexandre Emsenhuber
1e69ac22e2
Added missing GPLv2 headers in some places.
...
Also made file/class documentation more consistent.
Change-Id: I4228ed95446558db71e9084e7d505fc0b783fa53
2012-06-08 22:43:32 +02:00
daniel
2679bd942c
Merge branch 'master' of ssh://gerrit.wikimedia.org:29418/mediawiki/core into Wikidata
2012-06-07 16:36:58 +02:00
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
Alexandre Emsenhuber
32eaef76b4
Added missing GPLv2 headers in some places.
...
Also made file/class documentation more consistent.
Change-Id: I7144b26103ef644fbec751ea476760566757cae3
2012-06-06 22:44:55 +02:00
jeroendedauw
a7e28d2011
merged master
...
Change-Id: I4cf7b0f87cd571a6b50f66995dd9ad987a6ecdf8
2012-06-06 16:44:15 +02:00
awjrichards
c29fd59775
Big oops - merged to wrong branch.
...
Revert "Revert to arbitrarily old point before initial remote branch creation to help clean up"
This reverts commit ee0d3d330f
2012-06-05 22:58:54 +00:00
Alexandre Emsenhuber
52aa2aaba1
Added missing GPLv2 headers in some places.
...
Also made file/class documentation more consistent.
Change-Id: Ie60ee0a8137d750a66892ea5b0cc751c74d662f9
2012-06-05 22:18:51 +02:00
awjrichards
ee0d3d330f
Revert to arbitrarily old point before initial remote branch creation to help clean up
...
Change-Id: I41a3d1e55d3ea9dffa42451237fe065f9334361d
2012-06-02 08:43:04 -07:00
Antoine Musso
0ec77e2b31
(bug 37194) remove obsoletes *.deps.php
...
PHP had a nasty bug related to late/early binding and referenced at
https://bugs.php.net/bug.php?id=56776 . The workaround was to add some
.deps.php files to make sure code is loaded early.
Upstream PHP issue #56778 was fixed in PHP 5.1.
See also:
http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
Change-Id: I4c85f65c6b5f3df3218bb107881547d44f0cf107
2012-05-29 14:05:03 +02:00
jeblad
58912f8148
fixed from one error to another, clumsy me..
2012-05-12 23:08:56 +02:00
jeblad
ed68864ecd
Minor spelling correction
2012-05-12 21:04:51 +02:00
Siebrand
051bd65948
Merge "Minor whitespace fix"
2012-04-07 20:19:25 +00:00
Reedy
0a0d84b6b4
Minor whitespace fix
...
Change-Id: I0329dc06f9b809475197434dc7fbd715badec3f7
2012-04-07 21:16:33 +01:00
Reedy
90db885789
'/Şçʹ/u' => 'Щь'
...
^ Duplicate array key listed twice
Change-Id: Id24beb982662a5e6c9e1d2b1f1e1ff637e50f2dd
2012-04-07 21:13:12 +01:00
Sam Reed
c27fbf5330
Trim trailing whitespace
...
Add/improve documentation
Explicitly define a few variables
Change-Id: If0017770a0a47f8f6be178b5bde8ae6691f74b6a
2012-03-21 15:47:05 -07:00
Roan Kattouw
311200ee2c
Revert r114067, r114071, r114075, r114079, r114081, r114082, r114084, r114086, r114088, r114089, r114101, r114118, r114137, r114147, r114164, r114172, r114175, r114180, r114208, r114209, r114215, r114219, r114226, r114321, r114322.
...
This reverts the SpecialCachedPage and formatDuration sagas, with some collateral damage here and there. All of these revisions are tagged with 'gerritmigration' and will be resubmitted into Gerrit after the Gerrit switchover. See also http://lists.wikimedia.org/pipermail/wikitech-l/2012-March/059124.html
2012-03-20 23:03:59 +00:00
Sam Reed
a2dc33a5a3
Trim trailing whitespace
...
Add/improve documentation
Explicitly define a few variables
2012-03-17 22:52:54 +00:00
Sam Reed
dedc5a1613
Add to documentation
...
Add a couple of braces
Update code calling Language related deprecated code
2012-03-05 19:17:55 +00:00
Amir E. Aharoni
c53ad1a3ac
== comparison for all languages, instead of ===, according to Niklas' suggestion. Follow up to r110485, r110492, r110461.
2012-02-02 14:42:48 +00:00
Antoine Musso
fc6bc233be
Fix doxygen docs before REL1_19 branching
2012-02-01 20:53:38 +00:00
Amir E. Aharoni
669db9a186
Fixes r110484.
2012-02-01 15:53:59 +00:00
Amir E. Aharoni
655dbec995
Fixed plural rules for Romanian / Moldovan according to CLDR. Added tests for Romanian and fixed tests for Moldovan.
2012-02-01 15:37:40 +00:00
Amir E. Aharoni
11c69ac6c4
Integer comparison in Hebrew plural forms.
2012-02-01 15:36:00 +00:00
Amir E. Aharoni
780dc34caf
"isset( $forms[2] )" is not needed - plural is filled in preConvertPlural if dual is not provided.
2012-01-31 14:47:12 +00:00
Santhosh Thottingal
4682c16bc3
Followup r110279. $count % 100 in 1..19 is few form.
...
In r110279, it was 2..19.
2012-01-30 13:51:04 +00:00
Santhosh Thottingal
4f2eaa8d80
For Moldavian $count % 100 < 20 is not 'few' form, but $count % 100 in 1..19 is few form.
...
This was causing 200 considered as 'few' form, while it should be 'other' form as per
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#mo
Add phpunit test cases for LanguageMo plural rules
2012-01-30 11:34:36 +00:00
Amir E. Aharoni
8c5c8d1b8f
Follow up to r109021, corrected the comment, and added a translation from Russian.
2012-01-16 10:45:01 +00:00
Santhosh Thottingal
0047c07b39
reintroduce the shortcut evaluation removed in r108403 and r108405
2012-01-16 10:05:48 +00:00
Amir E. Aharoni
3af279116e
Improved the comment about the two-forms plural shortcut.
2012-01-16 09:46:56 +00:00
Amir E. Aharoni
2e0a3d8b08
A bit of documentation.
2012-01-14 22:32:18 +00:00
Sam Reed
3f704bbe0b
Fix whitespace
...
Fix/improve documentation
2012-01-10 18:42:59 +00:00
Santhosh Thottingal
1605b61f8f
Make the javascript implementation of Macedonian(mk) plural consistant with php side rule.
...
Add a todo in php code since the rules differs from CLDR definition for mk plural.
2012-01-10 04:25:21 +00:00
Santhosh Thottingal
266c6e8515
Cleanup the convertPLural method for Lithuanian(lt)
...
Add phpunit test cases.
2012-01-09 12:46:53 +00:00
Santhosh Thottingal
3f3766bcae
Latest version of CLDR got 6 rules for Welsh(cy). So removing fixme.
...
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#cy
2012-01-09 10:11:54 +00:00
Robin Pepermans
4acc1a7870
Add some letters per https://incubator.wikimedia.org/w/index.php?diff=666382&oldid=664736
2011-12-22 01:27:59 +00:00
Sam Reed
5bd492d51c
"else if" to "elseif"
2011-11-25 00:15:27 +00:00
Antoine Musso
464d9c071b
bug 28643 improvement to serbian variants conversion
...
This patch is a PARTIAL merge of /branches/nikola/phase3 ::
r85224 avoid double conversion when text already use the correct variant
r85239 minor fixes to previous
r85308 documentation (@since 1.18 update to 1.19)
r101359 guessVariant doc + boolean typecast
r101369 tests
r103131 additional test
Test plan:
==========
$ ./phpunit.php --filter LanguageSr
PHPUnit 3.6.3 by Sebastian Bergmann.
Configuration read from /srv/trunk/tests/phpunit/suite.xml
.....
Time: 1 second, Memory: 78.50Mb
OK (5 tests, 19 assertions)
$
2011-11-16 15:12:00 +00:00
Platonides
f0f28d3dcb
Delete LanguageSr_el.deps.php. LanguageSr_ec.php doesn't
...
contain any base class used in LanguageSr_el. Not even in r13157.
2011-11-08 23:23:23 +00:00
Sam Reed
1c6f95fec3
Documentation
...
Explicit member variable definitions
Simplify some code
2011-10-18 17:27:52 +00:00
Sam Reed
ebaad11e83
Update documentation, returns
2011-10-14 21:19:25 +00:00
Brion Vibber
9e9e35923a
Revert r84057, r84080, part of r99074: lc() and uc() custom handling for Turkish breaks case-insensitive matches of special page names and parser function keywords (bug 31490)
...
Deleted extra bug file as that was updated in r99289
2011-10-08 00:30:50 +00:00
Tim Starling
4b52449970
Fixes for r84057 LanguageTr uc/lc:
...
* Fixed inappropriate use of empty(), see style guide
* Made uc() and lc() respect the $first parameter. Not doing this completely broke the Turkish wikipedia, sending links like [[İngilizce]] to [[İngİlİzce]].
* Use str_replace() instead of preg_replace(). It's not necessary to use a unicode-aware replacement algorithm to do UTF-8 string replacements, due to details of the UTF-8 encoding format. I'm not sure how Hashar concluded that strtr() will produce garbage.
2011-10-06 02:31:38 +00:00
Niklas Laxström
5fd6c07d09
* (bug 30846) New LanguageOs class
2011-09-19 17:00:42 +00:00
Robin Pepermans
3d99669908
Conversion script between Tifinagh and Latin for the Tachelhit language
...
Preferences: made getLanguageNames include those that don't have a Messages file
2011-09-10 04:09:20 +00:00
Niklas Laxström
dee6d315f8
Array indexes start from zero
2011-07-16 11:40:28 +00:00
Robin Pepermans
2deecd2f96
Follow-up r92068: svn:eol-style:native, and use round bracket
2011-07-13 17:58:27 +00:00
Robin Pepermans
0b1ebe5690
(bug 15802) An easy way to look up messages: language qqx which returns the message keys
...
(It doesn't show up in preferences, but you can use ?uselang=qqx)
Patch by Conrad Irwin (slightly modified)
2011-07-13 17:46:13 +00:00
Chad Horohoe
69fd49f825
Revert r86623: merging Serbian language improvements to trunk. Per CR: this needs some tests, and I really don't know what's going on here well enough to write them :)
2011-06-28 12:00:04 +00:00
Sam Reed
8bfd19b451
Swap else if for elseif
...
Trimming trailing whitespace also
Doing in 3 commits (3/3), so hopefully reviewable in CR...
2011-06-17 16:05:35 +00:00
Robin Pepermans
91062cc0b8
Follow-up to r75241 / 75241: rename LanguageBat_smg to LanguageSgs
2011-06-10 22:33:49 +00: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
Sam Reed
117fb34efc
Some language love
2011-05-29 15:21:03 +00:00
Sam Reed
45b8f9a3cf
Some language love
2011-05-29 15:20:43 +00:00
Sam Reed
810610a153
Some language love
2011-05-29 15:03:33 +00:00
Platonides
82fb370dfc
Changes to doc-comments. /* to /** in language folder.
2011-05-22 22:05:18 +00:00
Siebrand Mazeland
75c6696aa8
Use consistent notation for "@todo FIXME". Should update http://svn.wikimedia.org/doc/todo.html nicely.
2011-05-17 22:03:20 +00:00
Robin Pepermans
6837668a40
Fix for r86670: properly convert uppercase latin to syllabics
2011-04-25 19:00:53 +00:00
Sam Reed
8e80b8c3c1
Tidy up some unused variables and such
2011-04-23 21:40:52 +00:00
Robin Pepermans
cfc9b193a1
Conversion script between Syllabics and Latin for the Inuktitut language
2011-04-21 21:21:32 +00:00
Chad Horohoe
0327a95ea1
(bug 28643) Merge Serbian language variant conversion improvements to trunk (r85224, r85239, r85308) from Nikola's branch
2011-04-21 14:02:38 +00:00
Paul Copperman
efb8c6b899
Fix some Notices:
...
* LanguageKaa.php: Fix ucfirst and lcfirst for empty strings.
* SkinTemplate.php: Fix undefined array access.
* ProxyTools.php: When running hiphop in cli mode, apache_request_headers() returns null. Fix wfGetForwardedFor() to account for that.
2011-04-11 16:49:36 +00:00
Antoine Musso
97783870bc
Makes LanguageTr uc & lc match parent declaration
...
Methods were introduced in r84057 which, unfortunatly was tested with
PHP errors disabled :\
Additionally add tests for the full Turkish alphabet based on an article
from Wikipedia http://en.wikipedia.org/wiki/Turkish_alphabet
2011-03-16 07:38:15 +00:00
Antoine Musso
3e6e06a3bb
bug 28040 Turkish: properly handle dotted and dotless i
...
As mentioned by Bawolff on code review, r83970 only handled case change
of the first character lacking full strings support.
This patch override the uc and lc methods for the Turkish language (tr)
using preg_replace() which know about unicode. Other possible choices
would have been:
- strtr() => outputs garbage
- mbstring => can not know we handle turkish and transform i to I!
I have amended the RELEASE-NOTES to reflect this patch.
Some new tests are added as well to cover the regular functions as
well as the specific Turkish overriding. Result in testdox:
LanguageTr
[x] Change case of first char being dotted and dotless i
[x] Language tr lower casing override
[x] Language tr upper casing override
[x] Upper casing of a string with dotted and dot less i
[x] Lower casing of a string with dotted and dot less i
2011-03-15 21:56:54 +00:00
Antoine Musso
b8522fac08
bug 28040 Turkish: properly lower case 'I' to 'ı' (dotless i)
...
Turkish has two different i, one with a dot and another without a dot. They
are totally different letters in this language, so we have to override the
ucfirst and lcfirst methods.
See http://en.wikipedia.org/wiki/Dotted_and_dotless_I
Credits to #wikipedia-tr users berm, []LuCkY[] and Emperyan
2011-03-14 22:14:39 +00:00
Niklas Laxström
158dc1b3cd
Fix bug that caused "Non-string key given" exception.
...
Broken since introducsed in r10810 almost six years ago.
This proves that the exception in message caches is valid and covers errors.
Tested that exception is no longer thrown.
2011-02-26 08:19:21 +00:00
Alexandre Emsenhuber
6cf384a749
* (bug 27560) Search queries no longer fail in walloon language
2011-02-19 20:06:50 +00:00
Sam Reed
15f4f6f360
Explicitally define some variables
...
Function documentation
2011-02-18 23:21:48 +00:00
Chad Horohoe
d15b8f962c
Merge callback fixes from 1.17wmf1. /e is evil.
2011-02-11 10:27:07 +00:00
Purodha B Blissenbach
0ed585bdaa
Typo in a comment.
2011-02-05 22:27:34 +00:00
Sam Reed
e07e24c316
Followup r74519, fixup code style issues
2010-12-31 07:25:51 +00:00
Niklas Laxström
cd6753234d
New plural rules
2010-12-18 14:34:43 +00:00
Antoine Musso
d4a07fe0cf
revert r71054. Although unused, the variable might be used later.
2010-11-13 13:13:12 +00:00
Sam Reed
6b3b915353
Big attack on unused variables...
2010-10-14 20:53:04 +00:00
Alexandre Emsenhuber
0ef95c5586
Added description to language classes
2010-10-10 12:53:37 +00:00
Purodha B Blissenbach
733d862dfe
More documentation.
2010-10-08 17:51:23 +00:00
Purodha B Blissenbach
5f1a69c3cc
ConvertGrammar() added to LanguageKsh.php
2010-10-08 14:34:56 +00:00
Sam Reed
22764a53f8
Braces, spaces, and a few unused arrays
2010-09-21 06:55:49 +00:00
Sam Reed
d8d7065a15
Revert commenting out in r72239 (leaving whitespace changes
2010-09-11 20:54:13 +00:00
Platonides
d3e1536f46
Follow-up r72561. Missed language folder.
2010-09-07 22:39:05 +00:00
Sam Reed
b7b548cedf
Comment out some unused array declarations
...
Move some comments
2010-09-02 22:20:00 +00:00
Alexandre Emsenhuber
954ef59e62
* (bug 24804) Corrected commafying in Polish and Ukrainian
2010-08-21 14:57:08 +00:00
Brion Vibber
fca83f7741
My first commit in weeks and it's got a typo ;)
2010-08-13 23:39:27 +00:00
Brion Vibber
95081de751
More explanatory (and English ;) doc comments for Esperanto surrogate conversion in LanguageEo::iconv()
2010-08-13 23:37:45 +00:00
Sam Reed
96edd5f50c
Remove unused $voicedPhonemes
2010-08-13 23:30:53 +00:00
Sam Reed
380b6725d5
Remove some unused variables
...
Move variable in languages/classes/LanguageKu.php into commented code (used in comment)
2010-08-13 20:58:16 +00:00
Sam Reed
6e6e0ed520
Switch /e preg_replace for callbacks
...
Swap "and" for &&
2010-08-13 09:46:08 +00:00
Sam Reed
e476b51e3a
Stylize languages/*, languages/classes/*, but not languages/messages/*
2010-07-29 09:43:18 +00:00
Sam Reed
f4f5d17105
A few more wrong static things
...
Remove some =& from LanguageKk_cyrl
2010-07-25 21:15:27 +00:00
Sam Reed
8b8500c121
More self:: to $this->
2010-07-25 18:13:56 +00:00
Sam Reed
6afa6c6ab5
Fix some wrong usages of static method calls (actually belong to class instance)
2010-07-25 18:00:32 +00:00
Philip Tzou
279a29cdc1
1. Fix the underline bug in the title(namespace) conversion, which displayed title like "User_talk:Example".
...
2. Improve the function of namespace conversion. Allow admins to custom namespace conversion in MediaWiki's messages([[MediaWiki:conversion-nsX]]).
2010-07-06 05:00:15 +00:00
Alexandre Emsenhuber
8cc340437e
Fixed some doxygen warnings
2010-06-13 21:13:07 +00:00
Niklas Laxström
56ad7335db
Array indexes start from zero
2010-06-13 20:23:53 +00:00
Alexandre Emsenhuber
3065e28d2d
Fixed some doxygen warnings
2010-06-05 19:15:50 +00:00
Platonides
551902b22b
Bug 23707: Zero items is plural in brazilian portuguese, bug 7309 was wrong.
2010-05-29 18:58:29 +00:00
Siebrand Mazeland
923329f60f
(bug 23156) Commafy and search normalization update for Belarusian (Taraškievica). Contributed by Jaska Zedlik.
2010-04-12 21:12:34 +00:00
Tim Starling
410736b38f
Fix total breakage of search engine in zh wikis due to incorrect variable name
2010-04-10 13:16:49 +00:00
Mark A. Hershberger
560b72c4ab
* Implement normalization of fullwidth latin characters for all Languages, not just Japanese and Chinese.
...
* Tune Language::convertDoubleWidth() so that it is 8-10x faster. (See http://xrl.us/bg2mon )
2010-03-23 19:50:59 +00:00
Mark A. Hershberger
54badce2d8
Follow-up r61856
...
* Rename wordSegmentation() to segmentByWord().
* Consolidate search index locking and iteration to Maintenance.php
* Add maintenance/updateDoubleWidthSearch.php to take care of new
format for normalized double-width roman characters.
* Add error checking to updateSearchIndex.php for creating $posFile.
* Add note to UPGRADE about running updateDoubleWidthSearch.php.
2010-03-10 21:54:23 +00:00
Mark A. Hershberger
92ed21f0ab
follow-up r61856 — wordsegmentation should be done for all search engines, not just mysql
2010-03-09 04:19:55 +00:00
Philip Tzou
b1efb02e12
Follow up r61856, no need.
2010-02-02 15:26:20 +00:00
Philip Tzou
d6b6766f3a
Follow up r60742, r60743, r60764, r60766, r61214, r61390. Split stripForSearch into wordSegmentation and normalizeForSearch. So the wordSegmentation could be called by search engines separately.
2010-02-02 15:09:01 +00:00
Tim Starling
1603ed2f22
Fixes for r60599:
...
* Split $wgFixArchaicUnicode into two separate variables, one for Malayalam and one for Arabic
* Clarified documentation and switched them both on by default
* Removed accidentally added variable LanguageAr::$normalizeArray
2010-01-20 01:50:16 +00:00