https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6b2eeb0a298a89158eb2fa...
commit 6b2eeb0a298a89158eb2fa6dd66b8445088f0830 Author: Kyle Katarn 112266950+KRosUser@users.noreply.github.com AuthorDate: Sat Sep 3 17:22:14 2022 +0200 Commit: GitHub noreply@github.com CommitDate: Sat Sep 3 17:22:14 2022 +0200
[CONSOLE.CPL] Use translated resource rather than hardcoded text (#4647) --- dll/cpl/console/console.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dll/cpl/console/console.c b/dll/cpl/console/console.c index 077ff3a9278..d4444f29f18 100644 --- a/dll/cpl/console/console.c +++ b/dll/cpl/console/console.c @@ -237,10 +237,14 @@ InitApplet(HANDLE hSectionOrWnd) psh.dwFlags = PSH_PROPSHEETPAGE | PSH_PROPTITLE | /* PSH_USEHICON | */ PSH_USEICONID | PSH_NOAPPLYNOW | PSH_USECALLBACK;
if (ConInfo->ConsoleTitle[0] != UNICODE_NULL) + { StringCchPrintfW(szTitle, ARRAYSIZE(szTitle), L""%s"", ConInfo->ConsoleTitle); + psh.pszCaption = szTitle; + } else - StringCchCopyW(szTitle, ARRAYSIZE(szTitle), L"ReactOS Console"); - psh.pszCaption = szTitle; + { + psh.pszCaption = MAKEINTRESOURCEW(IDS_CPLNAME); + }
if (pSharedInfo != NULL) {