You should try and use my translation engine for libcod to do that... Translations are stored serverside for easy updating, it supports 16 different languages and 1k items per language, all of which can be upped manually in the sourcecode of libcod.