From 60ead29b8401513e185a35fcb5be78737741366e Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Mon, 17 Aug 2009 12:02:13 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@26207 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfinput/pad.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'plugins/dfinput') 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 #include #include @@ -43,11 +45,20 @@ #include #include #include "padjoy.h" +#ifdef ENABLE_NLS +#include +#include +#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) { -- cgit v1.2.3