diff options
Diffstat (limited to 'plugins/dfsound/spu.c')
| -rw-r--r-- | plugins/dfsound/spu.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index e1b0e099..bc57aea3 100644 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -16,6 +16,7 @@ ***************************************************************************/ #include "stdafx.h" +#include "config.h" #define _IN_SPU @@ -24,15 +25,25 @@ #include "dsoundoss.h" #include "regs.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 + #if defined(USEALSA) -static char * libraryName = "ALSA Sound"; +static char * libraryName = N_("ALSA Sound"); #elif defined (USEOSS) -static char * libraryName = "OSS Sound"; +static char * libraryName = N_("OSS Sound"); #else -static char * libraryName = "NULL Sound"; +static char * libraryName = N_("NULL Sound"); #endif -static char * libraryInfo = "P.E.Op.S. OSS Driver V1.7\nCoded by Pete Bernert and the P.E.Op.S. team\n"; +static char * libraryInfo = N_("P.E.Op.S. OSS Driver V1.7\nCoded by Pete Bernert and the P.E.Op.S. team\n"); // globals @@ -897,7 +908,7 @@ void CALLBACK SPUregisterCDDAVolume(void (CALLBACK *CDDAVcallback)(unsigned shor // COMMON PLUGIN INFO FUNCS char * CALLBACK PSEgetLibName(void) { - return libraryName; + return _(libraryName); } unsigned long CALLBACK PSEgetLibType(void) @@ -912,5 +923,5 @@ unsigned long CALLBACK PSEgetLibVersion(void) char * SPUgetLibInfos(void) { - return libraryInfo; + return _(libraryInfo); } |
