LazUtils, Translations unit: added comment

git-svn-id: trunk@61281 -
This commit is contained in:
maxim 2019-05-22 23:13:33 +00:00
parent ff409fc05d
commit a620891184

View File

@ -1605,6 +1605,8 @@ begin
CurrentItem:=TPOFileItem.Create(lowercase(Identifier), Original, Translation);
CurrentItem.Comments := Comments;
CurrentItem.Context := Context;
//When setting item flags, omit '"' characters in order to avoid regeneration instability.
//These characters are not meant to be present in flags anyway according to examples in gettext documentation.
TmpFlags := StringReplace(Flags, '"', '', [rfReplaceAll]);
CurrentItem.ModifyFlag(lowercase(TmpFlags), true);
CurrentItem.PreviousID := PreviousID;