Philipp Hörist pushed to branch master at gajim / gajim
Commits:
0bd2524e by nicoco at 2025-10-23T14:09:14+00:00
imprv: Support for pronouns in profiles
- - - - -
2 changed files:
- gajim/gtk/profile.py
- gajim/gtk/vcard_grid.py
Changes:
=====================================
gajim/gtk/profile.py
=====================================
@@ -43,6 +43,7 @@
"fn": p_("Profile", "Full Name"),
"bday": _("Birthday"),
"gender": p_("Profile", "Gender"),
+ "pronouns": _("Pronouns"),
"adr": p_("Profile", "Address"),
"email": _("Email"),
"impp": p_("Profile", "IM Address"),
=====================================
gajim/gtk/vcard_grid.py
=====================================
@@ -38,6 +38,7 @@
from nbxmpp.modules.vcard4 import Parameters
from nbxmpp.modules.vcard4 import PhotoProperty
from nbxmpp.modules.vcard4 import ProdidProperty
+from nbxmpp.modules.vcard4 import PronounsProperty
from nbxmpp.modules.vcard4 import RelatedProperty
from nbxmpp.modules.vcard4 import RevProperty
from nbxmpp.modules.vcard4 import RoleProperty
@@ -88,6 +89,7 @@
| OrgProperty
| PhotoProperty
| ProdidProperty
+ | PronounsProperty
| RelatedProperty
| RevProperty
| RoleProperty
@@ -112,6 +114,7 @@
| NoteProperty
| NProperty
| OrgProperty
+ | PronounsProperty
| RoleProperty
| TelProperty
| TitleProperty
@@ -124,6 +127,7 @@
| FnProperty
| ImppProperty
| OrgProperty
+ | PronounsProperty
| RoleProperty
| TelProperty
| TitleProperty
@@ -135,6 +139,7 @@
"n": _("Name"),
"bday": _("Birthday"),
"gender": _("Gender"),
+ "pronouns": _("Pronouns"),
"adr": p_("Profile", "Address"),
"tel": _("Phone No."),
"email": _("Email"),
@@ -170,6 +175,7 @@
"fn": {"value": ""},
"bday": {"value": "", "value_type": "date"},
"gender": {"sex": "", "identity": ""},
+ "pronouns": {"value": ""},
"adr": {},
"email": {"value": ""},
"impp": {"value": ""},
@@ -196,6 +202,7 @@
ORDER = [
"fn",
"gender",
+ "pronouns",
"bday",
"adr",
"email",
@@ -237,6 +244,7 @@ def __init__(self, account: str) -> None:
"fn": TextEntryPropertyGui,
"bday": DatePropertyGui,
"gender": GenderPropertyGui,
+ "pronouns": TextEntryPropertyGui,
"adr": AdrPropertyGui,
"tel": TextEntryPropertyGui,
"email": TextEntryPropertyGui,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/0bd2524ec7745f1121d46ae059805752f1148b34
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/0bd2524ec7745f1121d46ae059805752f1148b34
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]