This repository has been archived on 2025-06-17. You can view files and clone it, but cannot push or open issues or pull requests.

31 lines
601 B
C++

#include "UserInterface.h"
#include <wx/uilocale.h>
class RelayFileApp : public wxApp
{
public:
bool OnInit() override
{
#ifdef _WIN32
SetProcessDPIAware();
#endif
loadLocale();
f_ = new UserInterface(_("RelayFile"));
f_->Show();
return true;
}
private:
void loadLocale()
{
auto* locale = new wxLocale(wxLANGUAGE_CHINESE_SIMPLIFIED);
locale->AddCatalogLookupPathPrefix(wxT("."));
locale->AddCatalog(wxT("internat"));
}
private:
UserInterface* f_;
};
IMPLEMENT_APP(RelayFileApp);
DECLARE_APP(RelayFileApp);