Commit Graph

4 Commits

Author SHA1 Message Date
John Ralls
ab5ce43be7 Apply revisions from 3.2.6 fixes with Richard Taylor
svn: r17394
2011-05-03 20:59:12 +00:00
John Ralls
9e96a1e165 Improvements to new python launcher
svn: r17379
2011-05-02 18:47:14 +00:00
John Ralls
eb7b9fa565 Provide for PREFIX to be set to the bundle when the platform is darwin. Bundle is detected by differing sys.prefix and sys.exec_prefix, indicating that sys.prefix has been changed (which it is, in rungramps.py).
svn: r17347
2011-04-29 21:54:38 +00:00
John Ralls
d0265cebaf Bug #4302: Language settings are wrong when an english variant is first
Rewrote the launcher in python with much improved language handling; 
renamed it to rungramps.py, and replaced launcher.sh with a minimal 
shell launcher.

Any english selection will now have $LANG set to "C", while $LC_ALL will 
be set to whatever english variant the user selected (and en_US if she 
specified just "en"). For languages other than English, $LC_ALL will be 
set to xx_XX if the language selection had no region (e.g., if the 
language selection is de, $LANG will be de and $LC_ALL will be de_DE. 
$LANG will be truncated if the language selection has a region that 
Gramps doesn't support, but does support the bare language (e.g., if the 
language selection is de_DE, $LANG will be de because there is no de_DE 
translation. Gettext is smart enough to get this right without the help, 
but the check is necessary to ensure that we don't skip over a supported 
generic language.

The language settings can now be overridden for gramps by using the 
defaults system.


svn: r17342
2011-04-29 21:21:33 +00:00