Commit 9316c067 authored by Côme Chilliet's avatar Côme Chilliet

feat(core) Add i modifier for Title Case

t is already in use for translit, to i will be used for Title Case

issue #5905
parent 24c95007
......@@ -450,6 +450,11 @@ class templateHandling
return $numberGenerator($args[0], $args[1], $args[2]);
private static function modifierTitleCase ($str)
return [mb_convert_case($str, MB_CASE_TITLE, 'UTF-8')];
/*! \brief Apply a modifier
* \param string $m the modifier
......@@ -560,6 +565,10 @@ class templateHandling
// number
$result = static::modifierNumber($args);
case 'i':
// title case
$result = static::modifierTitleCase($str);
trigger_error("Unkown modifier '$m'");
$result = [$str];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment