开发者

java program support multiple languages

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜