mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 12:49:13 +02:00
IDE: when collecting translation files for given base PO file take into account only files with exactly matching names, i.e. for 'project1.po' collect 'project1.foo.po', not 'project1foo.po'.
git-svn-id: trunk@57544 -
This commit is contained in:
parent
40c903dd63
commit
f0d86864a4
@ -445,7 +445,8 @@ begin
|
||||
for Filename in Files do begin
|
||||
if CompareFilenames(Filename,Name)=0 then continue;
|
||||
if CompareFileExt(Filename,'.po',false)<>0 then continue;
|
||||
if (CompareFilenames(LeftStr(Filename,length(NameOnly)),NameOnly)<>0)
|
||||
//skip files which names don't have form 'nameonly.foo.po', e.g. 'nameonlyfoo.po'
|
||||
if (CompareFilenames(LeftStr(Filename,length(NameOnly)+1),NameOnly+'.')<>0)
|
||||
then
|
||||
continue;
|
||||
Result.Add(Path+Filename);
|
||||
|
Loading…
Reference in New Issue
Block a user