Narrative web: Sort problem with places. (#856)

* Narrative web: Sort problem with places.

Fixes #10868.

Places list is not sorted depending on the selected language.

If you start gramps in english or another language then try to generated
a narrative web report in another language, the navigation alphabet is
incorrect. This is true for the place list and the person list.
The problem was related to pyICU.

* Narrative web: some pylint improvement.
This commit is contained in:
Serge Noiraud 2019-08-11 21:50:50 +02:00 committed by GitHub
parent bb255c8529
commit bb8ce0cce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -517,7 +517,6 @@ def first_letter(string, rlocale=glocale):
# no special case
return norm_unicode[0].upper()
dummy_rlocale = rlocale
def primary_difference(prev_key, new_key, rlocale=glocale):
"""
The PyICU collation doesn't work if you want to sort in another language