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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user