This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 116301 - Please add support for GNU gettext
Summary: Please add support for GNU gettext
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: I18N (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-21 12:40 UTC by Tim Lebedkov
Modified: 2011-11-28 09:21 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2007-09-21 12:40:36 UTC
http://code.google.com/p/gettext-commons/
Comment 1 Marian Petras 2007-09-26 09:36:08 UTC
I just read the gettext-commons tutorial. However, I miss explanation of the way how the resource bundle entries are
created, i.e. how are key and value of a resource bundle entry constructed. If you know more about it, please explain it
here or send a link to such an explanation.
Comment 2 Tim Lebedkov 2007-09-26 21:03:01 UTC
for the following piece of code

    localizedString = i18n.tr("Hello, World");

the corresponding entry in the Bundle_de.properties file would be:

Hello, World=Hallo, Welt

English (or another language that is choosed as standard)
translation is already in the code.
Comment 3 Marian Petras 2007-09-27 05:08:59 UTC
Thanks. I was not sure whether the English strings are really used as resource bundle keys.