i18n improvements - still WiP though; support highly welcome ;-)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5557 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-08-07 22:53:46 +00:00
parent 31f92b1b83
commit 807f9e06dc
5 changed files with 146 additions and 130 deletions
+6 -1
View File
@@ -970,7 +970,12 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
if(pl)
{
pl->clientrole = r;
if(pl->name[0]) conoutf(_("%s claimed %s status"), pl == player1 ? _("you") : colorname(pl), r == CR_ADMIN ? "admin" : "master");
if(pl->name[0])
{
// two messages required to allow for proper german translation - is there a better way to do it?
if(pl==player1) conoutf(_("you claimed %s status"), r == CR_ADMIN ? "admin" : "master");
else conoutf(_("%s claimed %s status"), colorname(pl), r == CR_ADMIN ? "admin" : "master");
}
}
}
break;