diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-03-21 20:44:35 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-03-21 14:10:10 +0100 |
commit | b24409fce6a4f6f1848a3283258914785d4e1c10 (patch) | |
tree | f5227b65deaabfaf6eb58771aa8853f15128dd8b /sfx2/source/devtools | |
parent | 407f6c757af01ea71eb8a86b41c27d12573f51e6 (diff) |
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@gmail.com>
Diffstat (limited to 'sfx2/source/devtools')
-rw-r--r-- | sfx2/source/devtools/DevToolsStrings.hrc | 2 | ||||
-rw-r--r-- | sfx2/source/devtools/DocumentModelTreeHandler.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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()); } |