Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

[locale]possssive format translating

andelfandelf New
edited December 2010 in Vanilla 2.0 - 2.8
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
Tagged:
Sign In or Register to comment.