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 71064 - I18N - Splash screen displays "null..." at startup
Summary: I18N - Splash screen displays "null..." at startup
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-01-06 04:34 UTC by Masaki Katakai
Modified: 2008-12-22 22:38 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot (28.58 KB, image/jpeg)
2006-01-06 04:39 UTC, Masaki Katakai
Details
example of patch - just checking character one by one (1.09 KB, patch)
2006-01-06 04:45 UTC, Masaki Katakai
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2006-01-06 04:34:01 UTC
In Japanese build, splash screen of NetBeans displays "null..." for some
japanese messages at startup. It causes very bad impression.

adjustText() of core/startup/src/org/netbeans/core/startup/Splash.java
assumes that string on splash screen can be separated by a space like English.
But it doesn't work for Japanese and other languages. We usually do not use
a space between the words.

adjustText() needs to consider such case - checking character one by one
to adjust the length.
Comment 1 Masaki Katakai 2006-01-06 04:39:03 UTC
Created attachment 28222 [details]
snapshot
Comment 2 Masaki Katakai 2006-01-06 04:45:07 UTC
Created attachment 28223 [details]
example of patch - just checking character one by one
Comment 3 Roman Strobl 2006-01-11 13:42:33 UTC
Reassigning to core... please evaluate. Thanks.
Comment 4 Marian Mirilovic 2006-01-11 14:06:34 UTC
masaki,
what is the build number? Is it EN build or ML build?

mgrummich,
could you reproduce it in current RC1?
Comment 5 Masaki Katakai 2006-01-11 14:18:38 UTC
I tried this on 200601052030 ML build.

This problem does not happen in EN build, it happens only in Japanese build
because startup string is translated into Japanese without any space character.
Comment 6 Marek Grummich 2006-01-11 14:19:32 UTC
I didn't see any 'null' during startup for rc1 build 200601101900 (zh_CN
locale). Every message comes from bundle, it has a mb prefix.
Comment 7 Marian Mirilovic 2006-01-11 14:27:43 UTC
masaki,
thanks for info. Could you be so kind and try the new build of RC1?
Comment 8 Masaki Katakai 2006-01-11 14:30:05 UTC
Yes, this does not happen in zh locale because translation string is shorter
than Japanese.
Comment 9 Masaki Katakai 2006-01-11 22:55:14 UTC
Still happens in RC ML build  - netbeans-5_0-rc1-bin-200601101900 in Japanese
locale.

Comment 10 David Simonek 2006-01-12 11:01:46 UTC
I integrated masaki's patch yesterday, but somehow my comment to IZ was lost. So
now the bug should be fixed in main trunk, which means 5.1.
 
Comment 11 David Simonek 2006-01-12 11:08:21 UTC
I guess that now it's unfortunately too late to integrate into 5.0, as this bug
is not a showstopper, right?
Comment 12 Marian Mirilovic 2006-01-12 11:12:58 UTC
Late, but is it possible to backport this into the NB 5.0 - ML ?
Comment 13 Masaki Katakai 2006-01-12 11:33:48 UTC
Thank you very much dsimonek for the integration. It's a high priority bug but
yes it's not a showstopper. So it's OK to fix at 5.1.

mmirilovic, thank you for comment. but if I understand correctly, I think code
base of NetBeans will not be changed for ML build, we will use English 5.0 RR +
just localization modules.
Comment 14 Marian Mirilovic 2006-01-17 10:34:28 UTC
Dafe, 
please backport this to the release_50 branch ... today.
Comment 15 David Simonek 2006-01-17 10:56:15 UTC
Yes, I'm just prepared for the backport commit. Unfortunately checking out whole
release50 etc. is time consuming task with all the problems with our CVS
repository (my WinCVS failing checkout etc...) So it took me almost whole day :-(
Comment 16 David Simonek 2006-01-17 11:09:12 UTC
Backported into 5.0 release:

Checking in Splash.java;

/cvs/core/startup/src/org/netbeans/core/startup/Splash.java,v  <--  Splash.java

new revision: 1.6.2.1; previous revision: 1.6

Comment 17 Marian Mirilovic 2006-01-18 15:10:03 UTC
mgrummich or masaki,
could you be so kind to verify this issue ? Thanks in advance.
Comment 18 Masaki Katakai 2006-01-19 02:43:06 UTC
Verified the fix is working on 200601182030 build in Japanese locale.Thank you
very much for integration to 5.0!!