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:
parent
69b5959282
commit
679a3b6d0a
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user