spingel / gettext-commons

Automatically exported from code.google.com/p/gettext-commons
GNU Lesser General Public License v2.1
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 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 8 years ago

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

GoogleCodeExporter commented 8 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