From 58f17dcf83dbd684613cbe8fea0886d2f81a3a14 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 25 Jul 2012 00:02:49 -0400 Subject: [PATCH] Add translator comments to module names --- src/bin/pg_dump/compress_io.c | 1 + src/bin/pg_dump/pg_backup_archiver.c | 1 + src/bin/pg_dump/pg_backup_custom.c | 1 + src/bin/pg_dump/pg_backup_db.c | 1 + src/bin/pg_dump/pg_backup_directory.c | 1 + src/bin/pg_dump/pg_backup_tar.c | 1 + src/bin/pg_dump/pg_dump_sort.c | 1 + 7 files changed, 7 insertions(+) diff --git a/src/bin/pg_dump/compress_io.c b/src/bin/pg_dump/compress_io.c index e192c724776..dea058899bf 100644 --- a/src/bin/pg_dump/compress_io.c +++ b/src/bin/pg_dump/compress_io.c @@ -74,6 +74,7 @@ struct CompressorState #endif }; +/* translator: this is a module name */ static const char *modulename = gettext_noop("compress_io"); static void ParseCompressionOption(int compression, CompressionAlgorithm *alg, diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index 7f2bc070ade..c7ef9a6fd33 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -112,6 +112,7 @@ typedef struct _outputContext int gzOut; } OutputContext; +/* translator: this is a module name */ static const char *modulename = gettext_noop("archiver"); diff --git a/src/bin/pg_dump/pg_backup_custom.c b/src/bin/pg_dump/pg_backup_custom.c index 204309d6ad6..f7dc5be8e5a 100644 --- a/src/bin/pg_dump/pg_backup_custom.c +++ b/src/bin/pg_dump/pg_backup_custom.c @@ -85,6 +85,7 @@ static pgoff_t _getFilePos(ArchiveHandle *AH, lclContext *ctx); static size_t _CustomWriteFunc(ArchiveHandle *AH, const char *buf, size_t len); static size_t _CustomReadFunc(ArchiveHandle *AH, char **buf, size_t *buflen); +/* translator: this is a module name */ static const char *modulename = gettext_noop("custom archiver"); diff --git a/src/bin/pg_dump/pg_backup_db.c b/src/bin/pg_dump/pg_backup_db.c index d912aaf77f3..c295fc5ddd2 100644 --- a/src/bin/pg_dump/pg_backup_db.c +++ b/src/bin/pg_dump/pg_backup_db.c @@ -23,6 +23,7 @@ #define DB_MAX_ERR_STMT 128 +/* translator: this is a module name */ static const char *modulename = gettext_noop("archiver (db)"); static void _check_database_version(ArchiveHandle *AH); diff --git a/src/bin/pg_dump/pg_backup_directory.c b/src/bin/pg_dump/pg_backup_directory.c index 494dd075295..a2be6ac000b 100644 --- a/src/bin/pg_dump/pg_backup_directory.c +++ b/src/bin/pg_dump/pg_backup_directory.c @@ -58,6 +58,7 @@ typedef struct char *filename; /* filename excluding the directory (basename) */ } lclTocEntry; +/* translator: this is a module name */ static const char *modulename = gettext_noop("directory archiver"); /* prototypes for private functions */ diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c index 9b581917e1e..ced5c13321e 100644 --- a/src/bin/pg_dump/pg_backup_tar.c +++ b/src/bin/pg_dump/pg_backup_tar.c @@ -101,6 +101,7 @@ typedef struct char *filename; } lclTocEntry; +/* translator: this is a module name */ static const char *modulename = gettext_noop("tar archiver"); static void _LoadBlobs(ArchiveHandle *AH, RestoreOptions *ropt); diff --git a/src/bin/pg_dump/pg_dump_sort.c b/src/bin/pg_dump/pg_dump_sort.c index 5318e7add89..cccc1e0646e 100644 --- a/src/bin/pg_dump/pg_dump_sort.c +++ b/src/bin/pg_dump/pg_dump_sort.c @@ -17,6 +17,7 @@ #include "dumputils.h" #include "dumpmem.h" +/* translator: this is a module name */ static const char *modulename = gettext_noop("sorter"); /*