开发者

java program support multiple languages

开发者 https://www.devze.com 2022-12-24 17:21 出处:网络
how can i make java program working with multiple languages (frensh, english , arabic .. etc) , i mean i wanna make a comboBox ,when i choose one l开发者_如何学运维anguage, all the labels in the GUI i

how can i make java program working with multiple languages (frensh, english , arabic .. etc) , i mean i wanna make a comboBox ,when i choose one l开发者_如何学运维anguage, all the labels in the GUI interfaces change to the selected language and even the stdin also change to that language.

thanx in advance Alaa


I think you're talking about ResourceBundles with the GUI interface labels.

https://docs.oracle.com/javase/tutorial/i18n/resbundle/concept.html

As for the input changing, it's been asked already:

Changing Keyboard Input language in Java


You are talking about implementing internationalization which Java fully supports. This trail covers the details of making your application i18n compliant.


You can do that using ResourceBundles, it loads UI strings on the basis of the locale settings of the application.


You can start with this article on localization...

Not entirely sure what you mean by "stdin" changing to a language though.

0

精彩评论

暂无评论...
验证码 换一张
取 消