We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
fix double-escaping of newlines
319cef6
Fixes lvgl#66
Successfully merging a pull request may close this issue.
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.
The text was updated successfully, but these errors were encountered: