intoolswetrust/jsignpdf

GUI Locale Option

bezkos opened this issue · 1 comments

I think its imposible to configure GUI/Sign locale other than your current system locale. For example someone has english windows and he need gui/sign other language. An option for that would be nice.

kwart commented

Hi @bezkos, It's already possible.
Just use the -Duser.language Java argument with a proper language code. If you use Windows executables (JSignPdf.exe, JSignPdfC.exe) put the argument to the JSignPdf.l4j.ini and JSignPdfC.l4j.ini.

The sample content of such file then may look like:

# Launch4j runtime config
-Xms1g
-Xmx1g
--add-exports jdk.crypto.cryptoki/sun.security.pkcs11=ALL-UNNAMED
--add-exports jdk.crypto.cryptoki/sun.security.pkcs11.wrapper=ALL-UNNAMED
--add-exports java.base/sun.security.action=ALL-UNNAMED
--add-exports java.base/sun.security.rsa=ALL-UNNAMED
--add-opens java.base/sun.security.util=ALL-UNNAMED
-Djsignpdf.home="%EXEDIR%"
-Duser.language=cs

Supported values (language codes) for -Duser.language are (in version 2.2.2):

cs
de
el
en
es
fr
hr
hy
ja
nb
pl
pt
ru