mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-23 03:39:23 +02:00
LazUtils: translations.pas unit: reduced lowercase function calls
git-svn-id: trunk@57367 -
This commit is contained in:
parent
afe1fc7762
commit
32888ff513
@ -1132,11 +1132,11 @@ begin
|
||||
//Load translation only if it exists and is NOT fuzzy.
|
||||
//This matches gettext behaviour and allows to avoid a lot of crashes related
|
||||
//to formatting arguments mismatches.
|
||||
if (Item<>nil) and (pos(sFuzzyFlag, lowercase(Item.Flags))=0)
|
||||
if (Item<>nil) and (pos(sFuzzyFlag, Item.Flags)=0)
|
||||
//Load translation only if it is not flagged as badformat.
|
||||
//This allows to avoid even more crashes related
|
||||
//to formatting arguments mismatches.
|
||||
and (pos(sBadFormatFlag, lowercase(Item.Flags))=0)
|
||||
and (pos(sBadFormatFlag, Item.Flags)=0)
|
||||
then begin
|
||||
Result:=Item.Translation;
|
||||
if Result='' then
|
||||
@ -1683,7 +1683,7 @@ begin
|
||||
CurrentItem:=TPOFileItem.Create(lowercase(Identifier), Original, Translation);
|
||||
CurrentItem.Comments := Comments;
|
||||
CurrentItem.Context := Context;
|
||||
CurrentItem.Flags := Flags;
|
||||
CurrentItem.Flags := lowercase(Flags);
|
||||
CurrentItem.PreviousID := PreviousID;
|
||||
CurrentItem.LineNr := LineNr;
|
||||
NewItem := true;
|
||||
|
Loading…
Reference in New Issue
Block a user