[Libreoffice-commits] .: Branch 'feature/killsdf' - l10ntools/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Sep 30 08:12:52 PDT 2012


 l10ntools/source/po.cxx |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

New commits:
commit 0e138f246cc490df35046bba83e459164620ca77
Author: Zolnai Tamás <zolnaitamas2000 at gmail.com>
Date:   Sun Sep 30 12:08:04 2012 +0200

    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 at suse.com>
    Tested-by: Andras Timar <atimar at suse.com>

diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index cf0b963..0649efe 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)
 {


More information about the Libreoffice-commits mailing list