GUI: Add I18N comments to the launcher buttons

This commit is contained in:
Eugene Sandulenko 2023-03-26 18:02:02 +02:00
parent f71bb53859
commit 071ce9ef29
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -244,21 +244,29 @@ void LauncherDialog::build() {
#endif
new StaticTextWidget(this, _title + ".Version", Common::U32String(gScummVMFullVersion));
if (!g_system->hasFeature(OSystem::kFeatureNoQuit))
if (!g_system->hasFeature(OSystem::kFeatureNoQuit)) {
// I18N: Button Quit ScummVM program. Q is the shortcut, Ctrl+Q, put it in parens for non-latin (~Q~)
new ButtonWidget(this, _title + ".QuitButton", _("~Q~uit"), _("Quit ScummVM"), kQuitCmd);
}
// I18N: Button About ScummVM program. b is the shortcut, Ctrl+b, put it in parens for non-latin (~b~)
new ButtonWidget(this, _title + ".AboutButton", _("A~b~out"), _("About ScummVM"), kAboutCmd);
// I18N: Button caption. O is the shortcut, Ctrl+O, put it in parens for non-latin (~O~)
new ButtonWidget(this, _title + ".OptionsButton", _("Global ~O~ptions..."), _("Change global ScummVM options"), kOptionsCmd, 0, _c("Global ~O~pts...", "lowres"));
// Above the lowest button rows: two more buttons (directly below the list box)
DropdownButtonWidget *addButton =
// I18N: Button caption. A is the shortcut, Ctrl+A, put it in parens for non-latin (~A~)
new DropdownButtonWidget(this, _title + ".AddGameButton", _("~A~dd Game..."), _("Add games to the list"), kAddGameCmd, 0, _c("~A~dd Game...", "lowres"));
_addButton = addButton;
_removeButton =
// I18N: Button caption. R is the shortcut, Ctrl+R, put it in parens for non-latin (~R~)
new ButtonWidget(this, _title + ".RemoveGameButton", _("~R~emove Game"), _("Remove game from the list. The game data files stay intact"), kRemoveGameCmd, 0, _c("~R~emove Game", "lowres"));
if (g_system->getOverlayWidth() > 320) {
// I18N: Button caption. Mass add games
addButton->appendEntry(_("Mass Add..."), kMassAddGameCmd);
} else {
// I18N: Button caption for lower resolution GUI. Mass add games
addButton->appendEntry(_c("Mass Add...", "lowres"), kMassAddGameCmd);
}