Qt: Add missing help text for savetitle/localizedtitle

wip3-rebase
Stenzek 2 days ago
parent 5684d1b005
commit 8f99b60ef2
No known key found for this signature in database

@ -3076,8 +3076,11 @@ void FullscreenUI::DrawCoverDownloaderWindow()
FSUI_CSTR("In the form below, specify the URLs to download covers from, with one template URL "
"per line. The following variables are available:"));
ImGui::NewLine();
ImGui::TextWrapped("%s", FSUI_CSTR("${title}: Title of the game.\n${filetitle}: Name component of the game's "
"filename.\n${serial}: Serial of the game."));
ImGui::TextWrapped("%s", FSUI_CSTR("${title}: Title of the game."));
ImGui::TextWrapped("%s", FSUI_CSTR("${savetitle}: Save title for the game, including the region suffix."));
ImGui::TextWrapped("%s", FSUI_CSTR("${localizedtitle}: Localized title for the game in its native language."));
ImGui::TextWrapped("%s", FSUI_CSTR("${filetitle}: Name component of the game's filename."));
ImGui::TextWrapped("%s", FSUI_CSTR("${serial}: Serial of the game."));
ImGui::NewLine();
ImGui::TextWrapped("%s", FSUI_CSTR("Example: https://www.example-not-a-real-domain.com/covers/${serial}.jpg"));
ImGui::NewLine();
@ -3102,6 +3105,8 @@ void FullscreenUI::DrawCoverDownloaderWindow()
if (HorizontalMenuButton(FSUI_ICONSTR(ICON_FA_DOWNLOAD, "Start Download"), download_enabled))
{
SaveCoverDownloaderURLs();
// TODO: Remove release once using move_only_function
std::unique_ptr<ProgressCallback> progress = OpenModalProgressDialog(FSUI_STR("Cover Downloader"), 1000.0f);
Host::QueueAsyncTask([progress = progress.release(),
@ -3127,10 +3132,7 @@ void FullscreenUI::DrawCoverDownloaderWindow()
Host::RunOnCoreThread([]() {
VideoThread::RunOnThread([]() {
if (IsFixedPopupDialogOpen(COVER_DOWNLOADER_DIALOG_NAME))
{
SaveCoverDownloaderURLs();
CloseFixedPopupDialog();
}
});
});
}

@ -17,7 +17,11 @@
#if 0
// TRANSLATION-STRING-AREA-BEGIN
TRANSLATE_NOOP("FullscreenUI", " (%u MB on disk)");
TRANSLATE_NOOP("FullscreenUI", "${title}: Title of the game.\n${filetitle}: Name component of the game's filename.\n${serial}: Serial of the game.");
TRANSLATE_NOOP("FullscreenUI", "${filetitle}: Name component of the game's filename.");
TRANSLATE_NOOP("FullscreenUI", "${localizedtitle}: Localized title for the game in its native language.");
TRANSLATE_NOOP("FullscreenUI", "${savetitle}: Save title for the game, including the region suffix.");
TRANSLATE_NOOP("FullscreenUI", "${serial}: Serial of the game.");
TRANSLATE_NOOP("FullscreenUI", "${title}: Title of the game.");
TRANSLATE_NOOP("FullscreenUI", "%.1f ms");
TRANSLATE_NOOP("FullscreenUI", "%.2f Seconds");
TRANSLATE_NOOP("FullscreenUI", "%d Frames");

@ -1773,12 +1773,11 @@ bool GameList::DownloadCovers(const std::vector<std::string>& url_templates, boo
if (!has_serial && url_template.find("${serial}") != std::string::npos)
has_serial = true;
}
if (!has_title && !has_save_title && !has_file_title && !has_serial)
if (!has_title && !has_localized_title && !has_save_title && !has_file_title && !has_serial)
{
Error::SetStringView(
error,
TRANSLATE_SV("GameList",
"URL template must contain at least one of ${title}, ${savetitle}, ${filetitle}, or ${serial}."));
Error::SetStringView(error,
TRANSLATE_SV("GameList", "URL template must contain at least one of ${title}, "
"${localizedtitle}, ${savetitle}, ${filetitle}, or ${serial}."));
return false;
}

@ -51,7 +51,7 @@
</sizepolicy>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Depending on your jurisdiction, &lt;span style=&quot; font-weight:700;&quot;&gt;game covers may be copyrighted&lt;/span&gt;. You are only authorized to use this tool with &lt;span style=&quot; font-weight:700;&quot;&gt;your own servers and images&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;In the box below, specify the URLs to download covers from, with one template URL per line. The following variables are available:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${title}:&lt;/span&gt; Title of the game.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${savetitle}:&lt;/span&gt; Title of the game including the region.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${localizedtitle}:&lt;/span&gt; Localized (native language) title of the game.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${filetitle}:&lt;/span&gt; Name component of the game's filename.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${serial}:&lt;/span&gt; Serial of the game.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Example:&lt;/span&gt; https://www.example-not-a-real-domain.com/covers/${serial}.jpg&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Depending on your jurisdiction, &lt;span style=&quot; font-weight:700;&quot;&gt;game covers may be copyrighted&lt;/span&gt;. You are only authorized to use this tool with &lt;span style=&quot; font-weight:700;&quot;&gt;your own servers and images&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;In the box below, specify the URLs to download covers from, with one template URL per line. The following variables are available:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${title}:&lt;/span&gt; Title of the game.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${savetitle}:&lt;/span&gt; Save title for the game, including the region suffix.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${localizedtitle}:&lt;/span&gt; Localized title for the game in its native language.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${savetitle}:&lt;/span&gt; Title of the game including the region.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${localizedtitle}:&lt;/span&gt; Localized (native language) title of the game.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${filetitle}:&lt;/span&gt; Name component of the game's filename.&lt;br/&gt;&lt;span style=&quot; font-style:italic;&quot;&gt;${serial}:&lt;/span&gt; Serial of the game.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Example:&lt;/span&gt; https://www.example-not-a-real-domain.com/covers/${serial}.jpg&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>

Loading…
Cancel
Save