mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 15:00:30 +02: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
@@ -517,7 +517,7 @@ void ListView::Measure(const UIContext &dc, MeasureSpec horiz, MeasureSpec vert)
|
||||
}
|
||||
|
||||
std::string ListView::DescribeText() const {
|
||||
auto u = GetI18NCategory("UI Elements");
|
||||
auto u = GetI18NCategory(I18NCat::UI_ELEMENTS);
|
||||
return DescribeListOrdered(u->T("List:"));
|
||||
}
|
||||
|
||||
@@ -552,4 +552,4 @@ bool StringVectorListAdaptor::AddEventCallback(View *view, std::function<EventRe
|
||||
return EVENT_DONE;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace
|
||||
Reference in new issue
Block a user