Java resource bundle: Difference between revisions

Content deleted Content added
Yobot (talk | contribs)
m Translating a resource bundle: clean up, References after punctuation per WP:REFPUNC and WP:CITEFOOT using AWB (8797)
Bender the Bot (talk | contribs)
 
(10 intermediate revisions by 9 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.
 
== Tools to create resource bundles ==
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.
The [http://www.tmasoft.de/MessageCompiler/index.html Message Compiler] <ref>[http://www.tmasoft.de/MessageCompiler/index.html Message Compiler]</ref> is a tool to generate resource bundle files from a single source file containing localized text definitions in different languages. The Message Compiler creates also constant definitions for the keys used to access the localized texts with the methods of the [[Java (programming language)|Java]] class [http://docs.oracle.com/javase/6/docs/api/java/util/ResourceBundle.html?is-external=true ResourceBundle (6)], [https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html ResourceBundle (7)] and [[HTML]] documentation pages for each language.
 
== See also ==
*[[Bundled software]]
 
== References ==
Line 13 ⟶ 19:
 
{{DEFAULTSORT:Java Resource Bundle}}
[[Category:Java (programming language)]]