msginit email address command line argument?

Posted by C.W.Holeman II on Stack Overflow See other posts from Stack Overflow or by C.W.Holeman II
Published on 2009-06-20T16:49:23Z Indexed on 2010/03/18 17:51 UTC
Read the original article Hit count: 400

msginit prompts for an email address. Is there a way to tell msginit what email address to use without being prompted for it such as a command line argument?

cat >hellogt.cxx <<EOF
// hellogt.cxx
#include <libintl.h>
#include <locale.h>
#include <iostream>
int main (){
    setlocale(LC_ALL, "");
    bindtextdomain("hellogt", "./");
    textdomain( "hellogt" );
    std::cout << gettext("hello, world!") << std::endl;
}
EOF
g++ -ohellogt hellogt.cxx
xgettext -d hellogt -o hellogt.pot hellogt.cxx
msginit -l es_MX -o spanish.po -i hellogt.pot

© Stack Overflow or respective owner

Related posts about internationalization

Related posts about gettext