From 41d743310d7388cded40872364c9fc44082c7d6e Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Thu, 27 Jun 2019 15:35:42 +0200 Subject: tdf#126030 Translate automatic chart title in OOXML charts Add l10n support to oox module to achieve this Change-Id: I7bece62bdf5ef0f0d1ef424074f16cef94649d77 Reviewed-on: https://gerrit.libreoffice.org/74819 Tested-by: Jenkins Reviewed-by: Andras Timar --- oox/inc/ooxresid.hxx | 19 +++++++++++++++++++ oox/inc/strings.hrc | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 oox/inc/ooxresid.hxx create mode 100644 oox/inc/strings.hrc (limited to 'oox/inc') diff --git a/oox/inc/ooxresid.hxx b/oox/inc/ooxresid.hxx new file mode 100644 index 000000000000..ed51b317269b --- /dev/null +++ b/oox/inc/ooxresid.hxx @@ -0,0 +1,19 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_OOX_INC_RESID_HXX +#define INCLUDED_OOX_INC_RESID_HXX + +#include +#include + +OOX_DLLPUBLIC OUString OoxResId(const char* pId); + +#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/inc/strings.hrc b/oox/inc/strings.hrc new file mode 100644 index 000000000000..dcb0744d593f --- /dev/null +++ b/oox/inc/strings.hrc @@ -0,0 +1,18 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef OOX_STRINGS_HRC +#define OOX_STRINGS_HRC + +#define NC_(Context, String) reinterpret_cast(Context "\004" u8##String) + +#define STR_DIAGRAM_TITLE NC_("STR_DIAGRAM_TITLE", "Chart Title") + +#endif +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ \ No newline at end of file -- cgit