Sha256: a5495f40eec615225bdbc515a7d76179413726b8a745fb2314becb0ecd265f4f

Contents?: true

Size: 1.09 KB

Versions: 16

Compression:

Stored size: 1.09 KB

Contents

#include <leatherman/locale/locale.hpp>

namespace leatherman { namespace locale {

    using namespace std;

    const std::locale get_locale(string const& id, string const& domain, vector<string> const& paths)
    {
        // std::locale is not supported on these platforms
        throw runtime_error("leatherman::locale::get_locale is not supported on this platform");
    }

    void clear_domain(string const& domain)
    {
        throw runtime_error("leatherman::locale::clear_domain is not supported on this platform");
    }

    string translate(string const& msg, string const& domain)
    {
        return msg;
    }

    string translate_p(string const& context, string const& msg, string const& domain)
    {
        return msg;
    }

    string translate_n(string const& single, string const& plural, int n, string const& domain)
    {
        return n == 1 ? single : plural;
    }

    string translate_np(string const& context, string const& single, string const& plural, int n, string const& domain)
    {
        return n == 1 ? single : plural;
    }

}}  // namespace leatherman::locale

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.12.1.cfacter.20181031 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.11.6.cfacter.20181031 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.12.1.cfacter.20181023 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.11.5.cfacter.20181022 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.12.0.cfacter.20181004 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.12.0.cfacter.20181001 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.12.0.cfacter.20180918 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.11.4.cfacter.20180821 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.11.3.cfacter.20180716 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.11.2.cfacter.20180612 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.9.6.cfacter.20180612 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.11.2.cfacter.20180606 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.9.6.cfacter.20180606 ext/facter/leatherman/locale/disabled/locale.cc
facter-3.11.0.cfacter.20180319 ext/facter/leatherman/locale/disabled/locale.cc
cfacter-3.11.0.rc.20180314 ext/facter/leatherman/locale/disabled/locale.cc