Bug 205221 - org.eclipse.gef.editparts.ZoomManager does not support turkish properly
Summary: org.eclipse.gef.editparts.ZoomManager does not support turkish properly
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-02 13:58 EDT by Elias Wehbeh CLA
Modified: 2007-10-02 13:58 EDT (History)
0 users

See Also:


Attachments
A snapshot of the widget (28.50 KB, application/msword)
2007-10-02 13:58 EDT, Elias Wehbeh CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Wehbeh CLA 2007-10-02 13:58:38 EDT
Created attachment 79570 [details]
A snapshot of the widget

Build ID: M20070212-1330

Steps To Reproduce:
1.Have an editor open that contains an org.eclipse.swt.widgets.Combo or a class that contains it
2.Make sure that the class uses org.eclipse.gef.editparts.ZoomManager as its zoom manager such as org.eclipse.gef.ui.actions.ZoomComboContributionItem
3.Make sure to add the combo to the menu bar
4.Launch your eclipse in english and the combo list shows the numbers in the list formatted as 100%
5.Launch your eclipse in Turkish and the combo list shows the numbers in the list formatted as 100%, too
6.Well in Turkish the percent sign is on the wrong side and should be displayed as %100


More information:
I work for the Modeler team at IBM Canada and we have some customers in Turkey that have pointed out this problem to us. The source of the problem is that the ZoomManager have hard coded the format attribute to
      DecimalFormat format = new DecimalFormat("####%");
So, any application that wants to support Turkish, cannot modify this attribute since it is not accessible. Thus the solution is for this attribute to somehow support "%####" for Turkish and "####%" for thr rest of the world except those using Arabic. Strangely enough, in an Arabic locale, the numbers are formatted properly. Only the turkish locale has this problem.