Content deleted Content added
Padrecamara (talk | contribs) ←Created page with 'A resource bundle is a Java .properties file that contains locale-specific data<ref>[http://java.sun.com/developer/technicalArticles/Intl/ResourceBundles/]<…' |
m →Translating a resource bundle: HTTP to HTTPS for SourceForge |
||
(42 intermediate revisions by 26 users not shown) | |||
Line 1:
{{Short description|Computer language data file}}
{{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/|archive-url=https://web.archive.org/web/20070103035343/http://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.
== Naming a resource bundle ==▼
== Content of resource bundles ==▼
== 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.
Some [[
▲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 [[localisation]] process of a software product.
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.
*[[Bundled software]]
== References ==
<references/>▼
{{DEFAULTSORT:Java Resource Bundle}}
[[Category:Java (programming language)]]
▲Some [[CAT tools]] like [[OmegaT]] and OmegaT+ <ref>[http://omegatplus.sourceforge.net/ OmegaT+]</ref> 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.
▲== Notes ==
▲<references/>
|