5.2 Beta2 GrampsLocale does not have format function (add to list of changes)

On MacOS loaded beta2. Testing some of my plugins and find that the GrampsLocale object is missing the format attribute. This function formats a number in the current locale. See gen/utils/grampslocale.py . This is now replaced by the python locale object, format attribute.

This might need to be in the change list.

Specific details: 5.1 gramplet code used the following and it worked:

from gramps.gen.const import GRAMPS_LOCALE as glocale
tooltip_text += glocale.format(‘%d’,self.segments, grouping = True)

But 5.2 generates the error:

AttributeError: ‘GrampsLocale’ object has no attribute ‘format’

The underlying python format method in the locale module has been deprecated since 3.7 and will be removed in 3.12 due to be released later this year.

See pull request #1463.