Closed Bug 450464 Opened 17 years ago Closed 17 years ago

Redudant View throws an exception and doesn't run

Categories

(Mozilla Localizations Graveyard :: MozillaTranslator, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rpmdisguise-nave, Assigned: rpmdisguise-nave)

Details

Attachments

(1 file)

Michael Wolf warned me about an exception when trying to use Redundant Strings QA check: Exception in thread "Thread-3" java.util.MissingResourceException: Can't find re source for bundle java.util.PropertyResourceBundle, key button.copy_to_all.label at java.util.ResourceBundle.getObject(Unknown Source) at java.util.ResourceBundle.getString(Unknown Source) at org.mozillatranslator.kernel.L10nManager.translate(L10nManager.java:6 0) at org.mozillatranslator.kernel.Kernel.translate(Kernel.java:139) at org.mozillatranslator.action.CopyToAllInRedundantView.<init>(CopyToAl lInRedundantView.java:42) at org.mozillatranslator.gui.RedundantViewToolbar.getToolbar(RedundantVi ewToolbar.java:49) at org.mozillatranslator.gui.ComplexTableWindow.<init>(ComplexTableWindo w.java:100) at org.mozillatranslator.runner.ViewRedundantRunner.run(ViewRedundantRun ner.java:103) It all turned out to be a misnamed resource in userinterface.properties. However, while debugging the code I saw that the process to build the redundant strings list was too expensive, so I'm providing a patch that both solves the exception and enhances the list build speed. The patch includes a lot of documentation and "properly written code" minor fixes.
Status: NEW → ASSIGNED
Patch has been committed to CVS @ sf.net and will be released as part of MT v5.24.
MT v5.24 has already been released.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Mozilla Localizations → Mozilla Localizations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: