diff options
author | Ian Lance Taylor <iant@google.com> | 2008-03-06 05:51:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-03-06 05:51:42 +0000 |
commit | a4d4b13f6892131f5e79a5270862ad57a37fa2f0 (patch) | |
tree | ced1e74aa15d4b161268c197d041abdcb2c43593 /gold/options.cc | |
parent | 09ffbbe0d44895d6e6681430cf7a893840a9281b (diff) | |
download | gdb-a4d4b13f6892131f5e79a5270862ad57a37fa2f0.zip gdb-a4d4b13f6892131f5e79a5270862ad57a37fa2f0.tar.gz gdb-a4d4b13f6892131f5e79a5270862ad57a37fa2f0.tar.bz2 |
Use N_ for option help strings, and call gettext when printing them.
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/options.cc b/gold/options.cc index 80a723e..b27afe8 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -87,7 +87,7 @@ One_option::print() const { // -z takes long-names only. gold_assert(this->dashes != DASH_Z); - len += printf(" %s", this->helparg); + len += printf(" %s", gettext(this->helparg)); } comma = true; } @@ -117,7 +117,7 @@ One_option::print() const // For most options, we print "--frob FOO". But for -z // we print "-z frob=FOO". len += printf("%c%s", this->dashes == options::DASH_Z ? '=' : ' ', - this->helparg); + gettext(this->helparg)); } } @@ -130,7 +130,7 @@ One_option::print() const std::putchar(' '); // TODO: if we're boolean, add " (default)" when appropriate. - printf("%s\n", this->helpstring); + printf("%s\n", gettext(this->helpstring)); } void |