[vlc-commits] PulseAudio: set correct language

Rémi Denis-Courmont git at videolan.org
Thu Jul 21 16:50:59 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 21 17:41:38 2011 +0300| [53fbcade104057ef3bfe3fc0f3b74d4e94543369] | committer: Rémi Denis-Courmont

PulseAudio: set correct language

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=53fbcade104057ef3bfe3fc0f3b74d4e94543369
---

 src/pulse/mainloop.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/pulse/mainloop.c b/src/pulse/mainloop.c
index e726720..206c94f 100644
--- a/src/pulse/mainloop.c
+++ b/src/pulse/mainloop.c
@@ -30,6 +30,7 @@
 #include <vlc_pulse.h>
 #include <assert.h>
 #include <stdlib.h>
+#include <locale.h>
 #include <unistd.h>
 #include <pwd.h>
 
@@ -188,8 +189,10 @@ pa_context *vlc_pa_connect (vlc_object_t *obj)
         pa_proplist_sets (props, PA_PROP_APPLICATION_ID, "org.VideoLAN.VLC");
         pa_proplist_sets (props, PA_PROP_APPLICATION_VERSION, PACKAGE_VERSION);
         pa_proplist_sets (props, PA_PROP_APPLICATION_ICON_NAME, PACKAGE_NAME);
-        // FIXME:?
-        pa_proplist_sets (props, PA_PROP_APPLICATION_LANGUAGE, _("C"));
+        //pa_proplist_sets (props, PA_PROP_APPLICATION_LANGUAGE, _("C"));
+        pa_proplist_sets (props, PA_PROP_APPLICATION_LANGUAGE,
+                          setlocale (LC_MESSAGES, NULL));
+
         pa_proplist_setf (props, PA_PROP_APPLICATION_PROCESS_ID, "%lu",
                           (unsigned long) getpid ());
         //pa_proplist_sets (props, PA_PROP_APPLICATION_PROCESS_BINARY,



More information about the vlc-commits mailing list