summaryrefslogtreecommitdiff
path: root/plugins/dfsound
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-08-17 12:02:13 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-08-17 12:02:13 +0000
commit60ead29b8401513e185a35fcb5be78737741366e (patch)
tree7284aa9b38c4d0e8891a69bb267dad2e79275462 /plugins/dfsound
parent1fb460ae55f60ddf099e7f9713c44838519fe028 (diff)
downloadpcsxr-60ead29b8401513e185a35fcb5be78737741366e.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@26207 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfsound')
-rw-r--r--plugins/dfsound/spu.c23
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);
}