[Libreoffice-commits] core.git: sfx2/source

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Sun Mar 21 13:10:51 UTC 2021


 sfx2/source/devtools/DevToolsStrings.hrc          |    2 +-
 sfx2/source/devtools/DocumentModelTreeHandler.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b24409fce6a4f6f1848a3283258914785d4e1c10
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Sun Mar 21 20:44:35 2021 +0900
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Sun Mar 21 14:10:10 2021 +0100

    devtools: wrongly plural STR_SHEETS, it should write "Sheet %1"
    
    STR_SHEETS value "Sheets %1" was used to name one particular sheet
    and souldn't be plural. This changes it to STR_SHEET and the value
    to "Sheet %1".
    
    Change-Id: I29390fa19b0d6e1edaea76c6f3fe60ee25ba50f7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112835
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/sfx2/source/devtools/DevToolsStrings.hrc b/sfx2/source/devtools/DevToolsStrings.hrc
index 669d9a78a5f8..764ae78712a0 100644
--- a/sfx2/source/devtools/DevToolsStrings.hrc
+++ b/sfx2/source/devtools/DevToolsStrings.hrc
@@ -17,7 +17,7 @@
 #define STR_PAGE NC_("STR_PAGE", "Page %1")
 #define STR_SLIDE NC_("STR_SLIDE", "Slide %1")
 #define STR_MASTER_SLIDE NC_("STR_MASTER_SLIDE", "Master Slide %1")
-#define STR_SHEETS NC_("STR_SHEETS", "Sheets %1")
+#define STR_SHEET NC_("STR_SHEET", "Sheet %1")
 
 #define STR_SHAPES_ENTRY NC_("STR_SHAPES_NODE", "Shapes")
 #define STR_CHARTS_ENTRY NC_("STR_CHARTS_ENTRY", "Charts")
diff --git a/sfx2/source/devtools/DocumentModelTreeHandler.cxx b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
index c77dc02a5236..a5b14ca42ab9 100644
--- a/sfx2/source/devtools/DocumentModelTreeHandler.cxx
+++ b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
@@ -693,7 +693,7 @@ public:
                                                        uno::UNO_QUERY);
             OUString aString = lclGetNamed(xSheet);
             if (aString.isEmpty())
-                aString = SfxResId(STR_SHEETS).replaceFirst("%1", OUString::number(i + 1));
+                aString = SfxResId(STR_SHEET).replaceFirst("%1", OUString::number(i + 1));
             auto pEntry = std::make_unique<SheetEntry>(aString, xSheet);
             lclAppendToParentEntry(pDocumentModelTree, rParent, pEntry.release());
         }


More information about the Libreoffice-commits mailing list