|
Translations |
Website /
I18nThe following config snippet allow for groupnames to have a suffix of a colon followed by a 2 letter lowercase country code. This is what we key internationalisation off.
$GroupPattern = '[[:upper:]\\d][-\\w]*(?:[-\\w]+)*(?::\\w{2})?';
$NamePattern=$GroupPattern;
$MakePageNamePatterns = array(
"/'/" => '', # strip single-quotes
"/[^-:[:alnum:]]+/" => ' ', # convert non-alnums to spaces
"/((^|[^-\\w])\\w)/e"
=> "strtoupper('$1')", # initial caps after spaces
"/(:.*)/e" => "strtolower('$1')", # country suffixes should be lowercase
"/ /" => '' # strip spaces
);
|