mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Combine two translation strings, add another
This commit is contained in:
parent
241dd4093b
commit
509d04844b
2 changed files with 11 additions and 4 deletions
|
@ -150,6 +150,7 @@ void DisplayLayoutScreen::dialogFinished(const Screen *dialog, DialogResult resu
|
|||
}
|
||||
|
||||
UI::EventReturn DisplayLayoutScreen::OnPostProcShaderChange(UI::EventParams &e) {
|
||||
// Remove the virtual "Off" entry. TODO: Get rid of it generally.
|
||||
g_Config.vPostShaderNames.erase(std::remove(g_Config.vPostShaderNames.begin(), g_Config.vPostShaderNames.end(), "Off"), g_Config.vPostShaderNames.end());
|
||||
|
||||
NativeMessageReceived("gpu_configChanged", "");
|
||||
|
@ -163,7 +164,13 @@ UI::EventReturn DisplayLayoutScreen::OnPostProcShaderChange(UI::EventParams &e)
|
|||
}
|
||||
|
||||
static std::string PostShaderTranslateName(const char *value) {
|
||||
auto gr = GetI18NCategory("Graphics");
|
||||
auto ps = GetI18NCategory("PostShaders");
|
||||
if (!strcmp(value, "Off")) {
|
||||
// Off is a legacy fake item (gonna migrate off it later).
|
||||
return gr->T("Add postprocessing shader");
|
||||
}
|
||||
|
||||
const ShaderInfo *info = GetPostShaderInfo(value);
|
||||
if (info) {
|
||||
return ps->T(value, info ? info->name.c_str() : value);
|
||||
|
@ -263,7 +270,7 @@ void DisplayLayoutScreen::CreateViews() {
|
|||
return g_Config.bStereoRendering && multiViewSupported;
|
||||
};
|
||||
|
||||
leftColumn->Add(new ItemHeader(gr->T("Postprocessing effect")));
|
||||
leftColumn->Add(new ItemHeader(gr->T("Postprocessing shaders")));
|
||||
|
||||
std::set<std::string> alreadyAddedShader;
|
||||
settingsVisible_.resize(g_Config.vPostShaderNames.size());
|
||||
|
@ -285,7 +292,7 @@ void DisplayLayoutScreen::CreateViews() {
|
|||
postProcChoice_ = shaderRow->Add(new ChoiceWithValueDisplay(&shaderNames_[i], "", &PostShaderTranslateName, new LinearLayoutParams(1.0f)));
|
||||
postProcChoice_->OnClick.Add([=](EventParams &e) {
|
||||
auto gr = GetI18NCategory("Graphics");
|
||||
auto procScreen = new PostProcScreen(gr->T("Postprocessing Shader"), i, false);
|
||||
auto procScreen = new PostProcScreen(gr->T("Postprocessing shaders"), i, false);
|
||||
procScreen->SetHasDropShadow(false);
|
||||
procScreen->OnChoice.Handle(this, &DisplayLayoutScreen::OnPostProcShaderChange);
|
||||
if (e.v)
|
||||
|
|
|
@ -555,8 +555,8 @@ Overlay Information = Overlay information
|
|||
Partial Stretch = Partial stretch
|
||||
Percent of FPS = Percent of FPS
|
||||
Performance = Performance
|
||||
Postprocessing effect = Postprocessing effects
|
||||
Postprocessing Shader = Postprocessing shader
|
||||
Add postprocessing shader
|
||||
Postprocessing shaders = Postprocessing shaders
|
||||
Recreate Activity = Recreate activity
|
||||
Render duplicate frames to 60hz = Render duplicate frames to 60 Hz
|
||||
RenderDuplicateFrames Tip = Can make framerate smoother in games that run at lower framerates
|
||||
|
|
Loading…
Add table
Reference in a new issue