Skip to content

Conversation

izikeros
Copy link
Contributor

This PR adds context to the 'Name' strings in .glade files to enable disambiguation and using different translations depending on the context. The problem is described in bug 12527.

Here is problem example.

Currently there is context missing and in .po file there is e.g. for Polish localization:

#: ../gramps/gen/filters/rules/person/_hassoundexname.py:57
#: ../gramps/gui/glade/editfamily.glade:116
#: ../gramps/gui/glade/editfamily.glade:379
#: ../gramps/gui/glade/editplaceformat.glade:201
#: ../gramps/gui/glade/editplacename.glade:184
#: ../gramps/gui/glade/editplaceref.glade:234
#: ../gramps/gui/glade/mergeperson.glade:218
#: ../gramps/gui/glade/mergeperson.glade:233
#: ../gramps/gui/glade/mergeplace.glade:426
#: ../gramps/gui/glade/mergeplace.glade:443
#: ../gramps/plugins/gramplet/soundgen.py:68
msgid "Name:"
msgstr "Imię i nazwisko:"

The msgstr is correct in person context but is totally wrong in place context and they can't be translated separately dur to context missing.

This PR enables this distinction.

@Nick-Hall
Copy link
Member

This PR appears to contain more commits than intended.

@izikeros izikeros changed the base branch from master to maintenance/gramps60 August 2, 2025 17:32
@izikeros
Copy link
Contributor Author

izikeros commented Aug 2, 2025

The target branch was master - which was not intended. Switched target branch.

@Nick-Hall Nick-Hall changed the title Disambiguate name in glade strings (bug 12527) Disambiguate name in glade strings Aug 9, 2025
@Nick-Hall Nick-Hall force-pushed the disambiguate-name-in-glade-strings branch from 7502999 to 7b5599c Compare August 9, 2025 21:03
@Nick-Hall Nick-Hall merged commit 7b5599c into gramps-project:maintenance/gramps60 Aug 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants