[CMD] Prepare for localization by using resource strings (#7125)

Promote localization of cmd.exe.
JIRA issue: CORE-19680
Add some resource strings.
Use them instead of raw strings.
This commit is contained in:
Katayama Hirofumi MZ 2024-07-11 09:12:12 +09:00 committed by GitHub
parent c02289a08a
commit 18acf79551
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 176 additions and 16 deletions

View file

@ -171,8 +171,7 @@ INT cmd_call(LPTSTR param)
if (!Cmd || (Cmd->Type == C_FOR) || (Cmd->Type == C_IF) ||
((Cmd->Type != C_COMMAND) && (Cmd->Type != C_REM)))
{
// FIXME: Localize
ConErrPrintf(_T("%s was unexpected.\n"), first);
ConErrResPrintf(STRING_ERROR_UNEXPECTED, first);
#ifdef MSCMD_CALL_QUIRKS
if (first != param)
@ -198,8 +197,7 @@ INT cmd_call(LPTSTR param)
/* A batch context must be present */
if (!bc)
{
// FIXME: Localize
ConErrPuts(_T("Invalid attempt to call batch label outside of batch script.\n"));
ConErrResPuts(STRING_ERROR_CALL_BAD_LABEL);
FreeCommand(Cmd);
return (nErrorLevel = 1);
}