36 $this->lang = $languageFactory->
getLanguage(
'en' );
40 return $this->lang->uc( $string );
44 if ( $string[0] ==
"\0" ) {
45 $string = substr( $string, 1 );
47 return $this->lang->ucfirst( $this->lang->firstChar( $string ) );
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
__construct(LanguageFactory $languageFactory)
getFirstLetter( $string)
Given a string, return the logical "first letter" to be used for grouping on category pages and so on...
getSortKey( $string)
Given a string, convert it to a (hopefully short) key that can be used for efficient sorting.
Language $lang
Language object for English, so we can use the generic UTF-8 uppercase function there.