mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
on OS X 10.7 at least, LANG is set by the system, so do not bail out of language stuff early just because it is set
This commit is contained in:
parent
c78bc833e0
commit
0392e1c9a4
1 changed files with 1 additions and 5 deletions
|
|
@ -75,10 +75,6 @@ set_language_preference ()
|
|||
{
|
||||
gtk_disable_setlocale ();
|
||||
|
||||
if (g_getenv ("LANGUAGE") || g_getenv ("LC_ALL") || g_getenv ("LANG")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (g_getenv ("ARDOUR_EN")) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -126,6 +122,6 @@ set_language_preference ()
|
|||
*/
|
||||
|
||||
cout << "LANG set to " << [nslocale UTF8String] << endl;
|
||||
setenv ("LANG", [nslocale UTF8String], 0);
|
||||
setenv ("LANG", [nslocale UTF8String], 0);
|
||||
CFRelease (cflocale);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue