• Pierre's avatar
    fix : The french messages are bad genereted (not contains DB message) · 72291dbe
    Pierre 提交于
    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 "{}". 
    ```
    72291dbe
名称
最后提交
最后更新
h2 Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
README.md Loading commit data...