[r22029]Use GrampsLocale.encoding to get the code set instead of locale

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22046 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22030]Supply a concatstrings PostScript function

To allow postscript documents to work without Ghostscript.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22047 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22031]MacLocale: Make sure the overrides work correctly

And that we follow the user's preferences correctly or issue a warning that we've defaulted to US English if we can't.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22048 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22032]GrampsLocale: Fix indentation error

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22049 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22033]GrampsLocale: Init_from_environment: Change precedence

LC_MESSAGES takes precedence over LC_CTYPE for setting self.lang
$LANGUAGES overrides $LANG, $LC_FOO for setting translations

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22050 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22034]GrampsLocale: Add some debugging messages.

Move the warning about failure to after the last attempt.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22051 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22035]GrampsLocale: Posix: Move LC_MESSAGES check

to setting self.language

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22052 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22036]GrampsLocale: Win32: Clean up extraneous conditions

don't set self.language prematurely

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22053 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22037]GrampsLocale: Mac: Align flow of user preferences

to match other OSes.
Also add diagnostics to make Tim Lyons happy.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22054 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22038]GrampsLocale: Add explanatory comment

After I stopped myself from fixing something that was done right!

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22055 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r22039]Bug 6533: Report plugin name

when failing to load an add-on translation
Message now says (e.g.) WARNING: Plugin ExtendedAttributes has no translation for any of your configured languages, using US English instead

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22056 4ae1f11a-8b86-4847-b8af-ab372f36d1fd