mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 10:39:33 +02:00
* slightly adapted patch from Mantis 17224 from Maxim Ganetsky
also look ups with gettext-context if given. git-svn-id: trunk@15865 -
This commit is contained in:
parent
7119ebd599
commit
0d4d22690c
@ -261,8 +261,14 @@ end;
|
||||
|
||||
|
||||
function Translate (Name,Value : AnsiString; Hash : Longint; arg:pointer) : AnsiString;
|
||||
var contextempty : boolean;
|
||||
begin
|
||||
Result:=TMOFile(arg).Translate(Value,Hash);
|
||||
contextempty:=name='';
|
||||
Result:='';
|
||||
if not contextempty then
|
||||
Result:=TMOFile(arg).Translate(Name+#4+Value);
|
||||
if contextempty or (Result='') then
|
||||
Result:=TMOFile(arg).Translate(Value,Hash);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user