Author: tfmorris
Date: 2007-09-17 12:53:25-0700
New Revision: 13554
Modified:
trunk/src_new/org/argouml/i18n/tab.properties
trunk/src_new/org/argouml/ui/AbstractArgoJPanel.java
Log:
Merge historical comments. Localize remaing hardcoded string.
Modified: trunk/src_new/org/argouml/i18n/tab.properties
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/i18n/tab.properties?view=diff&rev=13554&p1=trunk/src_new/org/argouml/i18n/tab.properties&p2=trunk/src_new/org/argouml/i18n/tab.properties&r1=13553&r2=13554
==============================================================================
--- trunk/src_new/org/argouml/i18n/tab.properties (original)
+++ trunk/src_new/org/argouml/i18n/tab.properties 2007-09-17 12:53:25-0700
@@ -41,9 +41,11 @@
tab.shortcuts = Configure Shortcuts
tab.source = Source
tab.stereotype = Stereotype
+tab.String = String
tab.style = Presentation
tab.tagged-values = Tagged Values
tab.todo-item = ToDo Item
+tab.untitled = Untitled
tab.user = User
tab.modules = Modules
Modified: trunk/src_new/org/argouml/ui/AbstractArgoJPanel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/ui/AbstractArgoJPanel.java?view=diff&rev=13554&p1=trunk/src_new/org/argouml/ui/AbstractArgoJPanel.java&p2=trunk/src_new/org/argouml/ui/AbstractArgoJPanel.java&r1=13553&r2=13554
==============================================================================
--- trunk/src_new/org/argouml/ui/AbstractArgoJPanel.java (original)
+++ trunk/src_new/org/argouml/ui/AbstractArgoJPanel.java 2007-09-17 12:53:25-0700
@@ -91,7 +91,7 @@
*
*/
public AbstractArgoJPanel() {
- this("untitled", false);
+ this(Translator.localize("tab.untitled"), false);
}
/**
@@ -99,8 +99,7 @@
*
* @param title The name as a localized string.
*/
- // TODO: Investigate in what cases is the tag a localized string
- // and in what cases is it a key to be localized?
+ // TODO: Review all callers to make sure that they localize the title
public AbstractArgoJPanel(String title) {
this(title, false);
}
@@ -111,20 +110,8 @@
* @param title The name (a localized string).
* @param t if true, remove tab from parent JTabbedPane
*/
- // TODO: Investigate in what cases is the tag a localized string
- // and in what cases is it a key to be localized? - Harald Braun via Linus 20070521
- // Answer: There are three cases: 1) unlocalized string, 2) localized
- // string, and 3) property/tag name. Of the 100+ subclasses, the
- // overwhelming majority fall into category #1. Category #3 includes
- // most of the Tab* panels. Category #2 includes the PropPanels for
- // Generalization and all the diagrams, as well as TabDocumentation
- // and TabStereotype. The breakdown is approximately 80+/10/6. The
- // analysis is easy. Fixing the 90+ property panels will be more work.
- // - tfm - 20070517
- // The conclusion is that the title shall be a localized string fixing
- // all classes from category #1. Harald Braun has already started the
- // work. I will merge in his changes. Firstly I will clarify this class.
- // Linus 2007-09-11.
+ // TODO: Review all callers to make sure that they localize the title
+ // In process by Harold Braun 20070912
public AbstractArgoJPanel(String title, boolean t) {
setTitle(title);
tear = t;
@@ -233,4 +220,4 @@
}
-} /* end class AbstractArgoJPanel */
+}
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.