[r21276]Handle junk at the end of revision strings

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21417 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21279]relationship.py: Fix not registering "en_GB" as english.

Also replace diagnostic print with proper logging.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21418 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21280]grampslocale.py: Protect against C.UTF-8 not being installed

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21419 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21281] grampslocale: Pretty up the log messages.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21420 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21282]GrampsLocale: Fix creation of second GrampsLocale

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21421 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21287] GrampsLocale: Allow for importing older PyICU packages

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21422 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21326] GrampsLocale: Correct setting GrampsLocale.languages

Test only first 5 or first 2 characters of the language id against the
list of available translations.

Thanks to Tim Lyons for exposing the error.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21423 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
Fix Py2 file encoding errors

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