tdf#140845 labelling improvements for List Styles in Contains
move hard-coded formatting of liststyle out of
sw/source/uibase/utlui/attrdesc.cxx and into sw/inc/strings.hrc,
so that translators can customize as needed.
In sw/inc/strings.hrc:
* "Numbering" -> "List Style: (%LISTSTYLENAME)"
* "no numbering" -> "List Style: (None)"
(to be consistent with setting in "List Style" control
and to keep consistent appearance in Contains)
Thanks to Mike Kaganski for assistance.
Change-Id: I9d2b6507082fea06665d0d8a3465c314a5d894c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112213
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
Tested-by: Seth Chaiklin <sdc.blanco@youmail.dk>
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index 4d81ef4..008b077 100644
--- a/sw/inc/strings.hrc
+++ b/sw/inc/strings.hrc
@@ -1126,8 +1126,8 @@
#define STR_MAX_FTN_HEIGHT NC_("STR_MAX_FTN_HEIGHT", "Max. footnote area:")
#define STR_EDIT_IN_READONLY NC_("STR_EDIT_IN_READONLY", "Editable in read-only document")
#define STR_LAYOUT_SPLIT NC_("STR_LAYOUT_SPLIT", "Split")
#define STR_NUMRULE_ON NC_("STR_NUMRULE_ON", "Numbering")
#define STR_NUMRULE_OFF NC_("STR_NUMRULE_OFF", "no numbering")
#define STR_NUMRULE_ON NC_("STR_NUMRULE_ON", "List Style: (%LISTSTYLENAME)")
#define STR_NUMRULE_OFF NC_("STR_NUMRULE_OFF", "List Style: (None)")
#define STR_CONNECT1 NC_("STR_CONNECT1", "linked to ")
#define STR_CONNECT2 NC_("STR_CONNECT2", "and ")
#define STR_LINECOUNT NC_("STR_LINECOUNT", "Count lines")
diff --git a/sw/source/uibase/utlui/attrdesc.cxx b/sw/source/uibase/utlui/attrdesc.cxx
index 861697d..e35e8d3 100644
--- a/sw/source/uibase/utlui/attrdesc.cxx
+++ b/sw/source/uibase/utlui/attrdesc.cxx
@@ -190,8 +190,7 @@ bool SwNumRuleItem::GetPresentation
) const
{
if( !GetValue().isEmpty() )
rText = SwResId( STR_NUMRULE_ON ) +
"(" + GetValue() + ")";
rText = SwResId( STR_NUMRULE_ON ).replaceFirst("%LISTSTYLENAME", GetValue());
else
rText = SwResId( STR_NUMRULE_OFF );
return true;