diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-06-27 21:19:28 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-06-28 09:58:45 +0200 |
commit | 0269641d65dff97fa75892d15ffcb4ea81d70964 (patch) | |
tree | 3ad5a84245c95bb359a34b136e9f43ae5570736f | |
parent | 2e0e0bf789af7c0de3507cc67ff293ad2c87da33 (diff) |
tdf#126030 (related) Translate automatic chart title in XLS charts
The same string for XLS format is on a different code path
localize it too, just in case
Change-Id: Iacaf59080cc320498867680fc13836edbe9afe49
Reviewed-on: https://gerrit.libreoffice.org/74820
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | sc/inc/globstr.hrc | 1 | ||||
-rw-r--r-- | sc/source/filter/excel/xichart.cxx | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc index 78437dc9f9d3..e0bc77c3a260 100644 --- a/sc/inc/globstr.hrc +++ b/sc/inc/globstr.hrc @@ -352,6 +352,7 @@ #define STR_QUICKHELP_REF NC_("STR_QUICKHELP_REF", "%1 R x %2 C") #define STR_FUNCTIONLIST_MORE NC_("STR_FUNCTIONLIST_MORE", "More...") #define STR_ERR_INVALID_AREA NC_("STR_ERR_INVALID_AREA", "Invalid range") +#define STR_CHARTTITLE NC_("STR_CHARTTITLE", "Chart Title") // Templates for data pilot tables. #define STR_PIVOT_STYLENAME_INNER NC_("STR_PIVOT_STYLE_INNER", "Pivot Table Value") #define STR_PIVOT_STYLENAME_RESULT NC_("STR_PIVOT_STYLE_RESULT", "Pivot Table Result") diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx index bc86a848d8af..6c003d53d0d4 100644 --- a/sc/source/filter/excel/xichart.cxx +++ b/sc/source/filter/excel/xichart.cxx @@ -88,6 +88,8 @@ #include <compiler.hxx> #include <reftokenhelper.hxx> #include <chartlis.hxx> +#include <globstr.hrc> +#include <scresid.hxx> #include <xltracer.hxx> #include <xltools.hxx> #include <xistream.hxx> @@ -4181,7 +4183,7 @@ void XclImpChChart::FinalizeTitle() if( !mxTitle ) mxTitle.reset( new XclImpChText( GetChRoot() ) ); if( aAutoTitle.isEmpty() ) - aAutoTitle = "Chart Title"; + aAutoTitle = ScResId(STR_CHARTTITLE); } } |