1.3.12 Beta language choice in Interface

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
steve
Site Admin
Posts: 80682
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

1.3.12 Beta language choice in Interface

Post by steve » Wed Apr 14, 2010 6:14 pm

Thanks Gale - I don't have that option in the Linux, (though it can be configured manually) - is it just Windows that has the option in Preferences or has Mac got it also, or is it that I only have English language support installed in my Linux installation?

[Split from http://forum.audacityteam.org/viewtopic ... 16&t=28468 ]
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: 1.3.12 Beta language choice in Interface

Post by Gale Andrews » Wed Apr 14, 2010 8:26 pm

stevethefiddle wrote: I don't have that option in the Linux, (though it can be configured manually) - is it just Windows that has the option in Preferences or has Mac got it also, or is it that I only have English language support installed in my Linux installation?
Should work on Linux as well as Mac and Windows - It does for me on Ubuntu 9.10. The Audacity languages come from the installed "locale" folder. If there is no "locale" folder where Audacity expects it (/usr/share/locale if Audacity was installed from a repository package, or /usr/local/share/locale if you compiled Audacity), then "Language" in Preferences should show "System" and "English". If the system language was English, obviously those choices amount to the same thing. If system language was some language other than English, the two choices still produce English (except for some "system" buttons like "Cancel") because Audacity can't find the locale folder which has the required language.

When you say you can configure it manually, do you mean in the ./configure step when building? What do you see in Preferences? Note that "System" is at the top of the Preferences list, out of alphabetical order.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 80682
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: 1.3.12 Beta language choice in Interface

Post by steve » Wed Apr 14, 2010 9:02 pm

Gale Andrews wrote:then "Language" in Preferences should show "System" and "English". If the system language was English, obviously those choices amount to the same thing.
Yes, that's what I mean. The choice is "System" or "English" and defaults to "System", so there is no GUI method to change to any other language.
I do have /usr/local/share/locale and Audacity 1.3.13 alpha installed in /usr/local/share/audacity-SVN so I'm unsure why other languages do not show up.

Audacity 1.3.12 is not currently available in the 9.04 repository and my 10.04 system is in bits, so I can't actually test the repository package at the moment.
I have 1.3.11 installed in /usr/share/audacity and the locale folder in /usr/share/locale and this version does give a choice of languages.
Gale Andrews wrote:When you say you can configure it manually, do you mean....
Edit the "audacity.cfg" file.

For example, to set language to French:

Code: Select all

.....
[Locale]
Language=fr
[Batch]
.....
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: 1.3.12 Beta language choice in Interface

Post by Gale Andrews » Fri Apr 16, 2010 1:35 am

stevethefiddle wrote:
Gale Andrews wrote:then "Language" in Preferences should show "System" and "English". If the system language was English, obviously those choices amount to the same thing.
Yes, that's what I mean. The choice is "System" or "English" and defaults to "System", so there is no GUI method to change to any other language.
I do have /usr/local/share/locale and Audacity 1.3.13 alpha installed in /usr/local/share/audacity-SVN so I'm unsure why other languages do not show up.
I'm not too sure either. In usr/local/share/audacity I just have the nyquist and plug-ins folders. I do all building on Linux using default commands, so I install the svn build with sudo install, which puts the executable in usr/local/bin. Maybe I'll try installing in usr/local/share. /usr/local/share/audacity-SVN isn't actually your build directory, is it?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 80682
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: 1.3.12 Beta language choice in Interface

Post by steve » Fri Apr 16, 2010 1:03 pm

Uninstalled the previous version with

Code: Select all

sudo make uninstall
Then ran

Code: Select all

make clean
on the source folder and updated from SVN.
Then installed with:

Code: Select all

./configure --with-libsamplerate --program-suffix=-SVN
make
sudo make install
Removed ~/.audacity-SVN-data

The only options available in Preferences for languages are System/English.

During "make install" this came up which seems to suggest that languages were installed correctly - they just don't show up in Preferences.

Code: Select all

linguas='af ar bn bg bs ca [email protected] cs cy da de el es eu fa fi fr ga gl he hi hu id it ja ka km ko lt mk my nb nl oc pl pt pt_BR ro ru sk sl sv tg tr uk vi zh zh_TW'; for lang in $linguas ; do 
	   /usr/bin/install -c -d /usr/local//share/locale/$lang/LC_MESSAGES ; 
	   /usr/bin/install -c -m 644 $lang/audacity.mo /usr/local//share/locale/$lang/LC_MESSAGES/audacity-SVN.mo ; 
	done
make[1]: Leaving directory `/home/steve/audacity/locale'
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: 1.3.12 Beta language choice in Interface

Post by Gale Andrews » Wed Apr 21, 2010 7:56 pm

I can replicate the problem in 1.3.13 Alpha SVN if I follow your steps above (the only departure from my normal procedure is the --program-suffix=-SVN at the configure step). That gives me the Audacity executable at usr/local/bin which is called "audacity-SVN" instead of "audacity". At usr/local/share/audacity-SVN I have the expected "nyquist" and "plug-ins" folders, but although I have access to those plug-ins (all Nyquist) in the Audacity interface, they all fail with "Nyquist did not return audio".I would assume therefore that Audacity can't see the "nyquist" folder. Do your Nyquist plug-ins work in 1.3.13?

So I'm figuring if you did not perform the rename at configure you would not have the problem. Did you perform that rename before in 1.3.12 Alpha?



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 80682
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: 1.3.12 Beta language choice in Interface

Post by steve » Wed Apr 21, 2010 8:49 pm

Gale Andrews wrote:That gives me the Audacity executable at usr/local/bin which is called "audacity-SVN" instead of "audacity". At usr/local/share/audacity-SVN I have the expected "nyquist" and "plug-ins" folders,
Same, but Nyquist plug-ins work fine here.

I've used this method of adding a suffix may times so that I can test new versions without messing up my "production" version of Audacity.
I can't say that I remember looking at the language options in other versions, but this is the first time I've noticed any ill effect from using a non-standard suffix.

I could test an older version of Audacity with a "-SVN" suffix and see if languages are available or not - would any particular version be useful to test?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: 1.3.12 Beta language choice in Interface

Post by Gale Andrews » Wed Apr 21, 2010 11:33 pm

If the change to using system language is responsible for this, you'd want a build before r10067 (Jan 19th):
http://code.google.com/p/audacity/sourc ... 16&r=10067

I just rebuilt without --program-suffix=-SVN at the configure step, and Nyquist effects and language change in the interface are now back to normal.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

steve
Site Admin
Posts: 80682
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: 1.3.12 Beta language choice in Interface

Post by steve » Fri Apr 23, 2010 3:07 pm

I've built Audacity 1.3.10 (Dec 01, 2009) using:

Code: Select all

./configure --with-libsamplerate --program-suffix=-SVN
make
sudo make install
On first launch, Audacity prompts for language selection. The only option is English.

Edit > Preferences > Interface > Language
the only available option is "English".

Changing the language setting manually in audacity.cfg successfully changes the language, but the only option in Preferences remains as "English".
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

richardash1981
Posts: 426
Joined: Tue Jul 31, 2007 1:57 pm
Operating System: Please select

Re: 1.3.12 Beta language choice in Interface

Post by richardash1981 » Sat Apr 24, 2010 11:40 am

OK, after some experiments:
* If you build audacity with a program suffix, but have audacity without a suffix installed in the same prefix, you don't see this because audacity-with-suffix picks up the translations from audacity-without-suffix. This is because both versions of audacity install translations in $(DESTDIR)$(LOCALEDIR)/<language>/LC_MESSAGES/$(AUDACITY_NAME).mo, where $(DESTDIR) expands to / (except during staged installs for package managers), $(LOCALEDIR) expands to $(PREFIX)/share/locale unless otherwise set, and $(AUDACITY_NAME) is "audacity" unless you set up suffixes.
* The list of languages displayed in the list box to chose a language in the preferences comes from a call to GetLanguages() in src/prefs/GUIPrefs.cpp:44

Locked