Skip to content

Commit bf2191f

Browse files
committed
see #18864 - I18n.format: fix strings containing apostrophe U+0027
git-svn-id: https://josm.openstreetmap.de/svn/trunk@16049 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent 8d494c8 commit bf2191f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/openstreetmap/josm/tools/I18n.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private enum PluralMode {
156156
"name:(\\p{Lower}{2,3})(?:[-_](?i:(" + String.join("|", HIRAGANA, KATAKANA, LATIN, PINYIN, ROMAJI) + ")))?");
157157

158158
private static String format(String text, Object... objects) {
159-
if (objects.length == 0) {
159+
if (objects.length == 0 && !text.contains("'")) {
160160
return text;
161161
}
162162
try {

0 commit comments

Comments
 (0)