Skip to content
New issue

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

Escape character "\" will be doubled. #49

Closed
bubeck opened this issue Oct 23, 2022 · 3 comments
Closed

Escape character "\" will be doubled. #49

bubeck opened this issue Oct 23, 2022 · 3 comments

Comments

@bubeck
Copy link

bubeck commented Oct 23, 2022

The following is an example of the problem

printf(_("Hello World\n"));

it extracts correctly to yml and is then translated

de-DE:
  Hello World\n: Hallo Welt\n

if compiled to source we get:

static lv_i18n_phrase_t de_de_singulars[] = {
    {"Hello World\\n", "Hallo Welt\\n"},

which is obviously wrong, as it should be

static lv_i18n_phrase_t de_de_singulars[] = {
    {"Hello World\n", "Hallo Welt\n"},
@bubeck
Copy link
Author

bubeck commented Oct 23, 2022

Fixed by a5c19c3
Please release new version including this fix.

@bubeck bubeck closed this as completed Oct 23, 2022
@puzrin
Copy link
Collaborator

puzrin commented Oct 23, 2022

AFAIK, release was postponed due comments in 593707d

@kisvegabor could you take a look?

@JeremiahGillis
Copy link

I ran into this bug today because I installed from npm i lv_i18n -g.

This has been fixed in the master branch. I would recommend creating a new release when you have a moment. I see the potential for others to encounter this bug who use SquadLine Studio and use multiline text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants