mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-05 22:46:00 +02:00
LCL DefaultTranslator unit:
1) Removed useless TranslateResourceStrings call when translating using .mo files; 2) Fixed path to LCL translation .mo file git-svn-id: trunk@23881 -
This commit is contained in:
parent
8e10349b20
commit
6645384685
@ -359,13 +359,12 @@ initialization
|
||||
lcfn := FindLocaleFileName('.mo');
|
||||
if lcfn <> '' then
|
||||
begin
|
||||
TranslateResourceStrings(UTF8ToSys(lcfn));
|
||||
LCLPath := ExtractFileName(lcfn);
|
||||
Dot1 := pos('.', LCLPath);
|
||||
if Dot1 > 1 then
|
||||
begin
|
||||
Delete(LCLPath, 1, Dot1 - 1);
|
||||
LCLPath := ExtractFilePath(lcfn) + 'lcl' + LCLPath;
|
||||
LCLPath := ExtractFilePath(lcfn) + 'lclstrconsts' + LCLPath;
|
||||
if FileExistsUTF8(LCLPath) then
|
||||
TranslateResourceStrings(UTF8ToSys(LCLPath));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user