You can localize your text (one identifier-string in your code - multiple languages in the game).
However, you need to precache your localized string in your script (precacheString() iirc) and you have to add your translations in a file, i guess it was somename.localized or sth like that.
You also could use libcod for that.