From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Tue, 05 Jul 2011 15:56:46 +0100 Subject: [Cluster-devel] [PATCH 1/3] gfs2_convert: Add i18n support In-Reply-To: <1309876901-20779-1-git-send-email-cmaiolino@redhat.com> References: <1309876901-20779-1-git-send-email-cmaiolino@redhat.com> Message-ID: <1309877806.2799.55.camel@menhir> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Also looks good, Steve. On Tue, 2011-07-05 at 11:41 -0300, Carlos Maiolino wrote: > 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 > #include > #include > +#include > +#include > +#define _(String) gettext(String) > > #include > #include > @@ -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);