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

Using the apostrophe character with {0} #55

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 1 comment
Open

Using the apostrophe character with {0} #55

GoogleCodeExporter opened this issue Apr 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Translating a string with a parameter :
#: src/name.c:36
msgid "My name is {0}.\n"
msgstr "Je m'appelle {0}.\n" 
2. Compile and run

What is the expected output? What do you see instead?

Expected is the retrieval of the string "Je m'appelle cindy.\n" but get "Je 
mappelle {0}.\n" instead.

What version of the product are you using? On what operating system?

Gettext Commons 0.9.6

Please provide any additional information below.

If we use 
msgstr "Je m''appelle {0}.\n"
, it is OK. But the double apostrophe appears on strings without parameters..

Original issue reported on code.google.com by [email protected] on 16 Oct 2012 at 9:53

@GoogleCodeExporter
Copy link
Author

0.9.8 is still affected.

Seems like "MessageFormat.format()" is the cause of it.

Original comment by [email protected] on 13 May 2014 at 9:55

victormferrara pushed a commit to tuenti/gettext-commons that referenced this issue Jun 19, 2018
victormferrara added a commit to tuenti/gettext-commons that referenced this issue Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant