Bug 231951 - TVT34:TCT228: PLK: truncation in New Java Project wizard
Summary: TVT34:TCT228: PLK: truncation in New Java Project wizard
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux-GTK
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL: 228
Whiteboard:
Keywords:
: 232103 232183 232199 232327 232448 232590 232834 232854 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-13 17:46 EDT by CDE Administration CLA
Modified: 2008-05-29 17:05 EDT (History)
9 users (show)

See Also:


Attachments
02.000000_PLK_0512.jpg (86.61 KB, image/jpeg)
2008-05-13 17:46 EDT, CDE Administration CLA
no flags Details
NewWizardMessages.properties (60.28 KB, application/octet-stream)
2008-05-14 08:16 EDT, CDE Administration CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description CDE Administration CLA 2008-05-13 17:46:21 EDT
<response_by> Moravia IT at 2008.05.13.15.22.38 </response_by>
A truncation, this time a serious one.

OS: Linux only, on Windows it is ok
Build date: 0512
Component/Function name: File Base Menu
Blocking: NO
Tester Name: Kamil Ignacak

Steps to recreate the problem:
1. From main menu select File -> New -> Java Project
2. Double click on Java Project
3. Verify the panel below is correctly translated

Problem description:
Translation of string "Configure default..." is truncated.
Full translation is "Konfiguruj warto?? d&omy?ln?...", last word is not displayed. (NewJavaProjectWizardPageOne_LayoutGroup_link_description)
Resizing the window doesn't help.

Attaching screenshot for reference.

Kamil Ignacak

<response_by> John Ryding at 2008.05.13.16.38.25 </response_by>
The string is verified to be externalized in an English mock build.  This string become truncated when translated in different languages.

<response_by> John Ryding at 2008.05.13.16.43.35 </response_by>
This article was reassigned from Category:''TVT/Testing,Inbox''.
Comment 1 CDE Administration CLA 2008-05-13 17:46:27 EDT
Created attachment 100065 [details]
02.000000_PLK_0512.jpg
Comment 2 CDE Administration CLA 2008-05-13 17:46:31 EDT
<cde:tctdetail>
Testcase: File Base Menu/02.000000
Project: WSW34
Component: Xfer - JDT/UI
Priority: 2
Subject: PLK: truncation in New Java Project wizard
Article ID: 228
Originator: tctbroadcast@pl.moraviaworldwide.com
</cde:tctdetail>
Comment 3 Martin Aeschlimann CLA 2008-05-14 03:37:48 EDT
I can't reproduce this with a longer English string. I guess it has to do with the characters used for the new string. Can you attach a the new property file to the bug?
Comment 4 Martin Aeschlimann CLA 2008-05-14 03:38:28 EDT
(The property file can just contain the new string)
Comment 5 CDE Administration CLA 2008-05-14 08:16:03 EDT
<response_by> Moravia IT at 2008.05.14.07.10.03 </response_by>
Here it is. No chkpii errors, utf-8 encoding.

Kamil
Comment 6 CDE Administration CLA 2008-05-14 08:16:07 EDT
Created attachment 100153 [details]
NewWizardMessages.properties
Comment 7 Martin Aeschlimann CLA 2008-05-15 04:29:38 EDT
Moving to SWT as this seems to be a Linux problem.
Comment 8 Felipe Heidrich CLA 2008-05-15 12:44:27 EDT
compute size of link works for me with the plk text
testcase
public static void main(String[] args) {
	Display display = new Display();
	Shell shell = new Shell(display);
	Link link = new Link (shell, SWT.NONE);
	link.setText("<a>Konfiguruj warto&#347;&#263; d&omy&#347;ln&#261;...</a>");
	link.setLocation(30, 30);
	link.pack();
	shell.setSize(620, 200);
	shell.open();
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch())
			display.sleep();
	}
	display.dispose();		
}

----
What version of GTK are you running ?
Comment 9 John Ryding CLA 2008-05-16 15:56:30 EDT
gtk version: 2.10.4-19.el5
Comment 10 Dani Megert CLA 2008-05-20 03:45:23 EDT
Should fix for 3.4 (potential dups: bug 232834 and bug 232854).
Comment 11 Felipe Heidrich CLA 2008-05-20 16:10:43 EDT
This is a bug in pango I believe (already fixed in newer releases).

I can reproduce the problem only on RedHat Enterprise Linux 5
GTK 2.10.4 Pango 1.14.9 Cairo 1.2.4

I have tried several combination of these libraries and it only happen on Pango 1.14.x.

Can you try to upgrade the machine ?
Comment 12 Bogdan Gheorghe CLA 2008-05-20 17:37:07 EDT
*** Bug 232199 has been marked as a duplicate of this bug. ***
Comment 13 Bogdan Gheorghe CLA 2008-05-20 17:37:39 EDT
*** Bug 232590 has been marked as a duplicate of this bug. ***
Comment 14 Bogdan Gheorghe CLA 2008-05-20 17:39:13 EDT
*** Bug 232854 has been marked as a duplicate of this bug. ***
Comment 15 Bogdan Gheorghe CLA 2008-05-20 17:39:27 EDT
*** Bug 232834 has been marked as a duplicate of this bug. ***
Comment 16 Bogdan Gheorghe CLA 2008-05-20 17:43:52 EDT
*** Bug 232183 has been marked as a duplicate of this bug. ***
Comment 17 Bogdan Gheorghe CLA 2008-05-20 17:58:42 EDT
*** Bug 232448 has been marked as a duplicate of this bug. ***
Comment 18 Bogdan Gheorghe CLA 2008-05-26 13:12:26 EDT
*** Bug 232103 has been marked as a duplicate of this bug. ***
Comment 19 Bogdan Gheorghe CLA 2008-05-26 13:13:48 EDT
*** Bug 232327 has been marked as a duplicate of this bug. ***
Comment 20 Bogdan Gheorghe CLA 2008-05-28 11:05:16 EDT
*** Bug 234265 has been marked as a duplicate of this bug. ***
Comment 21 CDE Administration CLA 2008-05-28 11:20:31 EDT
<response_by> Moravia IT at 2008.05.27.07.56.16 </response_by>
The string (link) looks ok on Linux machine with upgraded Pango library and build 0526.

Thanks, closing.

Kamil
Comment 22 Felipe Heidrich CLA 2008-05-28 12:02:27 EDT
(In reply to comment #21)
> The string (link) looks ok on Linux machine with upgraded Pango library and
> build 0526.

Thank you for testing.

Can you describe the process you used to update your libraries ? Did you use the standard Redhat update ?
What is version that you are running now ?

- Maybe this should be added to the release notes somewhere -
Comment 23 Felipe Heidrich CLA 2008-05-28 12:02:54 EDT
closing as not Eclipse.
Comment 24 Andrew Overholt CLA 2008-05-28 13:48:16 EDT
I tried to reproduce this on an x86 RHEL 5.1 machine.  I have pango-1.14.9-3.el5.i386 installed.  I used the following snippet (hopefully the text shows up correctly here ... it's the literal string and not unicode #s or anything like that) built and run like so:

javac -cp eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.2.1.v3235.jar PangoTest.java

java -cp eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.2.1.v3235.jar:. PangoTest

I see the full label.

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Shell;

public class PangoTest {
  public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display);
    Link link = new Link (shell, SWT.NONE);
    link.setText("<a>Konfiguruj warto&#347;&#263; domy&#347;ln&#261;</a>");
    link.setLocation(30, 30);
    link.pack();
    shell.setSize(620, 200);
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
      }
      display.dispose();
    }
}
Comment 25 CDE Administration CLA 2008-05-29 17:05:49 EDT
Resolved as "NON_ECLIPSE". Closing.