* Add Language::semicolonList() function
** Todo: combine all three list functions (comma, semicolon, pipe) into one function with a parameter? * Use pipe as backlink separator to be consistent with other navigation elements * Show the colon for case 'afh_actions' only if parameters exist ** Remove the now useless message * Localize the usages of comma and semicolon
This commit is contained in:
parent
ee13359dd5
commit
8d7026713f
1 changed files with 13 additions and 1 deletions
|
|
@ -1989,7 +1989,19 @@ class Language {
|
|||
$list,
|
||||
wfMsgExt( 'comma-separator', array( 'escapenoentities', 'language' => $this ) ) );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Take a list of strings and build a locale-friendly semicolon-separated
|
||||
* list, using the local semicolon-separator message.
|
||||
* @param $list array of strings to put in a semicolon list
|
||||
* @return string
|
||||
*/
|
||||
function semicolonList( $list ) {
|
||||
return implode(
|
||||
$list,
|
||||
wfMsgExt( 'semicolon-separator', array( 'escapenoentities', 'language' => $this ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Same as commaList, but separate it with the pipe instead.
|
||||
* @param $list array of strings to put in a pipe list
|
||||
|
|
|
|||
Loading…
Reference in a new issue