Add "\n" parsing to i18n code. Move some code from Common.