#JavaFX dialogs internationalization

3 messages · Page 1 of 1 (latest)

grim scarab
#

Hello, I have foud an issue with translating buttons in built-in JavaFX dialogs. I have an application where I'm using "java modules".
My goal is to be able to translate every single button in dialog.
Translation resources are available on this place: https://github.com/openjdk/jfx/blob/master/modules/javafx.controls/src/main/resources/com/sun/javafx/scene/control/skin/resources
Resources are loaded throu this class: https://github.com/openjdk/jfx/blob/master/modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/skin/resources/ControlResources.java

Without "java modules" I could simply create custom translation in my projects resources "com/sun/javafx/scene/control/skin/resources" and it should work. But when "java modules" are used, this is not allowed because package "com.sun.javafx.scene.control.skin.resources" would exist in multiple modules, which is not allowed.

Does anyone had to solve this kind of issue?

Thank you.

GitHub

JavaFX mainline development. Contribute to openjdk/jfx development by creating an account on GitHub.

GitHub

JavaFX mainline development. Contribute to openjdk/jfx development by creating an account on GitHub.

lean sluiceBOT
#

This post has been reserved for your question.

Hey @grim scarab! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.