(String fmt, Object... args)
| 90 | } |
| 91 | |
| 92 | public static String format(String fmt, Object... args) { |
| 93 | // Single quote is used to escape curly bracket arguments. |
| 94 | |
| 95 | // - Prevents strings fixed at translation time to be fixed again |
| 96 | fmt = fmt.replace("''", "'"); |
| 97 | // - Replace ' with the escaped version '' |
| 98 | fmt = fmt.replace("'", "''"); |
| 99 | |
| 100 | return MessageFormat.format(fmt, args); |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Does nothing. |