Date handler isue running ...gramps.gen.datehandler._datestrings

@Nick-Hall
Running “LANG=he_IL.utf8 LC_ALL=he_IL.utf8 GRAMPS_RESOURCES=$PWD python3 -m gramps.gen.datehandler._datestrings
results with the following errors.

/gramps/gen/utils/grampslocale.py", line 598, in date_displayer
    elif self != _first and _first.calendar and q_first.calendar[:2] in displayers:
NameError: name 'q_first' is not defined. Did you mean: '_first'?

/gramps/gen/datehandler/_datestrings.py", line 308, in <module>
    available_langs = glocale.languages  # get the cached list
AttributeError: 'GrampsLocale' object has no attribute 'languages'. Did you mean: 'language'?

Manually fixing those two files let the process completed w/o errors.
I’m not even sure this is a Bug, it would be nice to have a developer look into it since i only ran it for “he” and it might complain about More stuff

1 Like

Thank you. The first error was a typo that I have fixed in commit 7b797b8.

I’m not sure if the script that creates the po snippets is actually useful, but I have updated it in pull request #1501.