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 ) );
Base class for language-specific code.
__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.