add on_missing handler to the i18n

This commit is contained in:
Jinhao
2016-12-13 06:12:12 +08:00
parent 99a226e09c
commit a298c00ede
4 changed files with 85 additions and 31 deletions

View File

@@ -24,6 +24,9 @@ namespace nana
{
friend class i18n_eval;
public:
/// Sets a handler to handle a msgid which hasn't been translated.
static void set_missing(std::function<void(const std::string& msgid_utf8)> handler);
void load(const std::string& file);
void load_utf8(const std::string& file);