-
Notifications
You must be signed in to change notification settings - Fork 405
Translating
EPUBCheck 4.0 added i18n support. Feel free to translate the Java message property files to your language and then open a Pull Request or Issue in this repo.
Current translations and its (initial) maintainers:
-
en
- English- (default)
-
ja
- Japanese- Masayoshi Takahashi (@takahashim)
- Satoshi KOJIMA (@skoji)
-
de
- German- Tobias Fischer (@tofi86)
-
es
- Spanish- Emiliano Molina (@Cuadratin)
-
fr
- French- Vincent Gros (@vincent-gros)
-
it
- Italian- Alberto Pettarin (@pettarin)
- Fondazione LIA (esp. Elisa Molinari, Gregorio Pellegrino)
-
nl
- Dutch- Merijn de Haen
-
ko_KR
- Korean- Woongyoung Park
-
pt_BR
- Portuguese (Brazil)- Thiago de Oliveira Pereira (@thiagoeec)
-
da
- Danish- Marianne Gulstad (@MyDK)
-
zh_TW
- Traditional Chinese (Taiwan)- Bobby Tung (@bobbytung)*
If you think the EPUBCheck messages in your language need some improvement, please open a new Issue on GitHub and contact the localization maintainer (see list above).
We use Transifex as translation management system (see original PullRequest #479 for details) and we encourage you to join Transifex if you'd like to contribute a new language.
To do so, or to improve an existing one, please join Transifex and the EPUBCheck project on Transifex, request a new language and start translating the messages in the Transifex web app.
To test your changes in a development environment you need to set up the EPUBCheck Java repository (plus install Apache Maven, see Build for details) and install the Transifex commandline client.
Since the transifex file format and the commandline client have some issues (see 'TODOs' in #479) we have a separate Bash script which wraps the Transifex Commandline Client and normalizes the message properties files upon a transifex pull.
To run this script you need to install the Transifex Commandline Client and have a Transifex account.
Next you need to set up your Transifex API key in ~/.transifexrc
:
[https://www.transifex.com]
api_hostname=https://api.transifex.com
hostname=https://www.transifex.com
password=FILL_IN_YOUR_API_KEY_HERE
username=api
Then you need to run the wrapper script from EPUBCheck repo root directory!
e.g. ./src/build/transifex-pull.sh --all
usage: transifex-pull.sh [--all | <locale>]
examples:
transifex-pull.sh --all
transifex-pull.sh de
transifex-pull.sh ko_KR
Note for Windows users: You need a Bash Console like Cygwin, GitBash, etc. installed in order to run the EPUBCheck transifex client!
When you're finished with translation, please open a new Issue(!) on GitHub and assign @tofi86
.
@tofi86
also coordinates the Transifex localization project and can answer your questions about it.
If you don't want to join Transifex you can manually translate EPUBCheck messages. Simply duplicate the original (english) message files (MessageBundle.properties
or messages.properties
) located in
- src/main/resources/com/adobe/epubcheck/messages/
- src/main/resources/com/adobe/epubcheck/util
- src/main/resources/com/thaiopensource/datatype/xsd/resources
- src/main/resources/com/thaiopensource/relaxng/pattern/resources
- src/main/resources/com/thaiopensource/validate/schematron/resources
- src/main/resources/org/idpf/epubcheck/util/css
to MessageBundle_XX.properties
or messages_XX.properties
in its respective folder and start translating.
When testing your translation on a system whose locale doesn't match the translation locale (e.g. translating pt_BR on a en_US system) add the --locale xx_YY
argument added with EPUBCheck 4.1.0 to your java
or mvn
commandline call – e.g. java -jar epubcheck.jar --locale pt_BR test.epub
to test your new 'brasilian portuguese' translation.
When you're finished with translation, please send us a PullRequest with your changes and assign @tofi86
.