Author: mlandres Date: Wed May 23 21:52:27 2007 New Revision: 5618 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5618&view=rev Log: added ZConfig::defaultTextLocale Modified: trunk/libzypp/zypp/ZConfig.cc trunk/libzypp/zypp/ZConfig.h Modified: trunk/libzypp/zypp/ZConfig.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ZConfig.cc?rev=5618&r1=5617&r2=5618&view=diff ============================================================================== --- trunk/libzypp/zypp/ZConfig.cc (original) +++ trunk/libzypp/zypp/ZConfig.cc Wed May 23 21:52:27 2007 @@ -31,6 +31,16 @@ return getZYpp()->architecture(); } + /////////////////////////////////////////////////////////////////// + // + // METHOD NAME : ZConfig::defaultTextLocale + // METHOD TYPE : Locale + // + Locale ZConfig::defaultTextLocale() const + { + return getZYpp()->getTextLocale(); + } + ///////////////////////////////////////////////////////////////// } // namespace zypp /////////////////////////////////////////////////////////////////// Modified: trunk/libzypp/zypp/ZConfig.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ZConfig.h?rev=5618&r1=5617&r2=5618&view=diff ============================================================================== --- trunk/libzypp/zypp/ZConfig.h (original) +++ trunk/libzypp/zypp/ZConfig.h Wed May 23 21:52:27 2007 @@ -15,6 +15,7 @@ #include <iosfwd> #include "zypp/Arch.h" +#include "zypp/Locale.h" #include "zypp/Pathname.h" /////////////////////////////////////////////////////////////////// @@ -34,6 +35,11 @@ public: /** The system architecture. */ Arch systemArchitecture() const; + + /** The prefered locale for translated labels, descriptions, + * descriptions, etc. passed to the UI. + */ + Locale defaultTextLocale() const; }; /////////////////////////////////////////////////////////////////// -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org