Open bryghtlabs-richard opened 2 months ago
If I place _("Preparing\nUpdate") in my code, lv_i18n extract works, and I'll add the German translation:
_("Preparing\nUpdate")
lv_i18n extract
en: Preparing\nUpdate: ~ de: Preparing\nUpdate: ~: Update\nvorbereiten
But it seems lv_i18n compile is over-escaping, and produces the following German table:
lv_i18n compile
static lv_i18n_phrase_t de_singulars[] = { {"Preparing\\nUpdate", "Update\\nvorbereiten"}, {NULL, NULL} // End mark };
Which encodes to:
Preparing\nUpdate
Instead of the expected:
Preparing Update
This breaks translations, as lv_i18n_get_text() is expecting an over-escaped version of the input, but passed the original input.
If I place
_("Preparing\nUpdate")
in my code,lv_i18n extract
works, and I'll add the German translation:But it seems
lv_i18n compile
is over-escaping, and produces the following German table:Which encodes to:
Instead of the expected:
This breaks translations, as lv_i18n_get_text() is expecting an over-escaped version of the input, but passed the original input.