| Revision 2566:9bf417837888,
937 bytes
checked in by franck <carnet.franck.paul@…>, 12 years ago
(diff) |
|
Add some people in CREDITS, remove trailing spaces and tabs.
|
|
|
| Rev | Line | |
|---|
| [0] | 1 | #!/usr/bin/env php |
|---|
| 2 | <?php |
|---|
| 3 | $license_block = <<<EOF |
|---|
| 4 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
|---|
| 5 | # |
|---|
| 6 | # This file is part of Dotclear 2. |
|---|
| 7 | # |
|---|
| [1179] | 8 | # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear |
|---|
| [0] | 9 | # Licensed under the GPL version 2.0 license. |
|---|
| 10 | # See LICENSE file or |
|---|
| 11 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
|---|
| 12 | # |
|---|
| 13 | # -- END LICENSE BLOCK ----------------------------------------- |
|---|
| 14 | EOF; |
|---|
| 15 | |
|---|
| 16 | require dirname(__FILE__).'/../inc/libs/clearbricks/common/lib.l10n.php'; |
|---|
| 17 | |
|---|
| 18 | $path = (!empty($_SERVER['argv'][1])) ? $_SERVER['argv'][1] : getcwd(); |
|---|
| 19 | $path = realpath($path); |
|---|
| 20 | |
|---|
| 21 | $cmd = 'find '.$path.' -type f -name \'*.po\''; |
|---|
| 22 | exec($cmd,$eres,$ret); |
|---|
| 23 | |
|---|
| 24 | $res = array(); |
|---|
| 25 | |
|---|
| 26 | foreach ($eres as $f) |
|---|
| 27 | { |
|---|
| 28 | $dest = dirname($f).'/'.basename($f,'.po').'.lang.php'; |
|---|
| 29 | echo "l10n file ".$dest.": "; |
|---|
| [2566] | 30 | |
|---|
| [1863] | 31 | if (l10n::generatePhpFileFromPo(dirname($f).'/'.basename($f,'.po'),$license_block)) { |
|---|
| [0] | 32 | echo 'OK'; |
|---|
| 33 | } else { |
|---|
| 34 | echo 'FAILED'; |
|---|
| 35 | } |
|---|
| 36 | echo "\n"; |
|---|
| 37 | } |
|---|
| [2566] | 38 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.