diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-17 12:02:13 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-17 12:02:13 +0000 |
| commit | 60ead29b8401513e185a35fcb5be78737741366e (patch) | |
| tree | 7284aa9b38c4d0e8891a69bb267dad2e79275462 /plugins/dfinput | |
| parent | 1fb460ae55f60ddf099e7f9713c44838519fe028 (diff) | |
| download | pcsxr-60ead29b8401513e185a35fcb5be78737741366e.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@26207 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput')
| -rw-r--r-- | plugins/dfinput/pad.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/plugins/dfinput/pad.c b/plugins/dfinput/pad.c index 61fa6bdb..4d17cf24 100644 --- a/plugins/dfinput/pad.c +++ b/plugins/dfinput/pad.c @@ -24,6 +24,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "config.h" + #include <stdio.h> #include <stdint.h> #include <stdlib.h> @@ -43,11 +45,20 @@ #include <pthread.h> #include <errno.h> #include "padjoy.h" +#ifdef ENABLE_NLS +#include <libintl.h> +#include <locale.h> +#define _(x) gettext(x) +#define N_(x) (x) +#else +#define _(x) (x) +#define N_(x) (x) +#endif #ifdef __linux__ -char *LibName = "Gamepad/Keyboard Input"; +char *LibName = N_("Gamepad/Keyboard Input"); #else -char *LibName = "Keyboard Input"; +char *LibName = N_("Keyboard Input"); #endif // Prototypes @@ -147,7 +158,7 @@ unsigned short PadStat[MAXDEVICES] = {0xffff, 0xffff}; int AnalogValue[MAXDEVICES][MAXPSXBUTTONS-4] = {{127,127,127,127}, {127,127,127,127}}; char *PSEgetLibName(void) { - return LibName; + return _(LibName); } uint32_t PSEgetLibType(void) { |
