diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-07-05 08:53:18 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-07-14 00:11:32 +0200 |
commit | e3b70f23edd28531bae357386e90fd44a18ae24e (patch) | |
tree | f9188943c6aab4558cd98bc9a3407be95d5c76c4 | |
parent | ecded48524b9c72afe2200f973cd5d4a489a7f09 (diff) |
tdf#126192 Translate automatic axis labels
Change-Id: I7f5e765536198a7ac216e1ff9df55102e23cb1d7
Reviewed-on: https://gerrit.libreoffice.org/75294
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | oox/inc/strings.hrc | 2 | ||||
-rw-r--r-- | oox/source/drawingml/chart/axisconverter.cxx | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/oox/inc/strings.hrc b/oox/inc/strings.hrc index dcb0744d593f..89a6d9a115a6 100644 --- a/oox/inc/strings.hrc +++ b/oox/inc/strings.hrc @@ -13,6 +13,6 @@ #define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String) #define STR_DIAGRAM_TITLE NC_("STR_DIAGRAM_TITLE", "Chart Title") - +#define STR_DIAGRAM_AXISTITLE NC_("STR_DIAGRAM_AXISTITLE", "Axis Title") #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
\ No newline at end of file diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx index f35cd5333e70..a98e1b51223e 100644 --- a/oox/source/drawingml/chart/axisconverter.cxx +++ b/oox/source/drawingml/chart/axisconverter.cxx @@ -18,6 +18,8 @@ */ #include <drawingml/chart/axisconverter.hxx> +#include <ooxresid.hxx> +#include <strings.hrc> #include <com/sun/star/chart/ChartAxisArrangeOrderType.hpp> #include <com/sun/star/chart/ChartAxisLabelPosition.hpp> @@ -360,7 +362,7 @@ void AxisConverter::convertFromModel( { Reference< XTitled > xTitled( xAxis, UNO_QUERY_THROW ); TitleConverter aTitleConv( *this, *mrModel.mxTitle ); - aTitleConv.convertFromModel( xTitled, "Axis Title", OBJECTTYPE_AXISTITLE, nAxesSetIdx, nAxisIdx ); + aTitleConv.convertFromModel( xTitled, OoxResId(STR_DIAGRAM_AXISTITLE), OBJECTTYPE_AXISTITLE, nAxesSetIdx, nAxisIdx ); } // axis data unit label ----------------------------------------------- |