mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:09:31 +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;
|
function Translate (Name,Value : AnsiString; Hash : Longint; arg:pointer) : AnsiString;
|
||||||
|
var contextempty : boolean;
|
||||||
begin
|
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;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user