summaryrefslogtreecommitdiff
path: root/plugins/dfcdrom
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/dfcdrom
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/dfcdrom')
-rw-r--r--plugins/dfcdrom/cdr.c18
-rw-r--r--plugins/dfcdrom/interface.c1
2 files changed, 16 insertions, 3 deletions
diff --git a/plugins/dfcdrom/cdr.c b/plugins/dfcdrom/cdr.c
index cd8d76bb..2b2316fc 100644
--- a/plugins/dfcdrom/cdr.c
+++ b/plugins/dfcdrom/cdr.c
@@ -5,6 +5,8 @@
*
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
@@ -17,6 +19,16 @@
#include "cdr.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__
static inline int msf_to_lba(char m, char s, char f) {
@@ -41,16 +53,16 @@ unsigned char* (*fGetBuffer)();
void *CdrThread(void *arg);
-char *LibName = "CD-ROM Drive Reader";
+char *LibName = N_("CD-ROM Drive Reader");
#else
-char *LibName = "CDR NULL Plugin";
+char *LibName = N_("CDR NULL Plugin");
#endif
char *PSEgetLibName(void) {
- return LibName;
+ return _(LibName);
}
unsigned long PSEgetLibType(void) {
diff --git a/plugins/dfcdrom/interface.c b/plugins/dfcdrom/interface.c
index 5e6323e7..3bb08af6 100644
--- a/plugins/dfcdrom/interface.c
+++ b/plugins/dfcdrom/interface.c
@@ -17,6 +17,7 @@
#ifdef ENABLE_NLS
#include <libintl.h>
+#include <locale.h>
#define _(x) gettext(x)
#else
#define _(x) (x)