Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4195173
Votes 0
Synopsis Swing contains hard-coded strings
Category java:classes_swing
Reported Against 1.2 , 1.3 , 1.2.2 , kestrel-rc1
Release Fixed 1.3.1(ladybird-rc1), 1.4(merlin-beta) (Bug ID:2024143)
State 10-Fix Delivered, Verified, bug
Priority: 4-Low
Related Bugs 4210305 , 4210307 , 4210308 , 4210309 , 4319111 , 4421980 , 4221430 , 6229954
Submit Date 04-DEC-1998
Description
See report.
Work Around
N/A
Evaluation
"report.txt" seems to contain a tons of Exception messages that we don't basically localize. These messages are runtime error that the end user won't see
quite often but the application developer.

Are we going to localize all exception messages in all API?
  xxxxx@xxxxx   1998-12-08

Revised report ("swi18n.txt") attached.
  xxxxx@xxxxx   1998-12-10

The revised report still seems to be mostly exception messages, debug strings and programmatic tokens -- none of which should be localized.  Some one should crawl through the list to verify this is true for each string in the report.  If any of the strings *really* need to be localized, a new bug for each such string should be entered.  Then this bug should be closed out.
  xxxxx@xxxxx   2000-09-27

Here is the list of strings that we need to localize:

// Used as Dialog title if one isn't supplied
(!)  JOptionPane.java	795 	"Select an Option"

// Name for folder that is created when 'new folder' button clicked.
(!)  filechooser/FileSystemView.java	729 	"New Folder"	
(!)  filechooser/FileSystemView.java	732 	"New Folder."	
(!)  filechooser/FileSystemView.java	842 	"New Folder"	
(!)  filechooser/FileSystemView.java	845 	"New Folder ("	
(!)  filechooser/FileSystemView.java	933 	"New Folder"	

// Used as names for undo/redo stuff in text
(getPresentationName)  text/AbstractDocument.java	2520 	"style change"	
(getUndoPresentationName)  text/AbstractDocument.java	2531 	"Undo "	
(getRedoPresentationName)  text/AbstractDocument.java	2542 	"Redo
"	
(?getPresentationName)  text/AbstractDocument.java	25173 	"addition"	
(?getPresentationName)  text/AbstractDocument.java	2519 	"deletion"	
(!)  undo/AbstractUndoableEdit.java	27 	"Undo"	
(!)  undo/AbstractUndoableEdit.java	33 	"Redo"	

// Percent done in Progress Bar
(?percentage string)  JProgressBar.java	342 	"%"	
(!)  ProgressMonitor.java	242 	"Progress..."	

// Accessability names:
(?)  plaf/metal/MetalInternalFrameTitlePane.java	77 	"Maximize"
(!) AbstractButton.java	1907	"click"	String	
(!) JComboBox.java	1427	"togglePopup"	String	

// Used when noargs constructor of JSplitPane is used
(?) JSplitPane.java	230	"left button"	JButton	
(?) JSplitPane.java	231	"right button"	JButton	

  xxxxx@xxxxx   2000-09-29
Comments
  
  Include a link with my name & email   

Submitted On 07-MAR-2001
bouye
Seems to me that there are still a lot of missing strings 
to be localized.
From JColorChooser:
"Preview", "SampleText", "Swatches", "RGB", "HSB", "Recent"
"Red", "Green", "Blue", "H", "S", "B", "R", "G", "B", "Ok", 
"Cancel", "Reset".

From ProgressMonitor:
"Cancel"

From JFileChooser;
too many labels, tooltips, ... to write all them here, 
depends also of the LnF.



PLEASE NOTE: JDK6 is formerly known as Project Mustang