Perhaps a look at git log for filetools.cpp would turn something up....I'm afraid it's a complex interaction of gettext and the use of the Messages class.
The translation of the string languageTestString() is cached, so maybe we ask for the translation of this string before gettext is initialized with the correct locale ?
Vincent