summaryrefslogtreecommitdiffstats
path: root/sys/oss
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-01-19 15:45:55 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-01-19 15:45:55 +0000
commit469936a3bdb13a93791d954a50502cea01f0529d (patch)
treee8f9dcd0b13b2416ac7d86bc5184e92f06689702 /sys/oss
parent4cb7d639d6f9b95000cb2240ba722cc83dba7eb6 (diff)
putting i18n in place for plugins
Original commit message from CVS: putting i18n in place for plugins
Diffstat (limited to 'sys/oss')
-rw-r--r--sys/oss/gstossaudio.c9
-rw-r--r--sys/oss/gstosselement.c8
2 files changed, 13 insertions, 4 deletions
diff --git a/sys/oss/gstossaudio.c b/sys/oss/gstossaudio.c
index 08868dbb..eea7cf75 100644
--- a/sys/oss/gstossaudio.c
+++ b/sys/oss/gstossaudio.c
@@ -21,6 +21,8 @@
#include "config.h"
#endif
+#include "gst/gst-i18n-plugin.h"
+
#include "gstosselement.h"
#include "gstosssink.h"
#include "gstosssrc.h"
@@ -45,6 +47,13 @@ plugin_init (GstPlugin *plugin)
}
GST_DEBUG_CATEGORY_INIT (oss_debug, "oss", 0, "OSS elements");
+
+#ifdef ENABLE_NLS
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
+
return TRUE;
}
diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c
index b0b186c9..1ed36542 100644
--- a/sys/oss/gstosselement.c
+++ b/sys/oss/gstosselement.c
@@ -681,22 +681,22 @@ gst_osselement_open_audio (GstOssElement *oss)
switch (errno) {
case EBUSY:
gst_element_error (oss, RESOURCE, BUSY,
- (_("OSS device %s is already in use by another program."), oss->device), NULL);
+ (_("OSS device \"%s\" is already in use by another program"), oss->device), NULL);
break;
case EACCES:
case ETXTBSY:
if (mode == GST_OSSELEMENT_WRITE)
gst_element_error (oss, RESOURCE, OPEN_WRITE,
- (_("Could not access device %s, check it's permissions"), oss->device), GST_ERROR_SYSTEM);
+ (_("Could not access device \"%s\", check its permissions"), oss->device), GST_ERROR_SYSTEM);
else
gst_element_error (oss, RESOURCE, OPEN_READ,
- (_("Could not access device %s, check it's permissions"), oss->device), GST_ERROR_SYSTEM);
+ (_("Could not access device \"%s\", check its permissions"), oss->device), GST_ERROR_SYSTEM);
break;
case ENXIO:
case ENODEV:
case ENOENT:
gst_element_error (oss, RESOURCE, NOT_FOUND,
- (_("Device %s does not exist"), oss->device), GST_ERROR_SYSTEM);
+ (_("Device \"%s\" does not exist"), oss->device), GST_ERROR_SYSTEM);
break;
default:
/* FIXME: strerror is not threadsafe */