mirror of
https://github.com/php/web-doc.git
synced 2025-08-01 16:41:32 +00:00
Ignore timezones.xml.
Let's crown Russian translation. Closes GH-24
This commit is contained in:

committed by
Nilgün Belma Bugüner

parent
969aca70ce
commit
ee52c04321
@ -359,13 +359,19 @@ function populateFileTreeRecurse( $lang , $path , & $output )
|
||||
'chmonly',
|
||||
];
|
||||
|
||||
$ignoredFullPaths = [
|
||||
'appendices/reserved.constants.xml',
|
||||
'appendices/extensions.xml',
|
||||
'reference/datetime/timezones.xml',
|
||||
];
|
||||
|
||||
if(
|
||||
in_array($trimPath, $ignoredDirectories, true)
|
||||
|| in_array($filename, $ignoredFileNames, true)
|
||||
|| (strpos($filename, 'entities.') === 0)
|
||||
|| !in_array(substr($filename, -3), ['xml','ent'], true)
|
||||
|| (substr($filename, -13) === 'PHPEditBackup')
|
||||
|| ($trimPath === 'appendices' && (in_array($filename, ['reserved.constants.xml', 'extensions.xml'], true)))
|
||||
|| (in_array($trimPath . '/' .$filename, $ignoredFullPaths, true))
|
||||
) continue;
|
||||
|
||||
$file = new FileStatusInfo;
|
||||
|
Reference in New Issue
Block a user