Content deleted Content added
m →Translating a resource bundle: HTTP to HTTPS for SourceForge |
|||
(21 intermediate revisions by 16 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>
== Naming a resource bundle ==▼
== Benefits of using resource bundles ==
Extracting locale-sensitive objects such as strings from the code (as opposed to [[hard-coding]] them) means that the application can handle multiple locales without having to write different code for each locale. It also means that translators can deal with just the translatable text and not the programming code. Therefore, using resource bundles improves the [[internationalisation]] and the [[Internationalization and localization|localisation]] process of a software product.
== Translating a resource bundle ==
Some [[
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 29 ⟶ 19:
{{DEFAULTSORT:Java Resource Bundle}}
[[Category:Java (programming language)]]
|