aboutsummaryrefslogtreecommitdiffstats
path: root/serialized
Commit message (Collapse)AuthorAgeFilesLines
* Generate Utf8Case.ser directly from UnicodeData.txtKevin Israel2014-01-063-99/+28
| | | | | | | | | | | | | | | This allows getting rid of serialized/serialize.php. I also moved includes/normal/Utf8CaseGenerate.php to maintenance/language/ generateUtf8Case.php and updated it to subclass Maintenance, as it seems to be largely unrelated to normalization. Using version 6.0.0 of UnicodeData.txt, the updated script generates exactly the same serialized output as was previously checked in. Also updated the Makefile to reflect the current set of .ser files and added some .gitignore entries. Change-Id: I05afece3dc4505a9f43993ac4d7726b37d9c6956
* phpcs: More require/include is not a functionTimo Tijhof2013-05-211-2/+2
| | | | | | | | | | | | | Follows-up I1343872de7, Ia533aedf63 and I2df2f80b81. Also updated usage in text in documentation and the installer LocalSettingsGenerator. Most of them were handled by this regex: - find: (require|include|require_once|include_once)\s*\(\s*(.+?)\s*\)\s*;$ - replace: $1 $2; Change-Id: I6b38aad9a5149c9c43ce18bd8edbab14b8ce43fa
* style: normalize end of filesAntoine Musso2013-02-031-1/+0
| | | | | | | | | | | | By PSR2 PHP Standard, the files should ends with exactly one newline. Some of our files have 2 or more and some other were missing a newline. Fix almost all occurences of CodeSniffer sniff: PSR2.Files.EndFileNewline.TooMany I have not fixed the selenium files, I believe we will drop them. Change-Id: I89fca8c1786fee94855b7b77bb0f364001ee84b6
* Improve documentation of maintenance scripts and test suite.Alexandre Emsenhuber2012-10-021-1/+22
| | | | Change-Id: If5d695dc3665635fbed73a713583c0b03c14ebb1
* Use __DIR__ instead of dirname( __FILE__ )Hoo man2012-08-271-1/+1
| | | | | | | | 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
* (bug 28545) When using the uca-default collation, sortkey's starting with aBrian Wolff2011-09-121-1/+1
| | | | | | | space (U+20) will now sort under an invisible header like in 1.16 rather than a U+6DE (ARABIC START OF RUB EL HIZB) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/96825
* * Introduced a non-dummy collation for $wgCategoryCollation, namely UCA with ↵Tim Starling2011-01-171-0/+1
| | | | | | | | | | | | | | default tables. * Added a maintenance script which generates a list of first letters. Unified Han are omitted for performance, and because they shouldn't be used as headings anyway. A future collation specific to Chinese would provide the KangXi radicals as "first letters". * Provided a precomputed list of first letters. Used Unicode 6.0.0 data and ICU 4.2. * Moved collation functionality from Language to a Collation class hierarchy with factory function. Removed the recently-added methods from Language and updated all callers. * Changed Title::getCategorySortkey() to separate its parts with a line break instead of a null character. All collations supported by the intl extension ignore the null character, i.e. "ab" == "a\0b". It would have required a lot of hacking to make it work. * Fixed the uppercase collation to handle non-ASCII characters, redundantly with r80436. I don't think it's necessary to change the collation name as was done there, so I reverted that in the course of my conflict merge. A --force option to updateCollation.php might be nice though. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/80443
* * (bug 25708) Update case mappings and normalization to Unicode 6.0.0Niklas Laxström2011-01-091-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79889
* Fix for bug 9413 and the related Malayalam issue reported on wikitech-l.Tim Starling2010-01-042-0/+2
| | | | | | | | | | | | * Added $wgFixArchaicUnicode, which, if enabled, converts some deprecated Unicode sequences in Arabic and Malayalam text to their Unicode 5.1 equivalents. * Added generateNormalizerData.php to generate the relevant data files. Added the generated data files also. * Made most things call the new wrapper method $wgContLang->normalize() instead of UtfNormal::cleanUp(), so that Unicode normalization can be customised on a per-language basis. * Added some generic support for conversion tables to Language so that subclasses can easily implement these kinds of transformations. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60599
* * Introduced a new system for localisation caching. The system is based ↵Tim Starling2009-06-283-85/+3
| | | | | | | | | | | | | | | | | | | | | | | around fast fetches of individual messages, minimising memory overhead and startup time in the typical case. It handles both core messages (formerly in Language.php) and extension messages (formerly in MessageCache.php). Profiling indicates a significant win for average throughput. * The serialized message cache, which would have been redundant, has been removed. Similar performance characteristics can be achieved with $wgLocalisationCacheConf['manualRecache'] = true; * Added a maintenance script rebuildLocalisationCache.php for offline rebuilding of the localisation cache. * Extension i18n files can now contain any of the variables which can be set in Messages*.php. It is possible, and recommended, to use this feature instead of the hooks for special page aliases and magic words. * $wgExtensionAliasesFiles, LanguageGetMagic and LanguageGetSpecialPageAliases are retained for backwards compatibility. $wgMessageCache->addMessages() and related functions have been removed. wfLoadExtensionMessages() is a no-op and can continue to be called for b/c. * Introduced $wgCacheDirectory as a default location for the various local caches that have accumulated. Suggested $IP/cache as a good place for it in the default LocalSettings.php and created this directory with a deny-all .htaccess. * Patched Exception.php to avoid using the message cache when an exception is thrown from within LocalisationCache, since this tends to fail horribly. * Removed Language::getLocalisationArray(), Language::loadLocalisation(), Language::load() * Fixed FileDependency::__sleep() * In Cdb.php, fixed newlines in debug messages In MessageCache::get(): * Replaced calls to $wgContLang capitalisation functions with plain PHP functions, reducing the typical case from 99us to 93us. Message cache keys are already documented as being restricted to ASCII. * Implemented a more efficient way to filter out bogus language codes, reducing the "foo/en" case from 430us to 101us * Optimised wfRunHooks() in the typical do-nothing case, from ~30us to ~3us. This reduced MessageCache::get() typical case time from 93us to 38us. * Removed hook MessageNotInMwNs to save an extra 3us per cache hit. Reimplemented the only user (LocalisationUpdate) using the new hook LocalisationCacheRecache. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/52503
* * (bug 13615) Update case mappings and normalization to Unicode 5.1.0Brion Vibber2008-05-082-2/+2
| | | | | | | | | | | | | | | | | Note that case mappings will only be used if mbstring extension is not present. Normalization data files updated to Unicode 5.1.0; passes the automated tests. Seem to have long since lost the script I originally used to generate the Utf8Case.php mapping file, which appears not to have been updated since 2002 or so. :) Made a new one and moved it into the UtfNormal sub-library. Note a couple limitations: * Case mapping (still) uses only the 1:1 simple mappings. Any full or locale-specific mappings are ignored. * These case mappings are not used anyway when the PHP mbstring extension is available; mbstring's case conversion functions are used instead, with whatever version of Unicode support and whatever complex mapping support they may or may not have. * The generated Utf8Case.php file is not used directly -- you must also regenerate the serialized version in the 'serialized' directory after updating it to a new Unicode version. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/34417
* Don't allow access from the web to serialized/ directoryAlexandre Emsenhuber2008-04-161-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33420
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-292-2/+2
| | | | | | | 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.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* * Updated numbers Niklas Laxström2007-01-141-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19243
* fix for new directory structureJimmy Collins2006-10-041-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16801
* Committed a bunch of live hacks from Wikimedia serversBrion Vibber2006-10-022-0/+2
| | | | | | | | A few left, but these don't look too evil Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16738
* Merged localisation-work branch:Tim Starling2006-07-265-0/+174
* Made lines from initialiseMessages() appear as list items during installation * Moved the bulk of the localisation data from the Language*.php files to the Messages*.php files. Deleted most of the Languages*.php files. * Introduced "stub global" framework to provide deferred initialisation of core modules. * Removed placeholder values for $wgTitle and $wgArticle, these variables will now be null during the initialisation process, until they are set by index.php or another entry point. * Added DBA cache type, for BDB-style caches. * Removed custom date format functions, replacing them with a format string in the style of PHP's date(). Used string identifiers instead of integer identifiers, in both the language files and user preferences. Migration should be transparent in most cases. * Simplified the initialisation API for LoadBalancer objects. * Removed the broken altencoding feature. * Moved default user options and toggles from Language to User. Language objects are still able to define default preference overrides and extra user toggles, via a slightly different interface. * Don't include the date option in the parser cache rendering hash unless $wgUseDynamicDates is enabled. * Merged LanguageUtf8 with Language. Removed LanguageUtf8.php. * Removed inclusion of language files from the bottom of Language.php. This is now consistently done from Language::factory(). * Add the name of the executing maintenance script to the debug log. Start the profiler during maintenance scripts. * Added "serialized" directory, for storing precompiled data in serialized form. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15823