[Libreoffice-commits] core.git: sc/inc sc/source

Gabor Kelemen (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 28 07:59:28 UTC 2019


 sc/inc/globstr.hrc                 |    1 +
 sc/source/filter/excel/xichart.cxx |    4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 0269641d65dff97fa75892d15ffcb4ea81d70964
Author:     Gabor Kelemen <kelemen.gabor2 at nisz.hu>
AuthorDate: Thu Jun 27 21:19:28 2019 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Fri Jun 28 09:58:45 2019 +0200

    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 at collabora.com>

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);
         }
     }
 


More information about the Libreoffice-commits mailing list