2004-09-16 20:18:49 +00:00
|
|
|
<?php
|
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
|
|
|
|
2006-07-01 19:05:46 +00:00
|
|
|
/**
|
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
|
|
|
* @ingroup Language
|
|
|
|
|
*/
|
2007-09-27 15:40:35 +00:00
|
|
|
class LanguageZh_hans extends Language {
|
2009-06-24 02:27:51 +00:00
|
|
|
function hasWordBreaks() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2004-09-16 20:18:49 +00:00
|
|
|
function stripForSearch( $string ) {
|
2009-06-24 02:27:51 +00:00
|
|
|
// Eventually this should be a word segmentation;
|
|
|
|
|
// for now just treat each character as a word.
|
|
|
|
|
//
|
|
|
|
|
// Note we put a space on both sides to cover cases
|
|
|
|
|
// where a number or Latin char follows a Han char.
|
|
|
|
|
//
|
|
|
|
|
// @fixme only do this for Han characters...
|
|
|
|
|
$t = preg_replace(
|
|
|
|
|
"/([\\xc0-\\xff][\\x80-\\xbf]*)/",
|
|
|
|
|
" $1 ", $string);
|
|
|
|
|
$t = preg_replace( '/ +/', ' ', $t );
|
|
|
|
|
$t = trim( $t );
|
|
|
|
|
return parent::stripForSearch( $t );
|
2004-09-16 20:18:49 +00:00
|
|
|
}
|
|
|
|
|
}
|