Bugfixes/1846 load messages

see #1846

This is just an attempt to optimize i18n message parsing.