Skip to content

Commit

Permalink
Necessary changes because of changes to TPOEntry and TPOFile and remo…
Browse files Browse the repository at this point in the history
…ved reports for PrevMsgid.
  • Loading branch information
sigmdel committed Jun 1, 2021
1 parent d1c9fc1 commit 0e3b3b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
6 changes: 1 addition & 5 deletions poinfo.d/poinfo.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
</Mode0>
</Modes>
</RunParams>
<Units Count="4">
<Units Count="3">
<Unit0>
<Filename Value="poinfo.lpr"/>
<IsPartOfProject Value="True"/>
Expand All @@ -109,10 +109,6 @@
<Filename Value="..\units\futils.pas"/>
<IsPartOfProject Value="True"/>
</Unit2>
<Unit3>
<Filename Value="..\po-file-format-info.txt"/>
<IsPartOfProject Value="True"/>
</Unit3>
</Units>
</ProjectOptions>
<CompilerOptions>
Expand Down
9 changes: 3 additions & 6 deletions poinfo.d/poinfo.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,24 @@
end
else begin
PoFile := TPoFile.Create;
PoFile.ReportError := true;
PoFile.Filename := ParamFilename(1);
try
if PoFile.ErrorCount > 0 then
writeln;
PoFile.WriteStatistics('Source');
with PoFile do begin
for i := 0 to Count-1 do with Entries[i] do begin
if IsFuzzy or HasPrevmsgid or HasDuplicateReference
if IsFuzzy {or HasPrevmsgid} or HasDuplicateReference
or HasDuplicateMsgid or HasDuplicateMsgstr then
writeln;
if IsAmbiguous then
writeln(Format('Entry %d (%s) is ambiguous', [i, Reference]));
if HasDuplicateMsgid then
writeln(Format('Entry %d (%s) has a duplicate msgid', [i, Reference]));
if HasDuplicateMsgstr then
writeln(Format('Entry %d (%s) has a duplicate msgstr', [i, Reference]));
if IsFuzzy then
writeln(Format('Entry %d (%s) is fuzzy', [i, Reference]));
if HasPrevmsgid then
writeln(Format('Entry %d (%s) has a previous msgid', [i, Reference]));
//if HasPrevmsgid then
// writeln(Format('Entry %d (%s) has a previous msgid', [i, Reference]));
if HasDuplicateReference then
writeln(Format('Entry %d (%s) has a duplicate reference', [i, Reference]));
end;
Expand Down

0 comments on commit 0e3b3b0

Please sign in to comment.