mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-06 00:46:01 +02:00
LazUtils: when updating existing translation item, copy PreviousID together with translation if needed, just like we do for newly added item.
git-svn-id: trunk@57010 -
This commit is contained in:
parent
2c0b33fd1a
commit
854d1eceaf
@ -1682,6 +1682,9 @@ begin
|
||||
Item.Context := Item.IdentifierLow;
|
||||
Item.Translation := ItemTmp.Translation;
|
||||
Item.ModifyFlag(sFuzzyFlag, true);
|
||||
// if old item is fuzzy, copy PreviousID too
|
||||
if pos(sFuzzyFlag, ItemTmp.Flags)<>0 then
|
||||
Item.PreviousID := ItemTmp.PreviousID;
|
||||
FModified := True;
|
||||
end;
|
||||
end;
|
||||
@ -1699,7 +1702,7 @@ begin
|
||||
APrevStr := '';
|
||||
Item := TPOFileItem(FOriginalToItem.Data[Original]);
|
||||
if Item<>nil then begin
|
||||
// old item don't have context, add one
|
||||
// old item doesn't have context, add one
|
||||
if Item.Context='' then
|
||||
Item.Context := Item.IdentifierLow;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user