summaryrefslogtreecommitdiff
path: root/plugins/dfxvideo/gpu.c
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/dfxvideo/gpu.c
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/dfxvideo/gpu.c')
-rw-r--r--plugins/dfxvideo/gpu.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/plugins/dfxvideo/gpu.c b/plugins/dfxvideo/gpu.c
index 33a83213..63aa4965 100644
--- a/plugins/dfxvideo/gpu.c
+++ b/plugins/dfxvideo/gpu.c
@@ -15,6 +15,8 @@
* *
***************************************************************************/
+#include "config.h"
+
#define _IN_GPU
#include "externals.h"
@@ -29,6 +31,16 @@
#include "fps.h"
#include "swap.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
+
////////////////////////////////////////////////////////////////////////
// PPDK developer must change libraryName field and can change revision and build
////////////////////////////////////////////////////////////////////////
@@ -37,10 +49,10 @@ const unsigned char version = 1; // do not touch - library for PSEmu 1.x
const unsigned char revision = 1;
const unsigned char build = 17; // increase that with each version
-static char *libraryName = "XVideo Driver";
-static char *libraryInfo = "P.E.Op.S. Xvideo Driver V1.17\nCoded by Pete Bernert and the P.E.Op.S. team\n";
+static char *libraryName = N_("XVideo Driver");
+static char *libraryInfo = N_("P.E.Op.S. Xvideo Driver V1.17\nCoded by Pete Bernert and the P.E.Op.S. team\n");
-static char *PluginAuthor = "Pete Bernert and the P.E.Op.S. team";
+static char *PluginAuthor = N_("Pete Bernert and the P.E.Op.S. team");
////////////////////////////////////////////////////////////////////////
// memory image of the PSX vram
@@ -117,7 +129,7 @@ void CALLBACK GPUdisplayFlags(unsigned long dwFlags) // some info func
char * CALLBACK PSEgetLibName(void)
{
- return libraryName;
+ return _(libraryName);
}
unsigned long CALLBACK PSEgetLibType(void)
@@ -132,7 +144,7 @@ unsigned long CALLBACK PSEgetLibVersion(void)
char * GPUgetLibInfos(void)
{
- return libraryInfo;
+ return _(libraryInfo);
}
////////////////////////////////////////////////////////////////////////