[Libreoffice-commits] core.git: oox/inc oox/source
Gabor Kelemen (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jul 13 22:12:21 UTC 2019
oox/inc/strings.hrc | 2 +-
oox/source/drawingml/chart/axisconverter.cxx | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
New commits:
commit e3b70f23edd28531bae357386e90fd44a18ae24e
Author: Gabor Kelemen <kelemen.gabor2 at nisz.hu>
AuthorDate: Fri Jul 5 08:53:18 2019 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Sun Jul 14 00:11:32 2019 +0200
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 at collabora.com>
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 -----------------------------------------------
More information about the Libreoffice-commits
mailing list