UI: Minor additions for translations and English text changes

- Adding translation support for all the substrings related to the single/multiframe GS Dump message.
- Correcting the None option in the Deinterlacing settings according to what was talked about in Crowdin, unified that string with the Big Picture mode.
- Minor English text fixes reported in Crowdin.

Second attempt at doing this PR after the former, https://github.com/PCSX2/pcsx2/pull/10253 , was mangled by bad squashing and rebasing.
This commit is contained in:
IlDucci 2023-12-06 12:54:52 +01:00 committed by Connor McLaughlin
parent 2c00ccca83
commit 2bfefaf296
7 changed files with 20 additions and 19 deletions

View File

@ -757,7 +757,7 @@ void DEV9SettingsWidget::onHddCreateClicked()
//GHC uses UTF8 on all platforms
QMessageBox::StandardButton selection =
QMessageBox::question(this, tr("Overwrite File?"),
tr("HDD image \"%1\" already exists?\n\n"
tr("HDD image \"%1\" already exists.\n\n"
"Do you want to overwrite?")
.arg(QString::fromStdString(hddPath)),
QMessageBox::Yes | QMessageBox::No);

View File

@ -509,7 +509,7 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget*
// Hardware Fixes tab
{
dialog->registerWidgetHelp(m_ui.cpuSpriteRenderBW, tr("CPU Sprite Renderer Size"), tr("0 (Disabled)"), tr(""));
dialog->registerWidgetHelp(m_ui.cpuSpriteRenderBW, tr("CPU Sprite Render Size"), tr("0 (Disabled)"), tr(""));
dialog->registerWidgetHelp(m_ui.cpuCLUTRender, tr("Software CLUT Render"), tr("0 (Disabled)"), tr(""));

View File

@ -153,7 +153,7 @@
</item>
<item>
<property name="text">
<string>None (Interlaced, also used by Progressive)</string>
<string>No Deinterlacing</string>
</property>
</item>
<item>
@ -1048,7 +1048,7 @@
<item row="0" column="1">
<widget class="QCheckBox" name="frameBufferConversion">
<property name="text">
<string>Frame Buffer Conversion</string>
<string>Framebuffer Conversion</string>
</property>
</widget>
</item>

View File

@ -688,28 +688,28 @@ void GSRenderer::VSync(u32 field, bool registers_written, bool idle_frame)
m_dump = std::unique_ptr<GSDumpBase>(new GSDumpUncompressed(m_snapshot, VMManager::GetDiscSerial(),
VMManager::GetDiscCRC(), screenshot_width, screenshot_height,
screenshot_pixels.empty() ? nullptr : screenshot_pixels.data(), fd, m_regs));
compression_str = "with no compression";
compression_str = TRANSLATE_SV("GS", "with no compression");
}
else if (GSConfig.GSDumpCompression == GSDumpCompressionMethod::LZMA)
{
m_dump = std::unique_ptr<GSDumpBase>(
new GSDumpXz(m_snapshot, VMManager::GetDiscSerial(), VMManager::GetDiscCRC(), screenshot_width,
screenshot_height, screenshot_pixels.empty() ? nullptr : screenshot_pixels.data(), fd, m_regs));
compression_str = "with LZMA compression";
compression_str = TRANSLATE_SV("GS", "with LZMA compression");
}
else
{
m_dump = std::unique_ptr<GSDumpBase>(
new GSDumpZst(m_snapshot, VMManager::GetDiscSerial(), VMManager::GetDiscCRC(), screenshot_width,
screenshot_height, screenshot_pixels.empty() ? nullptr : screenshot_pixels.data(), fd, m_regs));
compression_str = "with Zstandard compression";
compression_str = TRANSLATE_SV("GS", "with Zstandard compression");
}
delete[] fd.data;
Host::AddKeyedOSDMessage("GSDump",
fmt::format(TRANSLATE_FS("GS", "Saving {0} GS dump {1} to '{2}'"),
(m_dump_frames == 1) ? "single frame" : "multi-frame", compression_str,
(m_dump_frames == 1) ? TRANSLATE_SV("GS", "single frame") : TRANSLATE_SV("GS", "multi-frame"), compression_str,
Path::GetFileName(m_dump->GetPath())),
Host::OSD_INFO_DURATION);
}

View File

@ -3056,7 +3056,7 @@ void FullscreenUI::DrawGraphicsSettingsPage()
};
static constexpr const char* s_deinterlacing_options[] = {
FSUI_NSTR("Automatic (Default)"),
FSUI_NSTR("None"),
FSUI_NSTR("No Deinterlacing"),
FSUI_NSTR("Weave (Top Field First, Sawtooth)"),
FSUI_NSTR("Weave (Bottom Field First, Sawtooth)"),
FSUI_NSTR("Bob (Top Field First)"),
@ -6957,6 +6957,7 @@ TRANSLATE_NOOP("FullscreenUI", "On");
TRANSLATE_NOOP("FullscreenUI", "Adaptive");
TRANSLATE_NOOP("FullscreenUI", "Bilinear (Smooth)");
TRANSLATE_NOOP("FullscreenUI", "Bilinear (Sharp)");
TRANSLATE_NOOP("FullscreenUI", "No Deinterlacing");
TRANSLATE_NOOP("FullscreenUI", "Weave (Top Field First, Sawtooth)");
TRANSLATE_NOOP("FullscreenUI", "Weave (Bottom Field First, Sawtooth)");
TRANSLATE_NOOP("FullscreenUI", "Bob (Top Field First)");