GUI: Correct some grammar in the cloud connection wizard

This commit is contained in:
eientei 2023-04-25 01:14:02 +12:00 committed by Eugene Sandulenko
parent 3e178ae7fe
commit 83fd89d461

View file

@ -180,9 +180,9 @@ void CloudConnectionWizard::showStepModeSelect() {
_manualModeButton = new ButtonWidget(_container, "ConnectionWizard_ModeSelect.ManualModeButton", _("Manual mode"), Common::U32String(), kCloudConnectionWizardManualModeButtonCmd); _manualModeButton = new ButtonWidget(_container, "ConnectionWizard_ModeSelect.ManualModeButton", _("Manual mode"), Common::U32String(), kCloudConnectionWizardManualModeButtonCmd);
#ifdef USE_SDL_NET #ifdef USE_SDL_NET
_quickModeLabel = new StaticTextWidget(_container, "ConnectionWizard_ModeSelect.QuickModeHint", _("Will ask you to run Local Webserver")); _quickModeLabel = new StaticTextWidget(_container, "ConnectionWizard_ModeSelect.QuickModeHint", _("Will ask you to run the Local Webserver"));
#else #else
_quickModeLabel = new StaticTextWidget(_container, "ConnectionWizard_ModeSelect.QuickModeHint", _("Requires Local Webserver feature"), Common::U32String(), ThemeEngine::kFontStyleNormal); _quickModeLabel = new StaticTextWidget(_container, "ConnectionWizard_ModeSelect.QuickModeHint", _("Requires the Local Webserver feature"), Common::U32String(), ThemeEngine::kFontStyleNormal);
_quickModeLabel->setEnabled(false); _quickModeLabel->setEnabled(false);
_quickModeButton->setEnabled(false); _quickModeButton->setEnabled(false);
#endif // USE_SDL_NET #endif // USE_SDL_NET
@ -203,8 +203,8 @@ void CloudConnectionWizard::showStepQuickMode1() {
showBackButton(); showBackButton();
showNextButton(); showNextButton();
Common::U32StringTokenizer tok(_("In this mode, Local Webserver must be running,\n" Common::U32StringTokenizer tok(_("In this mode, the Local Webserver must be running,\n"
"so your browser could forward data to ScummVM"), "\n"); "so your browser can forward data to ScummVM"), "\n");
Common::U32StringArray labels = tok.split(); Common::U32StringArray labels = tok.split();
@ -296,7 +296,7 @@ void CloudConnectionWizard::showStepQuickModeSuccess() {
showContainer("ConnectionWizard_Success"); showContainer("ConnectionWizard_Success");
_closeButton->setVisible(false); _closeButton->setVisible(false);
_label0 = new StaticTextWidget(_container, "ConnectionWizard_Success.Line1", _("You cloud storage has been connected!")); _label0 = new StaticTextWidget(_container, "ConnectionWizard_Success.Line1", _("Your cloud storage has been connected!"));
_button0 = new ButtonWidget(this, "GlobalOptions_Cloud_ConnectionWizard.FinishButton", _("Finish"), Common::U32String(), kCloseCmd); _button0 = new ButtonWidget(this, "GlobalOptions_Cloud_ConnectionWizard.FinishButton", _("Finish"), Common::U32String(), kCloseCmd);
} }
@ -318,8 +318,8 @@ void CloudConnectionWizard::showStepManualMode1() {
_label0 = new StaticTextWidget(_container, "ConnectionWizard_ManualModeStep1.Line1", _("Open this link in your browser:")); _label0 = new StaticTextWidget(_container, "ConnectionWizard_ManualModeStep1.Line1", _("Open this link in your browser:"));
_button0 = new ButtonWidget(_container, "ConnectionWizard_ManualModeStep1.OpenLinkButton", Common::U32String("https://cloud.scummvm.org/"), _("Open URL"), kCloudConnectionWizardOpenUrlStorageCmd); _button0 = new ButtonWidget(_container, "ConnectionWizard_ManualModeStep1.OpenLinkButton", Common::U32String("https://cloud.scummvm.org/"), _("Open URL"), kCloudConnectionWizardOpenUrlStorageCmd);
Common::U32StringTokenizer tok(_("When it fails to pass JSON code to ScummVM,\n" Common::U32StringTokenizer tok(_("When it fails to pass the JSON code to ScummVM,\n"
"find it on Troubleshooting section of the page,\n" "find it on the Troubleshooting section of the page,\n"
"and go to the next step here."), "\n"); "and go to the next step here."), "\n");
Common::U32StringArray labels = tok.split(); Common::U32StringArray labels = tok.split();
@ -352,7 +352,7 @@ void CloudConnectionWizard::showStepManualMode2() {
showBackButton(); showBackButton();
showNextButton(); showNextButton();
_label0 = new StaticTextWidget(_container, "ConnectionWizard_ManualModeStep2.Line1", _("Copy JSON code from browser here and press Next:")); _label0 = new StaticTextWidget(_container, "ConnectionWizard_ManualModeStep2.Line1", _("Copy the JSON code from the browser here and press Next:"));
_codeBox = new EditTextWidget(_container, "ConnectionWizard_ManualModeStep2.CodeBox", Common::U32String(), Common::U32String(), 0, 0, ThemeEngine::kFontStyleConsole); _codeBox = new EditTextWidget(_container, "ConnectionWizard_ManualModeStep2.CodeBox", Common::U32String(), Common::U32String(), 0, 0, ThemeEngine::kFontStyleConsole);
_button0 = new ButtonWidget(_container, "ConnectionWizard_ManualModeStep2.PasteButton", _("Paste"), _("Paste code from clipboard"), kCloudConnectionWizardPasteCodeCmd); _button0 = new ButtonWidget(_container, "ConnectionWizard_ManualModeStep2.PasteButton", _("Paste"), _("Paste code from clipboard"), kCloudConnectionWizardPasteCodeCmd);
_label1 = new StaticTextWidget(_container, "ConnectionWizard_ManualModeStep2.Line2", Common::U32String()); _label1 = new StaticTextWidget(_container, "ConnectionWizard_ManualModeStep2.Line2", Common::U32String());
@ -375,8 +375,8 @@ void CloudConnectionWizard::showStepManualModeFailure() {
showBackButton(); showBackButton();
_label0 = new StaticTextWidget(_container, "ConnectionWizard_Failure.Line1", _("Cloud storage was not connected.")); _label0 = new StaticTextWidget(_container, "ConnectionWizard_Failure.Line1", _("Cloud storage was not connected."));
_label1 = new StaticTextWidget(_container, "ConnectionWizard_Failure.Line2", _("Make sure JSON code was copied correctly and retry.")); _label1 = new StaticTextWidget(_container, "ConnectionWizard_Failure.Line2", _("Make sure the JSON code was copied correctly and retry."));
_label2 = new StaticTextWidget(_container, "ConnectionWizard_Failure.Line3", _("It it doesn't work, try from the beginning.")); _label2 = new StaticTextWidget(_container, "ConnectionWizard_Failure.Line3", _("It it doesn't work, try again from the beginning."));
_label3 = new StaticTextWidget(_container, "ConnectionWizard_Failure.Line4", _("Error message: ") + _errorMessage, Common::U32String(), ThemeEngine::kFontStyleNormal); _label3 = new StaticTextWidget(_container, "ConnectionWizard_Failure.Line4", _("Error message: ") + _errorMessage, Common::U32String(), ThemeEngine::kFontStyleNormal);
_label3->setEnabled(false); _label3->setEnabled(false);
} }
@ -490,7 +490,7 @@ void CloudConnectionWizard::manualModeConnect() {
if (CloudMan.isWorking()) { if (CloudMan.isWorking()) {
bool cancel = true; bool cancel = true;
MessageDialog alert(_("Another Storage is working now. Do you want to interrupt it?"), _("Yes"), _("No")); MessageDialog alert(_("Another Storage is working right now. Do you want to interrupt it?"), _("Yes"), _("No"));
if (alert.runModal() == GUI::kMessageOK) { if (alert.runModal() == GUI::kMessageOK) {
if (CloudMan.isDownloading()) if (CloudMan.isDownloading())
CloudMan.cancelDownload(); CloudMan.cancelDownload();
@ -499,7 +499,7 @@ void CloudConnectionWizard::manualModeConnect() {
// I believe it still would return `true` here, but just in case // I believe it still would return `true` here, but just in case
if (CloudMan.isWorking()) { if (CloudMan.isWorking()) {
MessageDialog alert2(_("Wait until current Storage finishes up and try again.")); MessageDialog alert2(_("Wait until current Storage finishes and try again."));
alert2.runModal(); alert2.runModal();
} else { } else {
cancel = false; cancel = false;
@ -527,7 +527,7 @@ void CloudConnectionWizard::manualModeConnect() {
delete callback; delete callback;
if (_label1) if (_label1)
// I18N: JSON is name of the format, this message is displayed if user entered something incorrect to the text field // I18N: JSON is name of the format, this message is displayed if user entered something incorrect to the text field
_label1->setLabel(_("JSON code contents is malformed.")); _label1->setLabel(_("JSON code contents are malformed."));
return; return;
} }