我在 java 打印对话框中设置区域设置时遇到问题,特别是设置捷克语区域设置。我找到了设置区域设置 here 的解决方案它可以工作,但它适用于 new Locale("es", "ES") 但不适用于 new Locale("cs", "CZ")。有人能帮助我吗?我也尝试设置默认区域设置: Locale.setDefault(new Locale("cs", "CZ"));
但结果相同,只有 ES 有效:(。
最佳答案
来自the Locale description ,“用户界面翻译”部分
The user interface elements provided by the Java SE Runtime Environment 6, include Swing dialogs, messages written by the runtime environment to the standard output and standard error streams, as well as messages produced by the tools provided with the JRE. These user interface elements are localized into the following languages:
看来 UI 元素只翻译成几种语言
不幸的是,我不知道如何添加本地化文件以使您的 UI 为捷克语。也许一些挥杆专家可以帮助您
也许这可以帮助您入门
关于带有捷克语语言环境的 Java 打印对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24424164/