Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2005b77

Browse files
committed
initdb: Mark more messages for translation
Some Windows-only messages had apparently been forgotten so far.Also make the wording of the messages more consistent with similarmessages other parts, such as pg_ctl and pg_regress.
1 parent68219aa commit2005b77

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/bin/initdb/initdb.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo)
24312431

24322432
if (_CreateRestrictedToken==NULL)
24332433
{
2434-
fprintf(stderr,"WARNING: cannot create restricted tokens on this platform\n");
2434+
fprintf(stderr,_("%s:WARNING: cannot create restricted tokens on this platform\n"),progname);
24352435
if (Advapi32Handle!=NULL)
24362436
FreeLibrary(Advapi32Handle);
24372437
return0;
@@ -2440,7 +2440,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo)
24402440
/* Open the current token to use as a base for the restricted one */
24412441
if (!OpenProcessToken(GetCurrentProcess(),TOKEN_ALL_ACCESS,&origToken))
24422442
{
2443-
fprintf(stderr,"Failed toopen process token: error code %lu\n",GetLastError());
2443+
fprintf(stderr,_("%s: could notopen process token: error code %lu\n"),progname,GetLastError());
24442444
return0;
24452445
}
24462446

@@ -2453,7 +2453,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo)
24532453
SECURITY_BUILTIN_DOMAIN_RID,DOMAIN_ALIAS_RID_POWER_USERS,0,0,0,0,0,
24542454
0,&dropSids[1].Sid))
24552455
{
2456-
fprintf(stderr,"Failedto allocate SIDs: error code %lu\n",GetLastError());
2456+
fprintf(stderr,_("%s: could notto allocate SIDs: error code %lu\n"),progname,GetLastError());
24572457
return0;
24582458
}
24592459

@@ -2472,7 +2472,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo)
24722472

24732473
if (!b)
24742474
{
2475-
fprintf(stderr,"Failed tocreate restricted token: error code %lu\n",GetLastError());
2475+
fprintf(stderr,_("%s: could notcreate restricted token: error code %lu\n"),progname,GetLastError());
24762476
return0;
24772477
}
24782478

@@ -2493,7 +2493,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo)
24932493
processInfo))
24942494

24952495
{
2496-
fprintf(stderr,"CreateProcessAsUser failed: error code %lu\n",GetLastError());
2496+
fprintf(stderr,_("%s: could not start process for \"%s\": error code %lu\n"),progname,cmd,GetLastError());
24972497
return0;
24982498
}
24992499

@@ -2835,7 +2835,7 @@ main(int argc, char *argv[])
28352835

28362836
if (!CreateRestrictedProcess(cmdline,&pi))
28372837
{
2838-
fprintf(stderr,"Failed tore-exec with restricted token: error code %lu\n",GetLastError());
2838+
fprintf(stderr,_("%s: could notre-exec with restricted token: error code %lu\n"),progname,GetLastError());
28392839
}
28402840
else
28412841
{
@@ -2850,7 +2850,7 @@ main(int argc, char *argv[])
28502850

28512851
if (!GetExitCodeProcess(pi.hProcess,&x))
28522852
{
2853-
fprintf(stderr,"Failed toget exit code from subprocess: error code %lu\n",GetLastError());
2853+
fprintf(stderr,_("%s: could notget exit code from subprocess: error code %lu\n"),progname,GetLastError());
28542854
exit(1);
28552855
}
28562856
exit(x);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp