3

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 language, 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

3 Answers 3

5

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

Sign up to request clarification or add additional context in comments.

1 Comment

thanx for u phil and for all i'll try to make it and i'll let u know ,if i make it successfuly thaaanx
2

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

Comments

2

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.