diff options
author | Kevin Suo <suokunlong@126.com> | 2022-10-22 14:15:35 +0800 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-23 17:56:22 +0200 |
commit | a97bae545d72d8b19f39aa9280c0f284c79d0f6c (patch) | |
tree | 5a51ee5dcd54f1e7aa02efc6850fc39d4a2bc782 /filter/source | |
parent | 2e87990f4a317ac1958f88fafb85a93b5f85a3ea (diff) |
tdf#151697: Use localized string for "Loading" and "Saving" in status bar
Change-Id: I51967950839e7384e8f31178a70bd944d6f9059c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141662
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source')
-rw-r--r-- | filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx index 11686e7c919e..525f567b67c0 100644 --- a/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx +++ b/filter/source/xmlfilteradaptor/XmlFilterAdaptor.cxx @@ -43,6 +43,8 @@ #include <unotools/pathoptions.hxx> #include <xmloff/xmlimp.hxx> +#include <strings.hrc> + using namespace comphelper; using namespace com::sun::star::uno; using namespace com::sun::star::lang; @@ -67,7 +69,7 @@ bool XmlFilterAdaptor::importImpl( const Sequence< css::beans::PropertyValue >& utl::MediaDescriptor::PROP_STATUSINDICATOR, Reference< XStatusIndicator >())); if (xStatusIndicator.is()){ - xStatusIndicator->start( "Loading :", 4); + xStatusIndicator->start(FilterResId(STR_FILTER_DOC_LOADING), 4); } OUString aBaseURI; @@ -233,7 +235,7 @@ bool XmlFilterAdaptor::exportImpl( const Sequence< css::beans::PropertyValue >& utl::MediaDescriptor::PROP_STATUSINDICATOR, Reference< XStatusIndicator >())); if (xStatusIndicator.is()) - xStatusIndicator->start( "Saving :", 3); + xStatusIndicator->start(FilterResId(STR_FILTER_DOC_SAVING), 3); // Set up converter bridge. Reference< css::xml::XExportFilter > xConverter(mxContext->getServiceManager()->createInstanceWithContext( udConvertClass, mxContext ), UNO_QUERY); |