boinc/locale/copy_files.php

21 lines
466 B
PHP
Raw Normal View History

2009-05-19 20:55:43 +00:00
#!/usr/bin/env php
2009-02-12 21:51:42 +00:00
<?php
// copy project-web-site translation files from new to old location.
// This is a kludge, but the simplest thing to do at this point
$d = opendir(".");
while ($f = readdir($d)) {
if ($f == '.') continue;
if ($f == '..') continue;
if ($f == 'templates') continue;
2009-02-12 21:51:42 +00:00
$x = $f."/BOINC-Project-Generic.po";
if (file_exists($x)) {
$cmd = "cp $x ../html/languages/translations/$f.po";
system($cmd);
}
}
?>