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 166315 - I18N : layout issue - buttons will not be resized for localized strings
Summary: I18N : layout issue - buttons will not be resized for localized strings
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Cyhelsky
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2009-06-01 04:30 UTC by Masaki Katakai
Modified: 2009-08-03 07:13 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (English) (77.27 KB, image/png)
2009-06-01 04:31 UTC, Masaki Katakai
Details
screenshot (Japanese) - there are 3 buttons that have the same label (78.11 KB, image/png)
2009-06-01 04:32 UTC, Masaki Katakai
Details
screenshot : "Configuration File Groups" looks OK, all buttons are adjusted and resized properly for Japanese (106.22 KB, image/png)
2009-07-16 09:02 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2009-06-01 04:30:30 UTC
On project property dialog, buttons for "Add File...", "Detect File..." and "Remove Files"
are not resized properly when we localize these strings. So the same labels are displayed
and user can not understand the meanings. Will attach the screenshots.
Comment 1 Masaki Katakai 2009-06-01 04:31:31 UTC
Created attachment 83046 [details]
screenshot (English)
Comment 2 Masaki Katakai 2009-06-01 04:32:36 UTC
Created attachment 83047 [details]
screenshot (Japanese) - there are 3 buttons that have the same label
Comment 3 Petr Jiricka 2009-06-02 15:57:25 UTC
Sounds like an unpleasant bug. Does the button show a tooltip, so the user can see the full label when hovering the
mouse? Or is there some other workaround? Thanks.
Comment 4 Masaki Katakai 2009-06-08 04:27:16 UTC
No tooptip there.

So quick workaround for 6.7 is to use shorter localized string.

It looks this issue happens seriously on Japanese. Chinese and
Brazilian Portuguese are OK. So I changed Japanese translations
for workaround.
Comment 5 Petr Cyhelsky 2009-07-13 16:50:59 UTC
Masaki, as I understand it the problem is that the translations are too long, so when they are shortened to fit the
button width, it seems that they are all the same (as the texts begin with the same..?) what do you propose as a fix?
Some possibilities:

- Increase button size for longer translations (Is it ok from the UI point of view, that the button lengths would differ
for different localizations?)
- Introduce tooltips to clarify the function of each button.
- both?

Please let me know which do you think is best.

Comment 6 Masaki Katakai 2009-07-16 08:55:54 UTC
Hi Petr, thank you for evaluation.

> the button lengths would differ for different localizations?)

Yes, true. So the best way is not to use fixed width.

Btw, another panel in "Configuration File Groups" tab looks OK,
I don't see the similar issue, all buttons are resized properly
for Japanese labels. "Add Group...", "Edit Group...", "Remove Group",
"Add Files..." and "Remove File" buttons are resized good.
I don't know the difference between "Configuration Files" and
"Configuration File Group" tab, and how to fix on GUI builder.
Can we use the same way for "Configuration Files" tab?


Comment 7 Masaki Katakai 2009-07-16 09:02:29 UTC
Created attachment 84820 [details]
screenshot : "Configuration File Groups" looks OK, all buttons are adjusted and resized properly for Japanese
Comment 8 Petr Cyhelsky 2009-07-20 18:59:06 UTC
fixed in web-main: http://hg.netbeans.org/web-main/rev/66f8537dba69
Comment 9 Quality Engineering 2009-07-23 07:46:53 UTC
Integrated into 'main-golden', will be available in build *200907230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/66f8537dba69
User: Petr Cyhelsky <cyhelsky@netbeans.org>
Log: #166315 - buttons on spring framework tab in project properties tabs will resize correctly
Comment 10 Masaki Katakai 2009-08-03 07:13:17 UTC
Thank you very much Petr, Perfect! Verified on build 200908021401.