jgettext/gettext-commons

Arguments are not replaced when string to translate contains apostrophe

Closed this issue · 2 comments

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

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

  • Added labels: ComponentGettextCommons, Type-Defect
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

  • Changed state: WontFix