PDA


View Full Version : Ho-to override 's genitive


Silvio
06-29-2008, 01:28 PM
Ciao Brian,

In my language (italian) as in many other, genitive 's is not used.

I edited vblinks phrase translation 'genitive 's' as null chr (...space or similar) so now in my board the final s is 'hidden' and not displayed at the end but I could not find the phrase relating the '

Just a practical example of the issue, this phrase reguarding usernames should be translated


{1}'s Links > I Link di {1}

but (I guess ' is hardcoded - if you can tell me where it is located I would really appreciate) the actual result is

{1}'s Links > I Link di {1}' - that is wrong

ty so much for help

ciao

larina
06-29-2008, 03:19 PM
Hi Silvio,

yes, ' is hardcoded. You can delete it by editing the file: forum/includes/vba_links_functions.php

Search for:
return $text . '\'' . iif(substr($text, -1) != 's', $vbphrase['possessive_s']);

Replace it with:
return $text . '' . iif(substr($text, -1) != 's', $vbphrase['possessive_s']);

larina

Silvio
06-29-2008, 06:32 PM
ty so much larina, really appreciated and works perfectly.

I hope in future versions this will be an user selectable option.

ciao