translated main menu to german, omitting header info in gettext calls, libs, test gettext call in menuitem render

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4629 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2009-08-12 20:58:29 +00:00
parent e7a3cc012b
commit 581ecdb9f6
15 changed files with 141 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
// internationalization and localization
#include "pch.h"
#include "cube.h"
i18nmanager::i18nmanager(const char *domain, const char *basepath) : domain(domain), basepath(basepath)
{
locale = setlocale(LC_ALL, ""); // use current default locale
bindtextdomain(domain, basepath); // set base path
textdomain(domain);
printf("current locale: %s\n", locale);
printf(_("hello world\n")); // test output
}