From 244063d03117119d048376c84e22cf47c4abd250 Mon Sep 17 00:00:00 2001 From: Kevin Suo Date: Fri, 30 Sep 2022 14:21:10 +0800 Subject: Templates: Make localized names for "Simple" and "BPMN" show on the UI Currently there are 32 localized template name strings defined in: include/sfx2/strings.hrc. However, in sfx2/source/doc/doctempl.cxx only 30 were used. This makes STR_TEMPLATE_NAME31 ("Simple") and STR_TEMPLATE_NAME32 ("BPMN"), although already localized, not show up on the Template Manager UI. This patch adds these two strings in the sfx2/source/doc/doctempl.cxx, so that they properly show as localized strings on the UI. Change-Id: I64bb28cfe0a4d3b4b41c9114de7223014f6a3cfe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140785 Tested-by: Jenkins Reviewed-by: Rafael Lima Reviewed-by: Laurent Balland --- sfx2/source/doc/doctempl.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index 4d08e3030359..2699f7adaa14 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -493,7 +493,9 @@ OUString SfxDocumentTemplates::ConvertResourceString(const OUString& rString) STR_TEMPLATE_NAME27_DEF, STR_TEMPLATE_NAME28_DEF, STR_TEMPLATE_NAME29_DEF, - STR_TEMPLATE_NAME30_DEF + STR_TEMPLATE_NAME30_DEF, + STR_TEMPLATE_NAME31_DEF, + STR_TEMPLATE_NAME32_DEF, }; TranslateId STR_TEMPLATE_NAME[] = @@ -527,7 +529,9 @@ OUString SfxDocumentTemplates::ConvertResourceString(const OUString& rString) STR_TEMPLATE_NAME27, STR_TEMPLATE_NAME28, STR_TEMPLATE_NAME29, - STR_TEMPLATE_NAME30 + STR_TEMPLATE_NAME30, + STR_TEMPLATE_NAME31, + STR_TEMPLATE_NAME32, }; static_assert(SAL_N_ELEMENTS(aTemplateNames) == SAL_N_ELEMENTS(STR_TEMPLATE_NAME)); -- cgit