summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc
diff options
context:
space:
mode:
authorPeter Rabi <prabi@caesar.elte.hu>2011-07-20 16:48:09 +0200
committerAndras Timar <atimar@suse.com>2011-07-22 21:52:45 +0200
commita8ef97f13b16a984d48450b05e4cb337f53a03a1 (patch)
tree2b34aaa0d365ecd7a5130c65e6cdd5707467e31c /sd/source/ui/inc
parent4cae99bd81d4c64a292b5e59753916b67c9dc24c (diff)
Bugfix fdo#32895 : un-translated template names (part 1/2)
Contributed under license LGPLv3+/MPL.
Diffstat (limited to 'sd/source/ui/inc')
-rw-r--r--sd/source/ui/inc/TemplateScanner.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sd/source/ui/inc/TemplateScanner.hxx b/sd/source/ui/inc/TemplateScanner.hxx
index 86c862a298cf..87141fa286bc 100644
--- a/sd/source/ui/inc/TemplateScanner.hxx
+++ b/sd/source/ui/inc/TemplateScanner.hxx
@@ -214,6 +214,20 @@ private:
Returns one of the states ERROR, SCAN_ENTRY, or SCAN_FOLDER.
*/
State ScanEntry (void);
+
+ /** Convert a resource string - a template name - to its localised pair if it exists.
+ @param nSourceResIds
+ Resource ID where the list of original en-US template names begin.
+ @param nDestResIds
+ Resource ID where the list of localised template names begin.
+ @param nCount
+ The number of names that have been localised.
+ @param rString
+ Name to be translated.
+ @return
+ The localised pair of rString or rString if the former does not exist.
+ */
+ ::rtl::OUString ConvertResourceString ( int nSourceResIds, int nDestResIds, int nCount, const ::rtl::OUString& rString );
};
} // end of namespace sd