[Libreoffice-commits] core.git: l10ntools/source
Christian Lohmaier (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 2 21:38:14 UTC 2019
l10ntools/source/pocheck.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit abe0291cdddc9709b82d16c8aa0a0a126430d828
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
AuthorDate: Wed Oct 2 23:33:22 2019 +0200
Commit: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
CommitDate: Wed Oct 2 23:36:51 2019 +0200
pocheck: also preserve header in check for function names
Change-Id: I53b67e8c690b110d2d77e100b8170ac968e35e2b
diff --git a/l10ntools/source/pocheck.cxx b/l10ntools/source/pocheck.cxx
index 423f7246663f..e080138ed3fc 100644
--- a/l10ntools/source/pocheck.cxx
+++ b/l10ntools/source/pocheck.cxx
@@ -149,7 +149,8 @@ static void checkFunctionNames(const OString& aLanguage)
aLanguage +
"/formula/messages.po";
PoIfstream aPoInput;
- aPoInput.open(aPoPaths[0]);
+ OString sPoHdrMsg;
+ aPoInput.open(aPoPaths[0], sPoHdrMsg);
if( !aPoInput.isOpen() )
{
std::cerr << "Warning: Cannot open " << aPoPaths[0] << std::endl;
@@ -237,13 +238,13 @@ static void checkFunctionNames(const OString& aLanguage)
{
case 0:
{
- PoHeader hd("formula/inc");
+ PoHeader hd("formula/inc", sPoHdrMsg);
aPoOutput.writeHeader(hd);
break;
}
case 1:
{
- PoHeader hd("scaddins/inc");
+ PoHeader hd("scaddins/inc", sPoHdrMsg);
aPoOutput.writeHeader(hd);
break;
}
More information about the Libreoffice-commits
mailing list