jgettext / gettext-commons

Internationalization (i18n) through GNU gettext and Java ResourceBundles
GNU Lesser General Public License v2.1
19 stars 10 forks source link

Arguments are not replaced when string to translate contains apostrophe #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Compare:
i18n.tr("{0}", "replacement") -> "replacement"
i18n.tr("'{0}", "replacement") -> "'{0}"

Original issue reported on code.google.com by Simon...@gmail.com on 9 Jul 2009 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by Simon...@gmail.com on 9 Jul 2009 at 7:14

GoogleCodeExporter commented 9 years ago
Saw it -- 
http://java.sun.com/javase/6/docs/api/java/text/MessageFormat.html#patterns

Has to be «quoted out»: i18n.tr("''{0}", "replacement") -> "'replacement"

Original comment by Simon...@gmail.com on 9 Jul 2009 at 7:22