From bb3ba8c0ed8d39f1d5032802025ef583638f3f00 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 23 May 2007 19:52:27 +0000 Subject: [PATCH] added ZConfig::defaultTextLocale --- zypp/ZConfig.cc | 10 ++++++++++ zypp/ZConfig.h | 6 ++++++ 2 files changed, 16 insertions(+) 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; }; /////////////////////////////////////////////////////////////////// -- 2.7.4