mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 11:49:55 +02:00
fixed reading po files with c string MsgID
git-svn-id: trunk@9396 -
This commit is contained in:
parent
197af73cdf
commit
c8ded32146
@ -2149,12 +2149,13 @@ var
|
||||
SourceEnd: PChar;
|
||||
CharLen: integer;
|
||||
|
||||
// Copies from SourceStart to Source to Dest and updates Dest
|
||||
// Copies from SourceStart till Source to Dest and updates Dest
|
||||
procedure CopyPart; inline;
|
||||
var
|
||||
CopyLength: SizeInt;
|
||||
begin
|
||||
CopyLength := Source - SourceStart;
|
||||
if CopyLength=0 then exit;
|
||||
move(SourceStart^ , Dest^, CopyLength);
|
||||
inc(Dest, CopyLength);
|
||||
end;
|
||||
|
@ -304,7 +304,7 @@ begin
|
||||
if CompareMem(LineStart,sCommentIdentifier,3) then begin
|
||||
Identifier:=copy(s,LineStart-p+4,LineLen-3);
|
||||
end else if CompareMem(LineStart,sMsgID,7) then begin
|
||||
MsgID:=copy(s,LineStart-p+8,LineLen-8);
|
||||
MsgID:=UTF8CStringToUTF8String(LineStart+7,LineLen-8);
|
||||
end else if CompareMem(LineStart,sMsgStr,8) then begin
|
||||
//MsgStr:=copy(s,LineStart-p+9,LineLen-9);
|
||||
MsgStr:=UTF8CStringToUTF8String(LineStart+8,LineLen-9);
|
||||
|
Loading…
Reference in New Issue
Block a user