summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/attrdesc.cxx
diff options
context:
space:
mode:
authorSeth Chaiklin <sdc.blanco@youmail.dk>2021-03-09 11:43:55 +0100
committerSeth Chaiklin <sdc.blanco@youmail.dk>2021-03-11 15:37:42 +0100
commitf92510321dc860f43e471473db67167c0fefcbea (patch)
treeff49ef41be2341768eec6e66864c777afda5fa2d /sw/source/uibase/utlui/attrdesc.cxx
parentc6bf16909db054ec5467ebdc0ea0c9dc07307048 (diff)
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>
Diffstat (limited to 'sw/source/uibase/utlui/attrdesc.cxx')
-rw-r--r--sw/source/uibase/utlui/attrdesc.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/utlui/attrdesc.cxx b/sw/source/uibase/utlui/attrdesc.cxx
index 861697d5e329..e35e8d31e01c 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;