diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/globstr.hrc | 3 | ||||
-rw-r--r-- | sc/inc/strings.hrc | 2 | ||||
-rw-r--r-- | sc/source/core/data/attrib.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/docpool.cxx | 2 |
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; } |