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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Sep 30 19:58:32 UTC 2018


 l10ntools/inc/po.hxx    |    1 +
 l10ntools/source/po.cxx |    8 ++++++++
 2 files changed, 9 insertions(+)

New commits:
commit 2a47dd078bf448f34f05a56a647410a66da00eea
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Sun Sep 30 16:55:41 2018 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Sun Sep 30 21:58:09 2018 +0200

    pocheck: we need to access msgctxt of a PO entry
    
    Change-Id: I43978811056692623344239d2c6e4763fa7de16b
    Reviewed-on: https://gerrit.libreoffice.org/61165
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/l10ntools/inc/po.hxx b/l10ntools/inc/po.hxx
index 52c644f176cb..e213f47e177a 100644
--- a/l10ntools/inc/po.hxx
+++ b/l10ntools/inc/po.hxx
@@ -58,6 +58,7 @@ public:
     OString         getLocalId() const;
     OString         getResourceType() const;    ///< Get the type of component from which entry is extracted
     TYPE            getType() const;            ///< Get the type of entry
+    OString const & getMsgCtxt() const;
     OString const & getMsgId() const;
     OString const & getMsgStr() const;
     bool            isFuzzy() const;
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index e87fe66f25f1..a0cdf2172df2 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -354,6 +354,14 @@ bool PoEntry::isFuzzy() const
     return m_pGenPo->isFuzzy();
 }
 
+// Get message context
+const OString& PoEntry::getMsgCtxt() const
+{
+    assert( m_bIsInitialized );
+    return m_pGenPo->getMsgCtxt();
+
+}
+
 // Get translation string in merge format
 OString const & PoEntry::getMsgId() const
 {


More information about the Libreoffice-commits mailing list