1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Initialize gettext for planetblupi domain

This commit is contained in:
Mathieu Schroeter 2017-02-14 21:59:33 +01:00
parent 69b5959282
commit 679a3b6d0a

View File

@ -600,10 +600,19 @@ static bool DoInit (Sint32 argc, char *argv[])
return true;
}
// Programme principal.
int main (int argc, char *argv[])
static void initGettext ()
{
setlocale (LC_ALL, "");
textdomain ("planetblupi");
bindtextdomain ("planetblupi", (GetBaseDir () + "share/locale").c_str ());
}
// Programme principal.
int main (int argc, char *argv[])
{
initGettext ();
if (!DoInit (argc, argv))
return -1;