mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer. Needed for later config refactorings, good to get in early.
This commit is contained in:
1 parent
07b8b6f35a
commit
ee6234ecb6
65 files changed
+535
-516
No files matched your search
@@ -218,7 +218,7 @@ UI::EventReturn UIScreen::OnCancel(UI::EventParams &e) {
|
||||
|
||||
PopupScreen::PopupScreen(std::string title, std::string button1, std::string button2)
|
||||
: title_(title) {
|
||||
auto di = GetI18NCategory("Dialog");
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
if (!button1.empty())
|
||||
button1_ = di->T(button1.c_str());
|
||||
if (!button2.empty())
|
||||
|
||||
Reference in new issue
Block a user