Issue 55 in gettext-commons: Using the apostrophe character with {0}

6 views
Skip to first unread message

codesite...@google.com

unread,
Oct 16, 2012, 5:53:44 AM10/16/12
to gettext-co...@googlegroups.com
Status: New
Owner: ----

New issue 55 by fnicola...@gmail.com: Using the apostrophe character with
{0}
http://code.google.com/p/gettext-commons/issues/detail?id=55

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..

codesite...@google.com

unread,
May 13, 2014, 5:55:14 AM5/13/14
to gettext-co...@googlegroups.com

Comment #1 on issue 55 by azrad...@gmail.com: Using the apostrophe
0.9.8 is still affected.

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

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages