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

Summary: Please add support for GNU gettext
Product: java Reporter: Tim Lebedkov <lebedkov>
Component: I18NAssignee: Ralph Ruijs <ralphbenjamin>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.