summaryrefslogtreecommitdiff
path: root/plugins/dfcdrom
diff options
context:
space:
mode:
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)