Product::displayName() is translatable
authorStanislav Visnovsky <visnov@suse.cz>
Mon, 13 Feb 2006 15:46:50 +0000 (15:46 +0000)
committerStanislav Visnovsky <visnov@suse.cz>
Mon, 13 Feb 2006 15:46:50 +0000 (15:46 +0000)
zypp/Product.cc
zypp/Product.h
zypp/detail/ProductImplIf.cc
zypp/detail/ProductImplIf.h
zypp/source/susetags/SuseTagsProductImpl.cc
zypp/source/susetags/SuseTagsProductImpl.h
zypp/source/yum/YUMProductImpl.cc
zypp/source/yum/YUMProductImpl.h

index 12d797d..ae7e55e 100644 (file)
@@ -50,7 +50,7 @@ namespace zypp
   Label Product::vendor() const
   { return pimpl().vendor(); }
 
-  Label Product::displayName() const
+  TranslatedText Product::displayName() const
   { return pimpl().displayName(); }
 
 
index fef73e1..4d33155 100644 (file)
@@ -44,7 +44,7 @@ namespace zypp
     Label vendor() const;
 
     /** Get the name of the product to be presented to user */
-    Label displayName() const;
+    TranslatedText displayName() const;
 
   protected:
     /** Ctor */
index 8f0fbb0..12804bc 100644 (file)
@@ -29,8 +29,8 @@ namespace zypp
       { return Label(); } 
 
       /** Get the name of the product to be presented to user */
-      Label ProductImplIf::displayName() const 
-      { return Label(); }
+      TranslatedText ProductImplIf::displayName() const 
+      { return TranslatedText(); }
 
     ///////////////////////////////////////////////////////////////////
 
index 3d7911d..12e7610 100644 (file)
@@ -47,7 +47,7 @@ namespace zypp
       virtual Label vendor() const PURE_VIRTUAL;
 
       /** Get the name of the product to be presented to user */
-      virtual Label displayName() const PURE_VIRTUAL;
+      virtual TranslatedText displayName() const PURE_VIRTUAL;
     };
     ///////////////////////////////////////////////////////////////////
 
index 0c9544e..a9c6a99 100644 (file)
@@ -44,8 +44,8 @@ namespace zypp
     Label SuseTagsProductImpl::vendor() const
     { return _vendor; }
 
-    Label SuseTagsProductImpl::displayName() const
-    { return _displayName; }
+    TranslatedText SuseTagsProductImpl::displayName() const
+    { return _label; }
 
     /////////////////////////////////////////////////////////////////
   } // namespace detail
index 714a0ca..62e65a2 100644 (file)
@@ -37,11 +37,9 @@ namespace zypp
 
       virtual std::string category() const;
       virtual Label vendor() const;
-      virtual Label displayName() const;
+      virtual TranslatedText displayName() const;
 
-      //std::string _vendor;
       std::string _category;
-      std::string _displayName;
 
       std::string _name;
       std::string _version;
index a67aeee..895b4e8 100644 (file)
@@ -59,7 +59,7 @@ namespace zypp
       Label YUMProductImpl::vendor() const
       { return _vendor; }
 
-      Label YUMProductImpl::displayName() const
+      TranslatedText YUMProductImpl::displayName() const
       { return _displayname; }
 
       TranslatedText YUMProductImpl::summary() const
index 4c081e0..1872c18 100644 (file)
@@ -42,7 +42,7 @@ namespace zypp
        );
        std::string category() const;
        Label vendor() const;
-       Label displayName() const;
+       TranslatedText displayName() const;
        TranslatedText summary() const;
        TranslatedText description() const;
        Text insnotify() const;
@@ -54,7 +54,7 @@ namespace zypp
       protected:
        std::string _category;
        Label _vendor;
-       Label _displayname;
+       TranslatedText _displayname;
        TranslatedText _description;