sfx2/inc/doctempl.hrc            |    3 ++-
 sfx2/source/doc/doctemplates.cxx |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 03809a4338f4a1e9e5ad5088fdeedc4c3fe0f7b5
Author:     Rafael Lima <rafael.palma.l...@gmail.com>
AuthorDate: Sun Sep 25 21:12:08 2022 +0200
Commit:     Rafael Lima <rafael.palma.l...@gmail.com>
CommitDate: Wed Sep 28 18:51:32 2022 +0200

    Related tdf#132576 Fix "draw" string in Template Manager and make it 
translatable
    
    The Templates Manager has a category name "draw" which cannot be 
translated. It also looks weird because all other categories have full names 
whereas this one is a lowercase string.
    
    The reason the word "draw" is used is because it is the name of the folder 
where the template is located. This patch maps a string "Drawings" to give a 
proper translatable name for this category.
    
    For this patch to take effect, the user needs to be on a fresh profile (or 
at least reset the user UI modifications).
    
    Change-Id: I2223dfe8761a5687b02e843957ebf7fb07f4a626
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140506
    Tested-by: Jenkins
    Reviewed-by: Laurent Balland <laurent.ball...@mailo.fr>

diff --git a/sfx2/inc/doctempl.hrc b/sfx2/inc/doctempl.hrc
index d6b98a0e2a6b..10a10d0de0c6 100644
--- a/sfx2/inc/doctempl.hrc
+++ b/sfx2/inc/doctempl.hrc
@@ -37,7 +37,8 @@ const TranslateId TEMPLATE_LONG_NAMES_ARY[] =
     NC_("TEMPLATE_LONG_NAMES_ARY", "Presentation Backgrounds"),
     NC_("TEMPLATE_LONG_NAMES_ARY", "Presentations"),
     NC_("TEMPLATE_LONG_NAMES_ARY", "Miscellaneous"),
-    NC_("TEMPLATE_LONG_NAMES_ARY", "Labels")
+    NC_("TEMPLATE_LONG_NAMES_ARY", "Labels"),
+    NC_("TEMPLATE_LONG_NAMES_ARY", "Drawings")
 };
 
 #endif
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 858e37a32812..45d7d1015a97 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -493,7 +493,8 @@ const char* TEMPLATE_SHORT_NAMES_ARY[] =
     "layout",
     "presnt",
     "misc",
-    "labels"
+    "labels",
+    "draw"
 };
 
 void SfxDocTplService_Impl::readFolderList()

Reply via email to