mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 22:10:29 +02:00
Make the i18n T function use std::string_view
Buildfixes, crashfixes One more Android buildfix Buildfix Qt
This commit is contained in:
1 parent
9322b4c6dc
commit
c5791764d8
135 files changed
+436
-486
No files matched your search
+2
-2
@@ -332,7 +332,7 @@ void ProductView::CreateViews() {
|
||||
}
|
||||
|
||||
float size = entry_.size / (1024.f * 1024.f);
|
||||
Add(new TextView(StringFromFormat("%s: %.2f %s", st->T("Size"), size, st->T("MB"))));
|
||||
Add(new TextView(StringFromFormat("%s: %.2f %s", st->T_cstr("Size"), size, st->T_cstr("MB"))));
|
||||
}
|
||||
|
||||
void ProductView::Update() {
|
||||
@@ -494,7 +494,7 @@ void StoreScreen::CreateViews() {
|
||||
if (connectionError_ || loading_) {
|
||||
auto st = GetI18NCategory(I18NCat::STORE);
|
||||
content = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT, 1.0f));
|
||||
content->Add(new TextView(loading_ ? std::string(st->T("Loading...")) : StringFromFormat("%s: %d", st->T("Connection Error"), resultCode_)));
|
||||
content->Add(new TextView(loading_ ? std::string(st->T("Loading...")) : StringFromFormat("%s: %d", st->T_cstr("Connection Error"), resultCode_)));
|
||||
if (!loading_) {
|
||||
content->Add(new Button(di->T("Retry")))->OnClick.Handle(this, &StoreScreen::OnRetry);
|
||||
|
||||
|
||||
Reference in new issue
Block a user