From: Michael Andres Date: Wed, 23 May 2007 19:52:27 +0000 (+0000) Subject: added ZConfig::defaultTextLocale X-Git-Tag: BASE-SuSE-Linux-10_3-Branch~704 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb3ba8c0ed8d39f1d5032802025ef583638f3f00;p=platform%2Fupstream%2Flibzypp.git added ZConfig::defaultTextLocale --- diff --git a/zypp/ZConfig.cc b/zypp/ZConfig.cc index f38fe1a..f0f2741 100644 --- a/zypp/ZConfig.cc +++ b/zypp/ZConfig.cc @@ -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 /////////////////////////////////////////////////////////////////// diff --git a/zypp/ZConfig.h b/zypp/ZConfig.h index 8005b40..4f86bfa 100644 --- a/zypp/ZConfig.h +++ b/zypp/ZConfig.h @@ -15,6 +15,7 @@ #include #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; }; ///////////////////////////////////////////////////////////////////