Bug#481424: No locales
Fabian Greffrath
greffrath at leat.rub.de
Thu Sep 3 14:02:24 UTC 2009
tags 481424 + patch
thanks
I have created the attached patch that circumvents the dialog box by
directly using the GetSystemLanguageCode() function, which returns the
current language code if there is a translation available in this
language and "en" else.
I have tested it on my system and it works for both supported
languages (e.g. "LANG=de") and unsupported (e.g. "LANG=foobar"), in
which case Audacity defaults to English. Of course the language is
only set at first start, so if you want to change it afterwards you
have to click yourself through the Preferences menu - but this in not
a regression from the dialog box behaviour.
However, I don't think this patch is ready for upstream submission
yet. Instead, the call to GetSystemLanguageCode() should be
parenthesized between "#ifdef __UNIX__" or similar.
@Benjamin: Is it OK to leave it up to Benjamin to accept the patch for
the Debian package and try to get it integrated upstream? ;)
Cheers,
Fabian
--
Dipl.-Phys. Fabian Greffrath
Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum
Telefon: +49 (0)234 / 32-26334
Fax: +49 (0)234 / 32-14227
E-Mail: greffrath at leat.ruhr-uni-bochum.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: respect-locales.patch
Type: text/x-diff
Size: 842 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20090903/c5af7f39/attachment.patch>
More information about the pkg-multimedia-maintainers
mailing list