summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-09 08:58:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-09 16:37:10 +0200
commit2116f1d7932aa778afb14daf9cf5cd3df7b05fc1 (patch)
tree1bebb20216b18b6c2fcc604cfd9c0eb2e658e45e /sc
parent2bd87a28d5b7ff406176b20eddf614e9be624c84 (diff)
add some more pluralized form examples
Change-Id: I7163577fb43f28c8c9c138ebf3a9d36586247a32 Reviewed-on: https://gerrit.libreoffice.org/61587 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/globstr.hrc3
-rw-r--r--sc/inc/strings.hrc2
-rw-r--r--sc/source/core/data/attrib.cxx2
-rw-r--r--sc/source/core/data/docpool.cxx2
4 files changed, 5 insertions, 4 deletions
diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc
index 186ef461f8ab..88e059d3270f 100644
--- a/sc/inc/globstr.hrc
+++ b/sc/inc/globstr.hrc
@@ -21,6 +21,7 @@
#define SC_GLOBSTR_HRC
#define NC_(Context, String) (Context "\004" u8##String)
+#define NNC_(Context, StringSingular, StringPlural) (Context "\004" u8##StringSingular "\004" u8##StringPlural)
/*
* This file is reserved for string IDs of permanently loaded resident string
@@ -313,7 +314,7 @@
#define STR_SCATTR_PAGE_SCALETO NC_("STR_SCATTR_PAGE_SCALETO", "Fit print range(s) to width/height")
#define STR_SCATTR_PAGE_SCALE_WIDTH NC_("STR_SCATTR_PAGE_SCALE_WIDTH", "Width")
#define STR_SCATTR_PAGE_SCALE_HEIGHT NC_("STR_SCATTR_PAGE_SCALE_HEIGHT", "Height")
-#define STR_SCATTR_PAGE_SCALE_PAGES NC_("STR_SCATTR_PAGE_SCALE_PAGES", "%1 page(s)")
+#define STR_SCATTR_PAGE_SCALE_PAGES NNC_("STR_SCATTR_PAGE_SCALE_PAGES", "One page", "%1 pages")
#define STR_SCATTR_PAGE_SCALE_AUTO NC_("STR_SCATTR_PAGE_SCALE_AUTO", "automatic")
#define STR_DOC_STAT NC_("STR_DOC_STAT", "Statistics")
#define STR_LINKERROR NC_("STR_LINKERROR", "The link could not be updated.")
diff --git a/sc/inc/strings.hrc b/sc/inc/strings.hrc
index dc606e3bd379..faaf973452a3 100644
--- a/sc/inc/strings.hrc
+++ b/sc/inc/strings.hrc
@@ -50,7 +50,7 @@
#define SCSTR_RENAMEOBJECT NC_("SCSTR_RENAMEOBJECT", "Name Object")
#define STR_INSERTGRAPHIC NC_("STR_INSERTGRAPHIC", "Insert Image")
#define STR_QUERYROTATION NC_("STR_QUERYROTATION", "This image is rotated. Would you like to rotate it into standard orientation?")
-#define SCSTR_TOTAL NNC_("SCSTR_TOTAL", "1 result found", "%1 results found")
+#define SCSTR_TOTAL NNC_("SCSTR_TOTAL", "One result found", "%1 results found")
#define SCSTR_SKIPPED NC_("SCSTR_SKIPPED", "(only %1 are listed)")
// Attribute
#define SCSTR_PROTECTDOC NC_("SCSTR_PROTECTDOC", "Protect Spreadsheet Structure")
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index a537eb4e0250..769f9722725b 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -637,7 +637,7 @@ void lclAppendScalePageCount( OUString& rText, sal_uInt16 nPages )
rText += ": ";
if( nPages )
{
- OUString aPages( ScResId( STR_SCATTR_PAGE_SCALE_PAGES ) );
+ OUString aPages(ScResId(STR_SCATTR_PAGE_SCALE_PAGES, nPages));
rText += aPages.replaceFirst( "%1", OUString::number( nPages ) );
}
else
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index f199e49a26e2..965d3cf27d0b 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -536,7 +536,7 @@ bool ScDocumentPool::GetPresentation(
if( nPagNo )
{
rText = ScResId( STR_SCATTR_PAGE_SCALETOPAGES ) + aStrSep;
- OUString aPages( ScResId( STR_SCATTR_PAGE_SCALE_PAGES ) );
+ OUString aPages(ScResId(STR_SCATTR_PAGE_SCALE_PAGES, nPagNo));
aPages = aPages.replaceFirst( "%1", OUString::number( nPagNo ) );
rText += aPages;
}