Karlovsky120
Karlovsky120

Reputation: 6352

Using XML in Java as language manager

So, I'd like to create a bilingual program. From what I have heard, xml files are way to go...

I couldn't really find anything useful with Google (when you enter Java in Google it sees the word "language" only as in "programming", instead of desired "spoken"), so if any of you could direct me to some tutorial page which explains this topic further, or even show it to me here (It can be that complicated, can it?), I'd be very grateful.

If xml is way to go, that is! If any of you have any better suggestions, I'm listening...

Upvotes: 0

Views: 279

Answers (2)

Alonso Dominguez
Alonso Dominguez

Reputation: 7858

XML could be the way to go, but the usual approach to internationalise your Java applications is using ResourceBundles. When asking Google the right keywords are: Java i18n or Java Internationalization.

There is a basic java tutorial that can get you started with i18n. If you are writing a web application then you should check the documentation of your specific framework.

Upvotes: 2

crownjewel82
crownjewel82

Reputation: 437

Java has a built in internationalization system that uses properties files.

Java Internationalization API Tutorial

Upvotes: 1

Related Questions