Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
xgettextJs.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5 */
6 
7 require_once "xgettextCommon.php";
9 {
10  public function extract()
11  {
12  $potFile = $this->outputFile;
13 
14  $inputFilesArgs = array_map("escapeshellarg", $this->inputFiles);
15  $cmd = sprintf('xgettext \
16  --force-po \
17  --language=c \
18  --sort-output \
19  --from-code=utf-8 \
20  --no-location \
21  --add-comments=_COMMENT \
22  --keyword=_:1 \
23  --keyword=___:1,2c \
24  %s -o %s %s ', $this->getXoptions() , escapeshellarg($potFile) , join(' ', $inputFilesArgs));
25 
26  self::mySystem($cmd);
27  }
28 }
29 
foreach($argv as $arg) $cmd
← centre documentaire © anakeen