views:

39

answers:

0

I'm using gettext to handle translations on a C++ project of mine. I generate the .pot file using xgettext and then I create .po files for spanish and english using msginit (en.po and es.po) .

The problem is that, although the locale on my system is set to spanish, the .po file that gets automatically filled is en.po, where it should be es.po, because all strings are by default written in spanish in my project. All in all, the content from en.po should be the one in es.po and viceversa.

Is there a way of letting xgettext and/or msginit that spanish is the default language?