diff options
-rw-r--r-- | l10ntools/source/po.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index 72644095c8f8..c80249ad9e83 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -35,6 +35,7 @@ private: OString m_sMsgId; OString m_sMsgStr; bool m_bFuzzy; + bool m_bCFormat; bool m_bNull; public: @@ -119,6 +120,7 @@ GenPoEntry::GenPoEntry() , m_sMsgId( OString() ) , m_sMsgStr( OString() ) , m_bFuzzy( false ) + , m_bCFormat( false ) , m_bNull( false ) { } @@ -135,6 +137,8 @@ void GenPoEntry::writeToFile(std::ofstream& rOFStream) const rOFStream << "#: " << m_sReference << std::endl; if ( m_bFuzzy ) rOFStream << "#, fuzzy" << std::endl; + if ( m_bCFormat ) + rOFStream << "#, c-format" << std::endl; if ( !m_sMsgCtxt.isEmpty() ) rOFStream << "msgctxt " << lcl_GenMsgString(m_sReference+"\n"+m_sMsgCtxt) @@ -175,6 +179,10 @@ void GenPoEntry::readFromFile(std::ifstream& rIFStream) { m_bFuzzy = true; } + else if (sLine.startsWith("#, c-format")) + { + m_bCFormat = true; + } else if (sLine.startsWith("msgctxt ")) { m_sMsgCtxt = lcl_GenNormString(sLine.copy(8)); |