diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-04-18 14:15:33 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-04-18 14:15:33 +0000 |
commit | e83351eeff17fff26caef41187f669d3c19a73e8 (patch) | |
tree | 99277cc2610beb22783f13e41cd3130b09a2812f /ext/esd/gstesd.c | |
parent | 60736b9279a8533f6ecd10679a2f607dde7c0a67 (diff) |
Add translatable error message for when we cannot connect to the sound server, as "Cannot open resource for writing" ...
Original commit message from CVS:
* ext/esd/esdsink.c: (gst_esdsink_open), (gst_esdsink_prepare):
* ext/esd/gstesd.c: (plugin_init):
* po/POTFILES.in:
Add translatable error message for when we cannot
connect to the sound server, as "Cannot open resource
for writing" isn't really an acceptable message to show
to the user in this case.
Diffstat (limited to 'ext/esd/gstesd.c')
-rw-r--r-- | ext/esd/gstesd.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/esd/gstesd.c b/ext/esd/gstesd.c index c40b4cf3..62554d0a 100644 --- a/ext/esd/gstesd.c +++ b/ext/esd/gstesd.c @@ -26,20 +26,14 @@ #include "esdmon.h" #endif +#include "gst/gst-i18n-plugin.h" + GST_DEBUG_CATEGORY (esd_debug); static gboolean plugin_init (GstPlugin * plugin) { - gboolean ret; - -#if 0 - if (!gst_library_load ("gstaudio")) - return FALSE; -#endif - - ret = gst_esdsink_factory_init (plugin); - if (ret == FALSE) + if (!gst_esdsink_factory_init (plugin)) return FALSE; #if 0 @@ -49,6 +43,12 @@ plugin_init (GstPlugin * plugin) #endif GST_DEBUG_CATEGORY_INIT (esd_debug, "esd", 0, "ESounD elements"); + +#ifdef ENABLE_NLS + setlocale (LC_ALL, ""); + bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); +#endif /* ENABLE_NLS */ + return TRUE; } |