MediaWiki  REL1_22
LanguageZh_hans Class Reference

Simplified Chinese. More...

Inheritance diagram for LanguageZh_hans:
Collaboration diagram for LanguageZh_hans:

List of all members.

Public Member Functions

 formatDuration ($seconds, array $chosenIntervals=array())
 Takes a number of seconds and turns it into a text using values such as hours and minutes.
 hasWordBreaks ()
 normalizeForSearch ($s)
 segmentByWord ($string)
 Eventually this should be a word segmentation; for now just treat each character as a word.

Detailed Description

Simplified Chinese.

Definition at line 29 of file LanguageZh_hans.php.


Member Function Documentation

LanguageZh_hans::formatDuration ( seconds,
array chosenIntervals = array() 
)

Takes a number of seconds and turns it into a text using values such as hours and minutes.

Since:
1.21
Parameters:
integer$secondsThe amount of seconds.
array$chosenIntervalsThe intervals to enable.
Returns:
string

Reimplemented from Language.

Definition at line 79 of file LanguageZh_hans.php.

References array(), as, empty, Language\getDurationIntervals(), and wfMessage().

Returns:
bool

Reimplemented from Language.

Definition at line 34 of file LanguageZh_hans.php.

Parameters:
$s
Returns:
string

Reimplemented from Language.

Definition at line 57 of file LanguageZh_hans.php.

References $s, segmentByWord(), wfProfileIn(), and wfProfileOut().

Eventually this should be a word segmentation; for now just treat each character as a word.

Todo:
FIXME: Only do this for Han characters...
Parameters:
$stringstring
Returns:
string

Reimplemented from Language.

Definition at line 47 of file LanguageZh_hans.php.

References $s, and Language\insertSpace().

Referenced by normalizeForSearch().


The documentation for this class was generated from the following file: