Bug 111759 - Stereotype names are i18n-dependent and uneditable
Summary: Stereotype names are i18n-dependent and uneditable
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.4.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 12:41 UTC by greatbunzinni
Modified: 2005-08-30 23:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description greatbunzinni 2005-08-30 12:41:00 UTC
Version:           1.4.2 (using KDE KDE 3.4.2)

If a document is edited with a i18n definition and then re-edited with a different i18n definition, the stereotype names, which are given automatically, can't be edited and Umbrello starts naming stereotypes according to the current i18n definition.

This behaviour ends up forcing a Umbrello document to have multiple names for the same thing: the stereotype.
Comment 1 Oliver Kellogg 2005-08-30 20:31:39 UTC
SVN commit 455169 by okellogg:

BUG:111759 - UML standard predefined stereotypes are not subject to l10n.


 M  +1 -1      ChangeLog  
 M  +1 -1      umbrello/classifier.cpp  
 M  +1 -1      umbrello/datatype.cpp  
 M  +1 -1      umbrello/enum.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #455168:455169
@@ -10,7 +10,7 @@
 
 * Bugs fixed / wishes implemented (see http://bugs.kde.org)
  57588  58809  66461  67719  72016  79433  87252  88117  97162 105564
-108223 109591 109636 110216 110231 110379 111088 111470 111502
+108223 109591 109636 110216 110231 110379 111088 111470 111502 111759
 
 Version 1.4.2 (maintenance release)
 
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/classifier.cpp #455168:455169
@@ -51,7 +51,7 @@
     UMLListView::Icon_Type newIcon;
     if (b) {
         m_BaseType = ot_Interface;
-        UMLObject::setStereotype(i18n("interface"));
+        UMLObject::setStereotype("interface");
         newIcon = UMLListView::it_Interface;
     } else {
         m_BaseType = ot_Class;
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/datatype.cpp #455168:455169
@@ -65,7 +65,7 @@
 
 void UMLDatatype::init() {
     m_BaseType = Uml::ot_Datatype;
-    setStereotype( i18n("datatype") );
+    setStereotype( "datatype" );
     m_pSecondary = NULL;
     m_isRef = false;
 }
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/enum.cpp #455168:455169
@@ -51,7 +51,7 @@
 
 void UMLEnum::init() {
     m_BaseType = Uml::ot_Enum;
-    setStereotype( i18n("enum") );
+    setStereotype( "enum" );
 }
 
 UMLObject* UMLEnum::createEnumLiteral() {
Comment 2 greatbunzinni 2005-08-30 23:59:47 UTC
Boy, that was quick! Thanks again, Olivier!