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

@ -70,7 +70,7 @@ AdvancedSettingsWidget::AdvancedSettingsWidget(SettingsWindow* dialog, QWidget*
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.pineEnable, "EmuCore", "EnablePINE", false);
SettingWidgetBinder::BindWidgetToIntSetting(sif, m_ui.pineSlot, "EmuCore", "PINESlot", 28011);
dialog->registerWidgetHelp(m_ui.eeRoundingMode, tr("Rounding Mode"), tr("Chop / Zero (Default)"), tr(""));
dialog->registerWidgetHelp(m_ui.eeRoundingMode, tr("Rounding Mode"), tr("Chop/Zero (Default)"), tr(""));
dialog->registerWidgetHelp(m_ui.eeClampMode, tr("Clamping Mode"), tr("Normal (Default)"), tr(""));
@ -96,8 +96,8 @@ AdvancedSettingsWidget::AdvancedSettingsWidget(SettingsWindow* dialog, QWidget*
"end of the block, not on the instruction which caused the exception. Refer to the console to see the address where the invalid "
"access occurred."));
dialog->registerWidgetHelp(m_ui.vu0RoundingMode, tr("VU0 Rounding Mode"), tr("Chop / Zero (Default)"), tr(""));
dialog->registerWidgetHelp(m_ui.vu1RoundingMode, tr("VU1 Rounding Mode"), tr("Chop / Zero (Default)"), tr(""));
dialog->registerWidgetHelp(m_ui.vu0RoundingMode, tr("VU0 Rounding Mode"), tr("Chop/Zero (Default)"), tr(""));
dialog->registerWidgetHelp(m_ui.vu1RoundingMode, tr("VU1 Rounding Mode"), tr("Chop/Zero (Default)"), tr(""));
dialog->registerWidgetHelp(m_ui.vu0ClampMode, tr("VU0 Clamping Mode"), tr("Normal (Default)"), tr(""));
dialog->registerWidgetHelp(m_ui.vu1ClampMode, tr("VU1 Clamping Mode"), tr("Normal (Default)"), tr(""));

View File

@ -89,7 +89,7 @@
</item>
<item>
<property name="text">
<string>Chop / Zero (Default)</string>
<string>Chop/Zero (Default)</string>
</property>
</item>
</widget>
@ -206,7 +206,7 @@
</item>
<item>
<property name="text">
<string>Chop / Zero (Default)</string>
<string>Chop/Zero (Default)</string>
</property>
</item>
</widget>
@ -300,7 +300,7 @@
</item>
<item>
<property name="text">
<string>Chop / Zero (Default)</string>
<string>Chop/Zero (Default)</string>
</property>
</item>
</widget>

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(""));
@ -524,7 +524,7 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget*
"Fixes some processing effects such as the shadows in the Jak series and radiosity in GTA:SA."));
dialog->registerWidgetHelp(m_ui.disableDepthEmulation, tr("Disable Depth Emulation"), tr("Unchecked"),
tr("Disable the support of depth buffers in the texture cache."
tr("Disable the support of depth buffers in the texture cache. "
"It can help to increase speed but it will likely create various glitches."));
dialog->registerWidgetHelp(m_ui.disableSafeFeatures, tr("Disable Safe Features"), tr("Unchecked"),
@ -545,7 +545,7 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsWindow* dialog, QWidget*
"Helps Harry Potter and Stuntman games. It has a big impact on performance."));
dialog->registerWidgetHelp(m_ui.preloadFrameData, tr("Preload Frame Data"), tr("Unchecked"),
tr("Uploads GS data when rendering a new frame to reproduce some effects accurately. "));
tr("Uploads GS data when rendering a new frame to reproduce some effects accurately."));
dialog->registerWidgetHelp(m_ui.textureInsideRt, tr("Texture Inside RT"), tr("Disabled"),
tr("Allows the texture cache to reuse as an input texture the inner portion of a previous framebuffer."));

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)"),
@ -3349,7 +3349,7 @@ void FullscreenUI::DrawGraphicsSettingsPage()
FSUI_CSTR("Force a primitive flush when a framebuffer is also an input texture."), "EmuCore/GS", "UserHacks_AutoFlushLevel",
0, s_auto_flush_options, std::size(s_auto_flush_options), true, 0, manual_hw_fixes);
DrawToggleSetting(bsi, FSUI_CSTR("CPU Framebuffer Conversion"),
FSUI_CSTR("Convert 4-bit and 8-bit frame buffer on the CPU instead of the GPU."), "EmuCore/GS",
FSUI_CSTR("Convert 4-bit and 8-bit framebuffer on the CPU instead of the GPU."), "EmuCore/GS",
"UserHacks_CPU_FB_Conversion", false, manual_hw_fixes);
DrawToggleSetting(bsi, FSUI_CSTR("Disable Depth Emulation"),
FSUI_CSTR("Disable the support of depth buffers in the texture cache."), "EmuCore/GS", "UserHacks_DisableDepthSupport",
@ -6582,7 +6582,7 @@ TRANSLATE_NOOP("FullscreenUI", "Object range to skip drawing.");
TRANSLATE_NOOP("FullscreenUI", "Skip Draw End");
TRANSLATE_NOOP("FullscreenUI", "Auto Flush (Hardware)");
TRANSLATE_NOOP("FullscreenUI", "CPU Framebuffer Conversion");
TRANSLATE_NOOP("FullscreenUI", "Convert 4-bit and 8-bit frame buffer on the CPU instead of the GPU.");
TRANSLATE_NOOP("FullscreenUI", "Convert 4-bit and 8-bit framebuffer on the CPU instead of the GPU.");
TRANSLATE_NOOP("FullscreenUI", "Disable Depth Emulation");
TRANSLATE_NOOP("FullscreenUI", "Disable the support of depth buffers in the texture cache.");
TRANSLATE_NOOP("FullscreenUI", "Disable Safe Features");
@ -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)");