From: Carlos Maiolino <cmaiolino@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/3] gfs2_convert: Add i18n support
Date: Tue, 5 Jul 2011 11:41:39 -0300 [thread overview]
Message-ID: <1309876901-20779-1-git-send-email-cmaiolino@redhat.com> (raw)
Add the headers and macros needed to i18n support into gfs2_convert.
---
gfs2/convert/gfs2_convert.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/gfs2/convert/gfs2_convert.c b/gfs2/convert/gfs2_convert.c
index 20cca80..b47bbb7 100644
--- a/gfs2/convert/gfs2_convert.c
+++ b/gfs2/convert/gfs2_convert.c
@@ -23,6 +23,9 @@
#include <sys/time.h>
#include <errno.h>
#include <ctype.h>
+#include <libintl.h>
+#include <locale.h>
+#define _(String) gettext(String)
#include <linux/types.h>
#include <linux/gfs2_ondisk.h>
@@ -2112,6 +2115,10 @@ int main(int argc, char **argv)
struct gfs2_buffer_head *bh;
struct gfs2_options opts;
+ /* Set i18n support to gfs2_convert */
+ setlocale(LC_ALL, "");
+ textdomain("gfs2-utils");
+
version();
process_parameters(argc, argv, &opts);
error = init(&sb2);
--
1.7.5.2
next reply other threads:[~2011-07-05 14:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-05 14:41 Carlos Maiolino [this message]
2011-07-05 14:41 ` [Cluster-devel] [PATCH 2/3] gfs2_convert: set translatable strings Carlos Maiolino
2011-07-05 14:56 ` Steven Whitehouse
2011-07-05 14:41 ` [Cluster-devel] [PATCH 3/3] i18n support: Add gfs2_convert to translatable list Carlos Maiolino
2011-07-05 14:56 ` Steven Whitehouse
2011-07-05 14:56 ` [Cluster-devel] [PATCH 1/3] gfs2_convert: Add i18n support Steven Whitehouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1309876901-20779-1-git-send-email-cmaiolino@redhat.com \
--to=cmaiolino@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).