git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 470d886)
Re-add translation markers that were lost
2016年9月20日 16:00:00 +0000 (12:00 -0400)
2016年9月20日 16:00:00 +0000 (12:00 -0400)
When win32security.c was moved from src/backend/port/win32/security.c,
the message writing function was changed from write_stderr to log_error,
but nls.mk was not updated. We could add log_error to GETTEXT_TRIGGERS,
but it's also used in src/common/exec.c in a different way and that
would create some confusion or a larger patch. For now, just put an
explicit translation marker onto the strings that were previously
translated.


diff --git a/src/port/win32security.c b/src/port/win32security.c
index ab9cd67748dd026f65ede6ad23d6e508470d99fe..2c9ca15a6d91de663c47b67de513ccc825a17785 100644 (file)
--- a/src/port/win32security.c
+++ b/src/port/win32security.c
@@ -65,7 +65,7 @@ pgwin32_is_admin(void)
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_READ, &AccessToken))
{
- log_error("could not open process token: error code %lu\n",
+ log_error(_("could not open process token: error code %lu\n"),
GetLastError());
exit(1);
}
@@ -86,7 +86,7 @@ pgwin32_is_admin(void)
DOMAIN_ALIAS_RID_ADMINS, 0, 0, 0, 0, 0,
0, &AdministratorsSid))
{
- log_error("could not get SID for Administrators group: error code %lu\n",
+ log_error(_("could not get SID for Administrators group: error code %lu\n"),
GetLastError());
exit(1);
}
@@ -96,7 +96,7 @@ pgwin32_is_admin(void)
DOMAIN_ALIAS_RID_POWER_USERS, 0, 0, 0, 0, 0,
0, &PowerUsersSid))
{
- log_error("could not get SID for PowerUsers group: error code %lu\n",
+ log_error(_("could not get SID for PowerUsers group: error code %lu\n"),
GetLastError());
exit(1);
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /