]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/aptconfiguration.h
merge patch from Daniel Hartwig to Show a error message if {,dist-}upgrade is used...
[apt.git] / apt-pkg / aptconfiguration.h
index e098d0fd6f4ea9d3921cd1cb0a77e9e128e9f5d8..d22b675c015ed8dff4ebf268e99995bf414b0032 100644 (file)
@@ -67,6 +67,14 @@ public:                                                                      /*{{{*/
        std::vector<std::string> static const getLanguages(bool const &All = false,
                        bool const &Cached = true, char const ** const Locale = 0);
 
+       /** \brief Are we interested in the given Language?
+        *
+        *  \param Lang is the language we want to check
+        *  \param All defines if we check against all codes or only against used codes
+        *  \return true if we are interested, false otherwise
+        */
+       bool static const checkLanguage(std::string Lang, bool const All = false);
+
        /** \brief Returns a vector of Architectures we support
         *
         *  \param Cached saves the result so we need to calculated it only once