Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch language? #643

Closed
asciim0 opened this issue Sep 9, 2020 · 3 comments · Fixed by #729
Closed

Switch language? #643

asciim0 opened this issue Sep 9, 2020 · 3 comments · Fixed by #729
Assignees
Labels
feature New functionality to be developed P1 High priority issues to be scheduled in the upcoming release
Milestone

Comments

@asciim0
Copy link
Contributor

asciim0 commented Sep 9, 2020

Is there a way to switch the language for JHOVE (in particular the error codes) in preferences or elsewhere? I could neither find an option in the GUI, nor a flag in the cli.

@carlwilson
Copy link
Member

Hi @asciim0 the change of language is automatic and is based on your machines localisation settings. If you let me know what OS your using I can let you know what you need to change to make this happen.

@david-russo
Copy link
Member

For testing purposes, you can also set the locale of the JVM when it starts up. For JHOVE, you could do this by making a language-specific copy of jhove.bat, such as jhove_de.bat, and setting user.country and user.language options in the Java call at the bottom:

java -Duser.country=DE -Duser.language=de -Xss1024k -classpath "%CP%" Jhove -c "%CONFIG%" %*

Though we probably should have some way to allow users to configure their language independent of the operating system.

@asciim0
Copy link
Contributor Author

asciim0 commented Aug 23, 2021

If I understand correctly, the behavior here:

public static JhoveMessageFactory getInstance(final String bundleName)

(or somewhere there about :-D )
takes the locale settings as the language parameter?
Would it be possible to replace this with a variable from e.g. jhove.conf? Is this on the roadmap already?

@carlwilson carlwilson linked a pull request Apr 6, 2022 that will close this issue
@carlwilson carlwilson self-assigned this Apr 6, 2022
@carlwilson carlwilson added feature New functionality to be developed P1 High priority issues to be scheduled in the upcoming release labels Apr 6, 2022
@carlwilson carlwilson added this to the JHOVE 1.26 milestone Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality to be developed P1 High priority issues to be scheduled in the upcoming release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants