Niklas Laxström
e63b0b6b58
* Made general implementation of convertGrammar general enough, so that subclasses don't need to re-implement it just to change code
2008-01-02 19:58:15 +00:00
Niklas Laxström
db2a288afe
* Convert spaces to underscores instead of breaking mysteriously
...
* (bug 8066) Spaces can't be entered in special page aliases
2007-12-22 19:46:12 +00:00
Niklas Laxström
35aa1d6d69
* Array as type hint is available only PHP 5.1 or later
2007-12-22 12:41:42 +00:00
Rotem Liss
47a3cc8b4d
Calculate the Hebrew calendar from the start of the year, not from passover.
2007-12-20 15:59:39 +00:00
Rotem Liss
8af5636aa9
Adding xjt (to check the number of days in the Hebrew month), fixing methods order, cleaning up Hebrew calendar code and comments.
2007-12-15 14:35:15 +00:00
Raimond Spekking
b5ff4ffe8f
* (bug 10166) Fix a PHP warning in Language::getMagic
...
Patch by Nate Lallouche
2007-12-06 22:16:47 +00:00
Raimond Spekking
78d45ea739
* (bug 11657) Support for Thai solar calendar
2007-12-06 20:14:36 +00:00
Niklas Laxström
a19ce2e11e
* New configuration variable $wgExtraLanguageNames
2007-12-06 16:49:48 +00:00
Brion Vibber
7bdb382024
Don't spew notices all over everything... $file variable apparently no longer exists
2007-11-30 20:29:39 +00:00
Niklas Laxström
fa669fe034
* (bug 8396) Ignore out-of-date serialised message caches
...
* MediaWiki now checks if serialized files are out of date. New configuration
variable $wgCheckSerialized can be set to false to enable old behavior (i.e.
to not check and assume they are always up to date)
2007-11-30 17:03:12 +00:00
Niklas Laxström
ae4636bed4
* Removing loop that doesn't do anything, fixes bug 7973
2007-11-30 15:42:12 +00:00
Rotem Liss
38fdc5a81f
Properly treat the end letter when creating a Hebrew numeral.
2007-11-24 11:29:19 +00:00
Rotem Liss
4bdb20efad
Fix an error on converting.
2007-11-22 09:17:13 +00:00
Niklas Laxström
6d97bfde47
* Reworked convertPlural so that it accepts variable number of arguments nicely
...
* Should also fix bug 11991
2007-11-18 20:15:49 +00:00
Brion Vibber
9477ce3a59
Instead of giving weird-ass results when an array is passed to Language::lcfirst(), only use our clever optimization if it is a string. Array will spit out annoying notices as before so you can tell what you did wrong.
2007-11-16 23:10:07 +00:00
Rotem Liss
ac259105e6
* Support for Hebrew calendar
...
* Support for Hebrew numerals in dates and times
Patch is based on part of the patch by Yaakov Shoham in Bug 8385, rewritten to match the current structure
2007-11-13 17:17:07 +00:00
Roan Kattouw
9a9349944b
It's no problem to use empty(), as long as you return $str rather than an empty string.
2007-11-13 15:07:54 +00:00
Tim Starling
537d5b9b90
revert revert (r27446): I gave the OK for this feature. sprintfDate is a big tent, supporting all languages with a general format syntax. It already has specific support for European languages in the form of genitive month names and roman numerals. There's no reason we can't extend support to other continents as well.
2007-11-13 04:05:13 +00:00
Aaron Schulz
2a90dc7160
*Check if a String and empty. This was '0' works as a title again.
2007-11-13 03:45:59 +00:00
Domas Mituzas
6db5ae1ab7
I fail to see the need of Iranian invasion to very core of code. needs to be more modular, I suppose.
2007-11-12 23:32:15 +00:00
Domas Mituzas
06907a073a
empty() is faster! :)
2007-11-12 22:50:05 +00:00
Domas Mituzas
c30a821b7a
do nothing for empty strings... how can you upper-case the void?
2007-11-12 22:45:48 +00:00
Domas Mituzas
cedb68a771
6x optimized lcfirst() \o/ though it would be far better not to call these functions too much at all :)
2007-11-12 22:34:39 +00:00
Domas Mituzas
54a855b06e
8x faster ucfirst() (function called >100 times even on simple pageviews :)
2007-11-12 22:17:50 +00:00
Rotem Liss
b55dfe354a
Fixing a comment.
2007-11-05 10:29:31 +00:00
Huji
827d6dcd86
Adds support for Iranian calendar
2007-11-04 20:44:19 +00:00
Purodha B Blissenbach
425d0a86ba
Typo in comment.
2007-10-15 10:32:54 +00:00
Rotem Liss
cdb4320fde
Removing comments that are not up to date.
2007-10-12 10:08:48 +00:00
Brion Vibber
f561740802
* (bug 11462) Fix typo in LanguageGetSpecialPageAliases hook name
2007-09-26 19:23:04 +00:00
Domas Mituzas
adef1ffd15
Apparently some languages (aawiki) end up having null $defaultUserOptionOverrides - returning empty array instead.
2007-09-16 10:17:12 +00:00
Brion Vibber
949876a196
Reverting r25772 for now.
...
The local language names as title are a cute feature, but a few problems:
* It only seems to use the values for the content language for this, though UI language would be more appropriate.
* A hojillion wfMsg() calls are made when Names.php is loaded, which feels kind of icky to me. Would trigger message cache initialization early and does a lot of extra calls not needed 99% of the time.
I'd rather only load values when required.
2007-09-11 15:22:53 +00:00
Raimond Spekking
28a081afb6
* Add function Language::getLanguageNameLocal() for the localized name of a language
...
* Add localized name of a language as title to interwiki links
2007-09-11 11:45:20 +00:00
Rotem Liss
d51c7cdace
(bug 5387) Block log items on RecentChanges don't make use of possible translations:
...
* Removing span from Language::translateBlockExpiry.
* Adding span conditionally in LogPage::actionText, and using appropriate language (interface and content).
* Removing translate parameter from LogPage::actionText: no longer needed, always translate.
2007-09-10 01:53:24 +00:00
Tim Starling
6bffc916c4
addMagicWordsByLang() -- always include english in the fallback chain
2007-09-06 00:21:49 +00:00
Tim Starling
5cb6ceee73
Allow extensions to define magic words by simply including a $magicWords variable in their registered i18n file.
2007-09-04 02:48:34 +00:00
Rob Church
0823fd898f
Update documentation for Language::truncate()
2007-08-29 01:34:44 +00:00
Tim Starling
164bb322f2
Basic integrated audio/video support, with Ogg implementation.
...
* JavaScript video player based loosely on Greg Maxwell's player
* Image page text snippet customisation
* Abstraction of transform parameters in the parser. Introduced Linker::makeImageLink2().
* Made canRender(), mustRender() depend on file, not just on handler. Moved width=0, height=0 checking to ImageHandler::canRender(), since audio streams have width=height=0 but should be rendered.
Also:
* Automatic upgrade for oldimage rows on image page view, allows media handler selection based on oi_*_mime
* oi_*_mime unconditionally referenced, REQUIRES SCHEMA UPGRADE
* Don't destroy file info for missing files on upgrade
* Simple, centralised extension message file handling
* Made MessageCache::loadAllMessages non-static, optimised for repeated-call case due to abuse in User.php
* Support for lightweight parser output hooks, with callback whitelist for security
* Moved Linker::formatSize() to Language, to join the new formatTimePeriod() and formatBitrate()
* Introduced MagicWordArray, regex capture trick requires that magic word IDs DO NOT CONTAIN HYPHENS.
2007-08-15 10:50:09 +00:00
Brion Vibber
f4f7d2f07c
* glob() is horribly unreliable and doesn't work on some systems, including
...
free.fr shared hosting. No longer using it in Language::getLanguageNames()
2007-08-08 23:08:54 +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
Aaron Schulz
d36548e2c5
*Use wfSuppressWarnings() instead of error_reporting()
2007-06-20 22:25:39 +00:00
Aaron Schulz
14508e2611
*More system date bitching
2007-06-20 20:33:44 +00:00
Brion Vibber
1e919f4299
* (bug 8577) Fix some weird misapplications of time zones.
...
{{CURRENT*}} functions now consistently use UTC as intended, while
{{LOCAL*}} functions return local time per server config or $wgLocaltimezone.
Signature dates for Japanese and other languages including weekday now show
the correct day to match the rest of the time in local time.
2007-06-15 19:07:15 +00:00
Antoine Musso
b1798062ea
* Bug 9123 : safer way when applying $wgLocalTZoffset.
...
* Add a test for Language::userAdjust()
2007-05-13 11:53:07 +00:00
Ilmari Karonen
6c693d99d9
reapply r21363, hopefully without stupid notices this time
2007-04-19 18:47:04 +00:00
Brion Vibber
fd7e5aac2d
Revert r21363; triggers PHP notices due to failed lookups for interwiki prefixes
2007-04-19 13:40:06 +00:00
Ilmari Karonen
8bd0a93609
make ->getNsIndex() check canonical namespace names too, remove now redundant explicit check from Title.php; as far as I can tell this shouldn't break anything, and arguably it'll fix some currently broken code. introduce new function getLocalNsIndex() to provide the old functionality, should anyone actually need it.
2007-04-19 10:03:32 +00:00
Greg Sabino Mullane
21b2a0ce01
Much more elegant solution for functions that are not sending a timestamp, thanks to Brion.
2007-03-28 19:54:45 +00:00
Brion Vibber
88a11fc7f5
Revert r20558: appears to be trying to treat symptoms of misformatted data being passed to Language::timeanddate().
...
Instead, find the bits that are passing raw database-format timestamps in there and make them normalize their data properly through wfTimestamp()
2007-03-28 19:14:24 +00:00
Brion Vibber
4475d36182
Revert $wgDBtimezone commits: r20688, 20689, 20690, 20691.
...
Alters behavior of wfTimestamp() and wfTimestampNow() in clearly broken ways, such that current time would not return current time anymore.
2007-03-27 19:39:37 +00:00
Greg Sabino Mullane
8e942d3f96
Do not do timezone adjustment if tz is not set - unlogged in users thus see the "local" timezone
2007-03-26 02:05:36 +00:00