Alright, if you use libcod you can use use new makelocalizedstring function:
PHP Code:
// Find free localized string index
index = findFreeConfigStringIndex(1310, 256);
// Set configstring
setConfigString(index, level.mapcandidate[0]["mapname"]);
// Your Hud Stuff
level.votemap0 setText(makeLocalizedString(level.mapcandidate[0]["mapname"]));
findFreeConfigStringIndex(start, end)
{
for (i = start + 1; i < start + end; i++)
{
configstring = getConfigString(i);
if (!isDefined(configstring))
return i;
}
return undefined;
}
Just tested it, works quite nicely.
Or you can use the old fashioned way and replace strings on a client (iznogod's settext wrapper)