Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[locale]possssive format translating
andelf
New
in functions.render.php I found this:
/**
* English "possessive" formatting.
* This can be overridden in language definition files like:
* /applications/garden/locale/en-US/definitions.php.
*/
if (!function_exists('FormatPossessive')) {
function FormatPossessive($Word) {
if(function_exists('FormatPossessiveCustom'))
return FormatPossesiveCustom($Word);
return substr($Word, -1) == 's' ? $Word."'" : $Word."'s";
}
}
but I can't find the file /applications/garden/locale/en-US/definitions.php.
How to do it in my locale pack? simply defining a FormatPossessiveCustom function will cause a 'function not found' error
/**
* English "possessive" formatting.
* This can be overridden in language definition files like:
* /applications/garden/locale/en-US/definitions.php.
*/
if (!function_exists('FormatPossessive')) {
function FormatPossessive($Word) {
if(function_exists('FormatPossessiveCustom'))
return FormatPossesiveCustom($Word);
return substr($Word, -1) == 's' ? $Word."'" : $Word."'s";
}
}
but I can't find the file /applications/garden/locale/en-US/definitions.php.
How to do it in my locale pack? simply defining a FormatPossessiveCustom function will cause a 'function not found' error
Tagged:
0