summaryrefslogtreecommitdiff
path: root/sys/dxr3
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
commit22f4937e955a00d4fa099545ceb5523eafafd8a9 (patch)
tree323af199e73c709bd3f94c4e4ea3d344520fe119 /sys/dxr3
parentf83bd835e019c1f11adae83337bb9f00292b2365 (diff)
putting i18n in place for plugins
Original commit message from CVS: putting i18n in place for plugins
Diffstat (limited to 'sys/dxr3')
-rw-r--r--sys/dxr3/dxr3init.c6
-rw-r--r--sys/dxr3/dxr3videosink.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/sys/dxr3/dxr3init.c b/sys/dxr3/dxr3init.c
index 8ac76213e..dcf4f2991 100644
--- a/sys/dxr3/dxr3init.c
+++ b/sys/dxr3/dxr3init.c
@@ -39,6 +39,12 @@ plugin_init (GstPlugin *plugin)
GST_RANK_NONE, GST_TYPE_DXR3SPUSINK))
return FALSE;
+#ifdef ENABLE_NLS
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
+
return TRUE;
}
diff --git a/sys/dxr3/dxr3videosink.c b/sys/dxr3/dxr3videosink.c
index 75a2d1c35..c81693e1e 100644
--- a/sys/dxr3/dxr3videosink.c
+++ b/sys/dxr3/dxr3videosink.c
@@ -464,7 +464,7 @@ dxr3videosink_write_data (Dxr3VideoSink *sink, guint cut)
written = write (sink->video_fd, data, size);
if (written < 0) {
gst_element_error (sink, RESOURCE, WRITE,
- (_("Could not write to device %s"), sink->video_filename),
+ (_("Could not write to device \"%s\""), sink->video_filename),
GST_ERROR_SYSTEM);
break;
}