The Translator class, located in data/scripts/translator.lua, provides a Gettext-based
translator system. It also provides a variable LanguageTranslator of this type.
The functions, unless specicially stated, are class functions.
Don't Starve uses a custom and simplified Gettext parser and thus may not work as expected with gettext editors like POedit and Emacs. It only escapes \n, \r and ". Not even \ is escaped, causing problems when you want a literal \n (luckily the need for it would be quite rare unless someone is writing a programming tutorials mod or so.)