diff options
author | jan iversen <jani@documentfoundation.org> | 2016-03-20 14:08:05 +0100 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-03-22 16:32:19 +0100 |
commit | 095ca2a21119eca3c915c486aba85a5a7a6af2ad (patch) | |
tree | b47c4a7d2f773f098ee6d6b4d51e4fd4138542a5 /l10ntools/source | |
parent | 283cdcf922fcc1605e8f4825c784fe9b3eb8d4ca (diff) |
genlang, .xrm ==> .pot works identical
The conversion from .xrm to .pot is now identical
Missings are adding the POT_CREATE_DATE timestamp
and generate the KID.
Change-Id: I421f0451b896c447767a32945ab82a8adc84fc7a
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/gConvPo.cxx | 9 | ||||
-rw-r--r-- | l10ntools/source/gConvXrm.cxx | 2 | ||||
-rw-r--r-- | l10ntools/source/gL10nMem.cxx | 2 | ||||
-rw-r--r-- | l10ntools/source/gLexXrm.l | 2 |
4 files changed, 8 insertions, 7 deletions
diff --git a/l10ntools/source/gConvPo.cxx b/l10ntools/source/gConvPo.cxx index d82d2912c3fb..d0607977867a 100644 --- a/l10ntools/source/gConvPo.cxx +++ b/l10ntools/source/gConvPo.cxx @@ -162,6 +162,7 @@ void convert_po::startSave(const string& sName, ostream outFile(&outBuffer); // Set license header +//FIX JAN POT-Creation-Date outFile << "#. extracted from " << sName << endl << "msgid \"\"" << endl << "msgstr \"\"" << endl @@ -197,14 +198,16 @@ void convert_po::save(const string& sFileName, newPos = sFileName.find_last_of("/\\", sFileName.length()); sName = sFileName.substr(newPos + 1, sFileName.length()); - outFile << "#. xxxxx" << endl + outFile << endl + << "#. xxxxx" << endl << "#: " << sName << endl << "msgctxt \"\"" << endl << "\"" << sName << "\\n\"" << endl - << "\"" << sKey << "\\n\"" << endl; + << "\"" << sKey << "\\n\"" << endl + << "\"readmeitem.text\"" << endl; if (bFuzzy) outFile << "#, fuzzy" << endl; - outFile << "msgid \"" << sENUStext << "\"" << endl + outFile << "msgid \"" << sENUStext << "\"" << endl << "msgstr \"" << sText << "\"" << endl; } diff --git a/l10ntools/source/gConvXrm.cxx b/l10ntools/source/gConvXrm.cxx index afe9bc5433a4..86ea986f0b5b 100644 --- a/l10ntools/source/gConvXrm.cxx +++ b/l10ntools/source/gConvXrm.cxx @@ -75,7 +75,7 @@ void convert_xrm::setLang(char *yytext) { string& sText = copySource(yytext, mbNoCollectingData); string sLang; - int nL, nE; + int nL, nE; if (mbIsTag) { diff --git a/l10ntools/source/gL10nMem.cxx b/l10ntools/source/gL10nMem.cxx index dcf117b0b6b4..ea30f3b1fae3 100644 --- a/l10ntools/source/gL10nMem.cxx +++ b/l10ntools/source/gL10nMem.cxx @@ -106,7 +106,7 @@ class l10nMem_enus_entry // convert key to upper case msKey = sKey; - l10nMem::keyToUpper(msKey); + //FIX l10nMem::keyToUpper(msKey); } ~l10nMem_enus_entry() {}; diff --git a/l10ntools/source/gLexXrm.l b/l10ntools/source/gLexXrm.l index 9ef4d20e26e4..593741157130 100644 --- a/l10ntools/source/gLexXrm.l +++ b/l10ntools/source/gLexXrm.l @@ -85,7 +85,6 @@ SP [ \t]* } -"<title " | "<h"[0-9]" " | "<p " { LOCptr->setTag(yytext); @@ -93,7 +92,6 @@ SP [ \t]* -"</title>"[ \t\r]*[\n] | "</h"[0-9]">"[ \t\r]*[\n] | "</p>"[ \t\r]*[\n] { LOCptr->stopCollectData(yytext); |