diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-05-30 08:38:29 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-05-30 08:38:29 +0000 |
| commit | 502b3aecd646c124c99f82be813030a694782fcf (patch) | |
| tree | 873a95ebef323d69d5688d86378c9e5ee452146f /plugins/dfinput/cfg.c | |
| parent | 928e43def776ab2cb40dbca87316ef956b805249 (diff) | |
| download | pcsxr-502b3aecd646c124c99f82be813030a694782fcf.tar.gz | |
supported translation for plugin config utilities
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23603 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput/cfg.c')
| -rw-r--r-- | plugins/dfinput/cfg.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/plugins/dfinput/cfg.c b/plugins/dfinput/cfg.c index 3f6d0184..dbb7f858 100644 --- a/plugins/dfinput/cfg.c +++ b/plugins/dfinput/cfg.c @@ -24,6 +24,8 @@ * */ +#include "config.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -44,6 +46,10 @@ #include <errno.h> #include "padjoy.h" +#ifdef ENABLE_NLS +#include <libintl.h> +#endif + #ifdef __linux__ char *LibName = "Gamepad/Keyboard Input"; #else @@ -52,10 +58,6 @@ char *LibName = "Keyboard Input"; #define CONFIG_FILENAME "dfinput.cfg" -const unsigned char version = VERSION; -const unsigned char revision = REVISION; -const unsigned char build = BUILD; - // Prototypes static void loadConfig(); static void saveConfig(); @@ -1273,6 +1275,13 @@ void PADabout(void) { /*---------------------------------------------------------------------*/ int main(int argc, char **argv) { +#ifdef ENABLE_NLS + setlocale (LC_ALL, ""); + bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + textdomain (GETTEXT_PACKAGE); +#endif + gtk_set_locale(); gtk_init (&argc, &argv); |
