diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2012-09-30 12:08:04 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-09-30 15:12:34 +0000 |
commit | 0e138f246cc490df35046bba83e459164620ca77 (patch) | |
tree | 1e0ef5b2501a99d0932b92b7bca7e42c88cd38b4 /l10ntools | |
parent | ca12be682f28969b15b30539230ca40de88fc36d (diff) |
Move setting of po msgid to constructor
because this is part of initialization
Change-Id: If6ebe46cea93e378c9060f2c3ced09ab44a3d82a
Reviewed-on: https://gerrit.libreoffice.org/729
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/po.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index cf0b9632d854..0649efedac0a 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -427,7 +427,9 @@ PoEntry::PoEntry(const OString& rSDFLine, const TYPE eType) only three element*/ } m_aGenPo.setContext(sContext); - setUnTransStr(vParts[eType]); + m_aGenPo.setUnTransStr( + ImplUnEscapeSDFText( + vParts[eType],vParts[SOURCEFILE].endsWith(".xhp"))); m_aGenPo.genKeyId(); m_bIsInitialized = true; } @@ -522,14 +524,6 @@ OString PoEntry::getTransStr() const } -//Set translation string when input is in sdf format -void PoEntry::setUnTransStr(const OString& rUnTransStr) -{ - m_aGenPo.setUnTransStr( - ImplUnEscapeSDFText( - rUnTransStr,getSourceFile().endsWith(".xhp"))); -} - //Set translated string when input is in sdf format void PoEntry::setTransStr(const OString& rTransStr) { |