View Single Post
Old 09-22-2023, 07:26 AM   #489
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,218
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by Doitsu View Post
If you add a "locale": "fr", entry...
EPUBCheck (the command line tool) treats the 'locale' argument in a curious way (to be honest, looks like a bug to me). First, it already defaults to your system locale, so no need to use the 'locale' argument. But, if you try to explicitly set it to be the same as your system's locale, then English is used instead.

For example: my system locale is 'pt_BR'; if I run it like below, messages will be in English.

Code:
java -jar epubcheck.jar -locale 'pt_BR' book.epub
Now, if I remove the 'locale' argument, then Portuguese is used. If you choose a locale that is different from your system's, then it works as expected (e.g. using 'fr' works just fine, and the messages are presented in French).

Edit: The problem seems to be with the _XX part. Although their official site gives the example just like the above code.

Last edited by thiago.eec; 09-22-2023 at 07:48 AM. Reason: New info
thiago.eec is offline   Reply With Quote