Page 1 of 2
Corrupted titles of in/outs (2.0.6) on OS X w czech locales
Posted: Fri Oct 03, 2014 1:47 pm
by kmarty
Hi,
since Audacity 2.0.6 names/titles of Inputs and Output looks weird:

- A 2.0.6 - in_out (eng).png (33.94 KiB) Viewed 1707 times
Corrupted playback device name should be "
Vestavěný výstup" (in System Preferences->Audio it is called "Interní reproduktory").
Corrupted recording device names should be "
Vestavěný mikrofon" and "
Vestavěný vstup" (in System Prefs->Audio they're called "Interní mikrofon" and "Linkový vstup").
OS X (10.9.5) localization is "Czech" (Audacity language selected english - but it doesn't affect these names).
In previous version of Audacity (2.0.5) these inputs/outputs was named in english (regardless of OS localization and/or Audacity language selection). It wasn't a problem, still better english than gibberish:

- A 2.0.5 - in_out (eng).png (32.67 KiB) Viewed 1707 times

- A 2.0.5 - in_out (cze).png (35.66 KiB) Viewed 1707 times
Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca
Posted: Fri Oct 03, 2014 4:54 pm
by Gale Andrews
Thanks for the report. Yes I can confirm that. I think this may have happened because for 2.0.6 the folders for translations were moved inside the Audacity bundle (Audacity.app is actually a folder on Mac OS X). That allowed some items in the Audacity menu bar to be translated into the system language, irrespective of what language Audacity was set to.
If my guess is correct, the question is why the translations are not made correctly.
I'll see if I can find anything out.
Gale
Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca
Posted: Fri Oct 03, 2014 5:59 pm
by kmarty
Problem is not due to translation, but probably due to bad(?) handling with utf-8/non-utf-8 strings (or something like that).
I found these device names in "Audio MIDI Setup"(a bit confusing name of app) so they're really exists directly in system, not in Audacity and its translation files:

- Audio MIDI Setup.png (73.52 KiB) Viewed 1693 times
Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca
Posted: Sat Oct 04, 2014 2:03 am
by Gale Andrews
kmarty wrote:Problem is not due to translation, but probably due to bad(?) handling with utf-8/non-utf-8 strings (or something like that).
Yes that is what I meant. Moving the language files into the app bundle is presumably causing the system translations of device names to be used, but those translations are not displaying correctly in Audacity. Audacity does not supply translations of device names. Leland (a Mac developer) will have a quick look at the problem.
If this is a big problem for you and you don't mind Audacity running in English, then right-click over Audacity.app > Show Package Contents, then open the "Contents" folder then the "Resources" folder. Rename cs.lproj to xx.lproj or something that is unused and restart Audacity. Then everything in Audacity will be in English including the device names.
Gale
Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca
Posted: Sat Oct 04, 2014 10:56 am
by kmarty
Ah, ok. Sorry, misunderstood on my side.
Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca
Posted: Sat Oct 04, 2014 11:48 pm
by Leland
I'm able to reproduce this (which is the biggest part of the battle), so I hope to be able to track it down in short order. I'm pretty sure kmarty is correct about UTF mishandling, but time will tell.
Leland
Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca
Posted: Sun Oct 05, 2014 1:52 am
by Leland
I tracked down the problem to the way we were converting device names given to us by portaudio. Here's what I was getting before the fix (Audacity is in English, OSX is in French):

- broken.png (207.6 KiB) Viewed 1671 times
And here's what I get after:

- fixed.png (204.24 KiB) Viewed 1671 times
Notice it's also fixed in the Device toolbar.
Leland
Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca
Posted: Sun Oct 05, 2014 6:01 am
by Gale Andrews
Leland wrote:I tracked down the problem to the way we were converting device names given to us by portaudio. Here's what I was getting before the fix (Audacity is in English, OSX is in French):
broken.png
And here's what I get after:
fixed.png
Notice it's also fixed in the Device toolbar.
Leland
Thanks, Leland for taking time to look at it.
Assuming this bug is in Audacity, could you commit your fix or post a patch on bugzilla for review?
Gale
Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca
Posted: Sun Oct 05, 2014 6:21 am
by Leland
Gale Andrews wrote:
Thanks, Leland for taking time to look at it.
Assuming this bug is in Audacity, could you commit your fix or post a patch on bugzilla for review?
Bug created:
http://bugzilla.audacityteam.org/show_bug.cgi?id=766
But, you'd better check it...would you believe this is probably the first bug I've created myself? I always just go off what you've put out there.
Leland
Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca
Posted: Thu Oct 09, 2014 4:43 am
by nsh
there are corruptions of UI Popup menu Text @ japanese aiso.
version: 2.0.6.0
OS: Mac OS X 10.9.5
Interface language: engilsh