Skip to content

Commit

Permalink
adapt: adapt to GMLIB v0.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
killcerr authored Jul 27, 2024
1 parent 23d2391 commit 3e56767
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ bool Entry::enable() {
mI18n->updateOrCreateLanguage("en_US", en_US);
mI18n->updateOrCreateLanguage("zh_CN", zh_CN);
mI18n->loadAllLanguages();
mI18n->chooseLanguage(mConfig->language);//maybe
mI18n->chooseLanguage(mConfig->language); // maybe
checkBanTimeTask();
RegisterCommands();
listenEvent();
Expand All @@ -49,8 +49,8 @@ JsonI18n& Entry::getI18n() { return mI18n.value(); }

} // namespace GMBlacklist

LL_REGISTER_PLUGIN(GMBlacklist::Entry, GMBlacklist::Entry::getInstance());
LL_REGISTER_MOD(GMBlacklist::Entry, GMBlacklist::Entry::getInstance());

std::string tr(std::string const& key, std::vector<std::string> const& data) {
return GMBlacklist::Entry::getInstance()->getI18n().get(key, data);
}
}

0 comments on commit 3e56767

Please sign in to comment.