diff options
author | Andras Timar <andras.timar@collabora.com> | 2018-09-30 16:55:41 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-11-21 13:39:14 +0100 |
commit | c1a1b0781a54716bdacbbe35478d1e5bd5a39b2b (patch) | |
tree | 5459997cc32d57b59db29f56ce05d5587f30f31b /l10ntools | |
parent | d223191c97098024a3b4e824c3b0f4f97cc645c8 (diff) |
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@collabora.com>
(cherry picked from commit 2a47dd078bf448f34f05a56a647410a66da00eea)
Reviewed-on: https://gerrit.libreoffice.org/63598
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/inc/po.hxx | 1 | ||||
-rw-r--r-- | l10ntools/source/po.cxx | 8 |
2 files changed, 9 insertions, 0 deletions
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 8b6edd50d65d..51305c64badb 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -353,6 +353,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 { |