Skip to content

Commit

Permalink
Search for wxLocale correctly
Browse files Browse the repository at this point in the history
Object needs to be created to initialize this.
  • Loading branch information
Blake-Madden committed Dec 31, 2024
1 parent 87a3a16 commit d99e4df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpp_i18n_review.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace i18n_check
{
m_wx_info.m_wxuilocale_initialized = true;
}
if (cppBuffer.find(L"wxLocale::Init()") != std::wstring::npos)
if (cppBuffer.find(L"wxLocale") != std::wstring::npos)
{
m_wx_info.m_wxlocale_initialized = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/i18n_review.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ namespace i18n_check
if (is_verbose() && !m_wx_info.m_wxlocale_initialized)
{
m_wx_info.m_app_init_info.m_usage.m_value =
_WXTRANS_WSTR(L"wxLocale::Init() should be called from your OnInit() "
_WXTRANS_WSTR(L"A wxLocale object should be constructed from your OnInit() "
"function if you rely on C runtime functions to be localized.");
m_suspect_i18n_usage.push_back(m_wx_info.m_app_init_info);
}
Expand Down

0 comments on commit d99e4df

Please sign in to comment.