Bug 157542

Summary: [editor] probable translation faux pas in AddExtensionsComponentDialog
Product: [WebTools] WTP Source Editing Reporter: Craig Salter <csalter>
Component: wst.xsdAssignee: wst.xsd-triaged <wst.xsd-triaged>
Status: NEW --- QA Contact: Keith Chong <keith.chong.ca>
Severity: minor    
Priority: P5 CC: valentinbaciu
Version: 1.5Keywords: nl
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Craig Salter CLA 2006-09-15 19:47:40 EDT
I noticed the following code in AddExtensionsComponentDialog (around line 457). It's usually bad news to stitch mutltiple traslated strings together. We need to have a parameterized message that can translated for this (when next we get a chance for a translation drop).  Here's a snippet of the bad code...

errDialog.setMessage(Messages._UI_LABEL_EXTENSION_CATEGORIES + " " + spec.getDisplayName() //$NON-NLS-1$
				  + "\n"   //$NON-NLS-1$
				  + Messages._UI_ERROR_FILE_CANNOT_BE_PARSED
				  + "\n" + Messages._UI_ERROR_VALIDATE_THE_FILE);   //$NON-NLS-1$
		  errDialog.open();