Dotclear

source: build-tools/make-l10n.php @ 2566:9bf417837888

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.

  • Property exe set to *
Line 
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#
8# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
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 -----------------------------------------
14EOF;
15
16require 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\'';
22exec($cmd,$eres,$ret);
23
24$res = array();
25
26foreach ($eres as $f)
27{
28     $dest = dirname($f).'/'.basename($f,'.po').'.lang.php';
29     echo "l10n file ".$dest.": ";
30
31     if (l10n::generatePhpFileFromPo(dirname($f).'/'.basename($f,'.po'),$license_block)) {
32          echo 'OK';
33     } else {
34          echo 'FAILED';
35     }
36     echo "\n";
37}
38?>
Note: See TracBrowser for help on using the repository browser.

Sites map