Corrupted titles of in/outs (2.0.6) on OS X w czech locales

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
kmarty
Posts: 30
Joined: Sun Dec 01, 2013 9:32 pm
Operating System: Please select

Corrupted titles of in/outs (2.0.6) on OS X w czech locales

Post by kmarty » Fri Oct 03, 2014 1:47 pm

Hi,
since Audacity 2.0.6 names/titles of Inputs and Output looks weird:
A 2.0.6 - in_out (eng).png
A 2.0.6 - in_out (eng).png (33.94 KiB) Viewed 1709 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
A 2.0.5 - in_out (eng).png (32.67 KiB) Viewed 1709 times
A 2.0.5 - in_out (cze).png
A 2.0.5 - in_out (cze).png (35.66 KiB) Viewed 1709 times

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca

Post by Gale Andrews » Fri Oct 03, 2014 4:54 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

kmarty
Posts: 30
Joined: Sun Dec 01, 2013 9:32 pm
Operating System: Please select

Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca

Post by kmarty » Fri Oct 03, 2014 5:59 pm

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
Audio MIDI Setup.png (73.52 KiB) Viewed 1695 times

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca

Post by Gale Andrews » Sat Oct 04, 2014 2:03 am

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

kmarty
Posts: 30
Joined: Sun Dec 01, 2013 9:32 pm
Operating System: Please select

Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca

Post by kmarty » Sat Oct 04, 2014 10:56 am

Ah, ok. Sorry, misunderstood on my side.

Leland
Developer
Posts: 174
Joined: Thu Jul 26, 2007 8:55 pm
Operating System: Please select

Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca

Post by Leland » Sat Oct 04, 2014 11:48 pm

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

Leland
Developer
Posts: 174
Joined: Thu Jul 26, 2007 8:55 pm
Operating System: Please select

Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca

Post by Leland » Sun Oct 05, 2014 1:52 am

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
broken.png (207.6 KiB) Viewed 1673 times
And here's what I get after:
fixed.png
fixed.png (204.24 KiB) Viewed 1673 times
Notice it's also fixed in the Device toolbar.

Leland

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca

Post by Gale Andrews » Sun Oct 05, 2014 6:01 am

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Leland
Developer
Posts: 174
Joined: Thu Jul 26, 2007 8:55 pm
Operating System: Please select

Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca

Post by Leland » Sun Oct 05, 2014 6:21 am

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. :D

Leland

nsh
Posts: 2
Joined: Thu Oct 09, 2014 4:40 am
Operating System: Please select

Re: Corrupted titles of in/outs (2.0.6) on OS X w czech loca

Post by nsh » Thu Oct 09, 2014 4:43 am

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
Attachments
スクリーンショット 2014-10-09 13.28.26.png
スクリーンショット 2014-10-09 13.28.26.png (100.07 KiB) Viewed 1612 times

Post Reply