IDPF/epubcheck — pull request #369 by takahashim (2014-06-19 03:49:38+00:00)
Title: add L10N message resources (JA)

This pull request add 4 files to translate epubcheck's messages into Japanese.

### Usage

With this patch, you can specify message language with ``-Duser.language`` option.

#### English (original)

```
$ java -Duser.language=en -jar target/epubcheck.jar src/test/resources/30/epub/invalid/invalid-ncx.epub
Validating against EPUB version 3.0 - custom validation
WARNING(CSS-022): src/test/resources/30/epub/invalid/invalid-ncx.epub/EPUB/lorem.css(2,5): CSS Selector specifies global margin setting.
WARNING(CSS-022): src/test/resources/30/epub/invalid/invalid-ncx.epub/EPUB/lorem.css(3,5): CSS Selector specifies global margin setting.
Validating using EPUB version 3.0 rules.
ERROR(RSC-012): src/test/resources/30/epub/invalid/invalid-ncx.epub/EPUB/lorem.ncx(20,46): Fragment identifier is not defined.
ERROR(RSC-012): src/test/resources/30/epub/invalid/invalid-ncx.epub/EPUB/lorem.ncx(26,46): Fragment identifier is not defined.

Check finished with errors

epubcheck completed
```

#### Japanese

```
$ java -Duser.language=ja -jar target/epubcheck.jar src/test/resources/30/epub/invalid/invalid-ncx.epub
Validating against EPUB version 3.0 - custom validation
WARNING(CSS-022): src/test/resources/30/epub/invalid/invalid-ncx.epub/EPUB/lorem.css(2,5): CSSセレクタがグローバルマージン設定を指定しています.
WARNING(CSS-022): src/test/resources/30/epub/invalid/invalid-ncx.epub/EPUB/lorem.css(3,5): CSSセレクタがグローバルマージン設定を指定しています.
Validating using EPUB version 3.0 rules.
ERROR(RSC-012): src/test/resources/30/epub/invalid/invalid-ncx.epub/EPUB/lorem.ncx(20,46): フラグメント識別子が定義されていません.
ERROR(RSC-012): src/test/resources/30/epub/invalid/invalid-ncx.epub/EPUB/lorem.ncx(26,46): フラグメント識別子が定義されていません.

Check finished with errors

epubcheck completed
```

### Copyright

The 3 files in this patch are extracted from epubcheck-3.0-ja, whose copyright holder is JEPA (Japan Electronic Publishing Association).

* com/thaiopensource/datatype/xsd/resources/Messages_ja.properties
* com/thaiopensource/relaxng/pattern/resources/Messages_ja.properties
* org/idpf/epubcheck/util/css/messages_ja.properties

cf. epubcheck-3.0-ja homepage: http://info.jepa.or.jp/document/epubcheckj (in Japanese)

In the document of epubcheck-3.0-ja, the license of there files are same as originals (Jing and epubcheck). So I think there is no problem.

The last file, com/adobe/epubcheck/messages/MessageBundle_ja.properties, is translated by @skoji, @tomochan001 and @takahashim (as commit logs). We want to contribute our work to epubcheck project.

### Note

This patch can not translate all messages of epubcheck.
* messages generated Schematron (Jing's implementation of Schematron is not support M17N feature writtein in ISO schematron specs. Annex G).
* some messages such as ``Check finished with errors`` and ``epubcheck completed``.

But it is enough to be useful for Japanese people like me, I think.