8 #ifndef BOOST_LOCLAE_GNU_GETTEXT_HPP
9 #define BOOST_LOCLAE_GNU_GETTEXT_HPP
11 #include <boost/locale/message.hpp>
12 #include <boost/function.hpp>
24 namespace gnu_gettext {
68 size_t pos = n.find(
"/");
69 if(pos==std::string::npos) {
74 name = n.substr(0,pos);
92 return !(*
this==other);
100 std::vector<std::string>
paths;
116 std::string
const &file_name,
134 template<
typename CharType>
145 #ifdef BOOST_LOCALE_ENABLE_CHAR16_T
150 #ifdef BOOST_LOCALE_ENABLE_CHAR32_T
a facet that holds general information about locale
Definition: info.hpp:27
domains_type domains
Definition: gnu_gettext.hpp:99
bool operator!=(domain const &other) const
Definition: gnu_gettext.hpp:90
std::string encoding
Definition: gnu_gettext.hpp:44
std::string locale_category
Definition: gnu_gettext.hpp:46
This structure holds all information required for creating gnu-gettext message catalogs,.
Definition: gnu_gettext.hpp:34
domain(std::string const &n)
Definition: gnu_gettext.hpp:66
bool operator==(domain const &other) const
Definition: gnu_gettext.hpp:83
std::vector< std::string > paths
Definition: gnu_gettext.hpp:101
This type represents GNU Gettext domain name for the messages.
Definition: gnu_gettext.hpp:55
std::string language
The language we load the catalog for, like "ru", "en", "de".
Definition: gnu_gettext.hpp:41
std::vector< domain > domains_type
Definition: gnu_gettext.hpp:97
std::string name
The name of the domain.
Definition: gnu_gettext.hpp:57
function< std::vector< char > std::string const &file_name, std::string const &encoding) > callback_type
Definition: gnu_gettext.hpp:119
callback_type callback
Definition: gnu_gettext.hpp:125
std::string country
The country we load the catalog for, like "US", "IL".
Definition: gnu_gettext.hpp:42
message_format< CharType > * create_messages_facet(messages_info const &info)
std::string variant
Language variant, like "euro" so it would look for catalog like de_DE@euro.
Definition: gnu_gettext.hpp:43
std::string encoding
The character encoding for the domain.
Definition: gnu_gettext.hpp:58