added ZConfig::defaultTextLocale
authorMichael Andres <ma@suse.de>
Wed, 23 May 2007 19:52:27 +0000 (19:52 +0000)
committerMichael Andres <ma@suse.de>
Wed, 23 May 2007 19:52:27 +0000 (19:52 +0000)
zypp/ZConfig.cc
zypp/ZConfig.h

index f38fe1a..f0f2741 100644 (file)
@@ -31,6 +31,16 @@ namespace zypp
     return getZYpp()->architecture();
   }
 
+  ///////////////////////////////////////////////////////////////////
+  //
+  //   METHOD NAME : ZConfig::defaultTextLocale
+  //   METHOD TYPE : Locale
+  //
+  Locale ZConfig::defaultTextLocale() const
+  {
+    return getZYpp()->getTextLocale();
+  }
+
   /////////////////////////////////////////////////////////////////
 } // namespace zypp
 ///////////////////////////////////////////////////////////////////
index 8005b40..4f86bfa 100644 (file)
@@ -15,6 +15,7 @@
 #include <iosfwd>
 
 #include "zypp/Arch.h"
+#include "zypp/Locale.h"
 #include "zypp/Pathname.h"
 
 ///////////////////////////////////////////////////////////////////
@@ -34,6 +35,11 @@ namespace zypp
     public:
       /** The system architecture. */
       Arch systemArchitecture() const;
+
+      /** The prefered locale for translated labels, descriptions,
+       *  descriptions, etc. passed to the UI.
+       */
+      Locale defaultTextLocale() const;
   };
   ///////////////////////////////////////////////////////////////////