include/svtools/strings.hrc | 1 + svtools/inc/strings.hxx | 2 +- svtools/source/dialogs/addresstemplate.cxx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)
New commits: commit 3e3c3123a2879d029a6b02498b1f1a17fc9b715c Author: ashtroll <[email protected]> AuthorDate: Sat Jan 31 22:45:14 2026 +0530 Commit: Heiko Tietze <[email protected]> CommitDate: Mon Feb 9 12:13:38 2026 +0100 tdf#109124 Add Gender field to Address Book Source dialog Address Book Source (Tools > Address Book Source) was missing the Gender field that is available in the Mail Merge Wizard. This adds the Gender field to match the Mail Merge Wizard's field set, making it easier for users to map gender data from their address books for mail merge operations. Change-Id: I6a31458804f07994ee225a96eada27a12b3d6052 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198462 Tested-by: Jenkins Reviewed-by: Heiko Tietze <[email protected]> diff --git a/include/svtools/strings.hrc b/include/svtools/strings.hrc index 7da89c263edc..f85e21450bb1 100644 --- a/include/svtools/strings.hrc +++ b/include/svtools/strings.hrc @@ -250,6 +250,7 @@ #define STR_FIELD_WORKTEL NC_("STR_FIELD_WORKTEL", "Tel: Work") #define STR_FIELD_FAX NC_("STR_FIELD_FAX", "Fax") #define STR_FIELD_EMAIL NC_("STR_FIELD_EMAIL", "Email") +#define STR_FIELD_GENDER NC_("STR_FIELD_GENDER", "Gender") #define STR_FIELD_URL NC_("STR_FIELD_URL", "URL") #define STR_FIELD_NOTE NC_("STR_FIELD_NOTE", "Note") #define STR_FIELD_USER1 NC_("STR_FIELD_USER1", "User 1") diff --git a/svtools/inc/strings.hxx b/svtools/inc/strings.hxx index 6944fdbba767..d6d31d613cf4 100644 --- a/svtools/inc/strings.hxx +++ b/svtools/inc/strings.hxx @@ -15,7 +15,7 @@ // no need to translate this // the items in this string have to be in the same order as the STR_FIELD_* strings are added to the // field label list of the dialog -inline constexpr OUString STR_LOGICAL_FIELD_NAMES = u"FirstName;LastName;Company;Department;Street;Zip;City;State;Country;PhonePriv;PhoneComp;PhoneOffice;PhoneCell;PhoneOther;Pager;Fax;EMail;URL;Title;Position;Code;AddrForm;AddrFormMail;Id;CalendarURL;InviteParticipant;Note;Altfield1;Altfield2;Altfield3;Altfield4"_ustr; +inline constexpr OUString STR_LOGICAL_FIELD_NAMES = u"FirstName;LastName;Company;Department;Street;Zip;City;State;Country;PhonePriv;PhoneComp;PhoneOffice;PhoneCell;PhoneOther;Pager;Fax;EMail;Gender;URL;Title;Position;Code;AddrForm;AddrFormMail;Id;CalendarURL;InviteParticipant;Note;Altfield1;Altfield2;Altfield3;Altfield4"_ustr; inline constexpr TranslateId STR_DESCRIPTION_SMATH_DOC = { nullptr, u8"StarMath 2.0 - 5.0" }; inline constexpr TranslateId STR_DESCRIPTION_SCHART_DOC = { nullptr, u8"StarChart 3.0 - 5.0" }; diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index cc43a88d2efb..86f7b2ec94d9 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -531,6 +531,7 @@ void AssignmentPersistentData::ImplCommit() SvtResId(STR_FIELD_PAGER), SvtResId(STR_FIELD_FAX), SvtResId(STR_FIELD_EMAIL), + SvtResId(STR_FIELD_GENDER), SvtResId(STR_FIELD_URL), SvtResId(STR_FIELD_TITLE ), SvtResId(STR_FIELD_POSITION),
