[vorbis-tools] 01/01: Use translations in oggdec
Martin Steghöfer
martin.steghoefer-guest at moszumanska.debian.org
Mon Jan 26 00:15:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
martin.steghoefer-guest pushed a commit to branch master
in repository vorbis-tools.
commit 0eb878ba3821ab1310a090cb99d1af5f813ab946
Author: Martin Steghöfer <martin at steghoefer.eu>
Date: Fri Dec 12 23:19:47 2014 +0100
Use translations in oggdec
Closes: #772976
---
.../patches/0014-Use-translations-in-oggdec.patch | 39 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 40 insertions(+)
diff --git a/debian/patches/0014-Use-translations-in-oggdec.patch b/debian/patches/0014-Use-translations-in-oggdec.patch
new file mode 100644
index 0000000..2cf13fe
--- /dev/null
+++ b/debian/patches/0014-Use-translations-in-oggdec.patch
@@ -0,0 +1,39 @@
+From: =?utf-8?q?Martin_Stegh=C3=B6fer?= <martin at steghoefer.eu>
+Date: Fri, 12 Dec 2014 23:17:02 +0100
+Subject: Use translations in oggdec
+
+The "oggdec" executable uses the "_" (underscore) macro for
+internationalization and has translations of the relevant strings
+available in the .po files, but nevertheless outputs everything
+in English. This was due to a lack of initialization of the
+internationalization modules in that executable.
+
+Bug-Debian: https://bugs.debian.org/772976
+Forwarded: https://trac.xiph.org/ticket/2149
+---
+ oggdec/oggdec.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/oggdec/oggdec.c b/oggdec/oggdec.c
+index 16f87ac..3f2ae7b 100644
+--- a/oggdec/oggdec.c
++++ b/oggdec/oggdec.c
+@@ -16,6 +16,7 @@
+ #include <getopt.h>
+ #include <errno.h>
+ #include <string.h>
++#include <locale.h>
+
+ #if defined(_WIN32) || defined(__EMX__) || defined(__WATCOMC__)
+ #include <fcntl.h>
+@@ -364,6 +365,10 @@ int main(int argc, char **argv)
+ {
+ int i;
+
++ setlocale(LC_ALL, "");
++ bindtextdomain(PACKAGE, LOCALEDIR);
++ textdomain(PACKAGE);
++
+ if(argc == 1) {
+ usage();
+ return 1;
diff --git a/debian/patches/series b/debian/patches/series
index ee6b34a..bb094b7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@
0011-Fix-ogg123-speex-stereo-Initialize-stereo-info-data-.patch
0012-Fix-ogg123-speex-playback-Initialize-channel-matrix.patch
0013-Fix-oggdec-crash-hang-Don-t-ignore-stream-errors.patch
+0014-Use-translations-in-oggdec.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xiph/vorbis-tools.git
More information about the pkg-xiph-commits
mailing list