|
Change $name to "$name's" depending on language:
Spanish and English
function genitive($name)
{
switch(setlocale(LC_ALL,null))
{
case 'es_ES':
return ' de '.$name;
break;
default:
if(strtolower(substr($name,-1))=='s')
{
return $name."'";
}
else
{
return $name."'s";
}
break;
}
}
Sign up to add your own comment here!
|
|