Java resource bundle: Difference between revisions

Content deleted Content added
Bender the Bot (talk | contribs)
 
(5 intermediate revisions by 5 users not shown)
Line 1:
{{Short description|Computer language data file}}
A resource bundle is a [[Java (software platform)|Java]] [[.properties]] file that contains [[locale]]-specific data.<ref>[http://java.sun.com/developer/technicalArticles/Intl/ResourceBundles/ O'Conner, B. ''Java Internationalization: Localization with ResourceBundles'', Sun Developer Network.]</ref> It is a way of internationalising a Java application by making the code locale-independent.
{{also|Resource (Java)}}
A resource bundle is a [[Java (software platform)|Java]] [[.properties]] file that contains [[Locale (computer software)|locale]]-specific data.<ref>[{{Cite web|first=John|last=O'Conner|archive-date=2007-01-03|title=Java Internationalization: Localization with ResourceBundles|url=http://java.sun.com/developer/technicalArticles/Intl/ResourceBundles/ O'Conner, B|archive-url=https://web. ''Java Internationalizationarchive.org/web/20070103035343/http: Localization with //java.sun.com/developer/technicalArticles/Intl/ResourceBundles'', /|access-date=2020-11-16|website=Sun Developer Network.]}}</ref> It is a way of internationalising a Java application by making the code locale-independent.
 
== Benefits of using resource bundles ==
Line 5 ⟶ 7:
 
== Translating a resource bundle ==
Some [[Computer-assisted translation|CAT]] tools like [[OmegaT]], OmegaT+,<ref>[httphttps://omegatplus.sourceforge.net/ OmegaT+]</ref> [[Swordfish Translation Editor|Swordfish]] or Sun's [[Open language tools]] can specifically handle resource bundles. In addition to these, translators can use any [[text editor]] to create new resource bundles or to modify existing ones.
 
JavaPM<ref>[http://www.maxprograms.com/products/javapm.html JavaPM]</ref> is a free cross-platform utility that assists software developers in the localization of Java projects. JavaPM converts Java .properties files to XLIFF 1.2 format, allowing their localization using most modern [[Computer-assisted translation|CAT]]. Once the [[XLIFF]] files have been translated, JavaPM inserts the translations into the Java project, creating new .properties files or updating existing ones as necessary. It is not available anymore.
 
== Tools to create resource bundles ==