svn commit: r15665 - trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveAllGraphics.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2008-09-01 00:45:26-0700
New Revision: 15665

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveAllGraphics.java

Log:
Fix for issue 5356: Save All Graphics: Added the translations of the button texts.

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveAllGraphics.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveAllGraphics.java?view=diff&rev=15665&p1=trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveAllGraphics.java&p2=trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveAllGraphics.java&r1=15664&r2=15665
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveAllGraphics.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/ActionSaveAllGraphics.java	2008-09-01 00:45:26-0700
@@ -200,14 +200,21 @@
     private boolean saveGraphicsToFile(File theFile, SaveGraphicsAction cmd) 
         throws IOException {
         if ( theFile.exists() && !overwrite ) {
-            String message = Translator.messageFormat("optionpane.confirm-overwrite",
+            String message = Translator.messageFormat(
+                    "optionpane.confirm-overwrite",
                     new Object[] {theFile});
-            String title = Translator.localize("optionpane.confirm-overwrite-title"); 
+            String title = Translator.localize(
+                    "optionpane.confirm-overwrite-title"); 
             //Custom button text:
-            Object[] options = {"optionpane.confirm-overwrite.overwrite", // 0
-                                "optionpane.confirm-overwrite.overwrite-all", // 1
-                                "optionpane.confirm-overwrite.skip-this-one", // 2
-                                "optionpane.confirm-overwrite.cancel"}; // 3
+            Object[] options = 
+            {Translator.localize(
+                    "optionpane.confirm-overwrite.overwrite"), // 0
+             Translator.localize(
+                    "optionpane.confirm-overwrite.overwrite-all"), // 1
+             Translator.localize(
+                    "optionpane.confirm-overwrite.skip-this-one"), // 2
+             Translator.localize(
+                    "optionpane.confirm-overwrite.cancel")}; // 3
 
             int response = 
 		JOptionPane.showOptionDialog(ArgoFrame.getInstance(),
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.