Unverified 提交 72291dbe authored 作者: Pierre's avatar Pierre 提交者: GitHub

fix : The french messages are bad genereted (not contains DB message)

Error messages are translated in `org.h2.message.DbException` by using `MessageFormat.format` method.
But the french messages are not well generated by `MessageFormat`(`{X}` are  not replaced by `param` entry). 
That is normal, because they are not well formated : the single quote wasn't been escape
This PR solves this issue by escaping the french sentences for MessageFormat.

Java documentation of MessageFormat : https://docs.oracle.com/javase/8/docs/api/java/text/MessageFormat.html
An extract:
```
Within a String, a pair of single quotes can be used to quote any arbitrary characters except single quotes. For example, pattern string "'{0}'" represents string "{0}", not a FormatElement. A single quote itself must be represented by doubled single quotes '' throughout a String. For example, pattern string "'{''}'" is interpreted as a sequence of '{ (start of quoting and a left curly brace), '' (a single quote), and }' (a right curly brace and end of quoting), not '{' and '}' (quoted left and right curly braces): representing string "{'}", not "{}". 
```
上级 7d2fd6e9
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论