Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
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"
;
8
class
xgettextJs
extends
xgettextCommon
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
xgettextJs
Definition:
xgettextJs.php:8
xgettextCommon\$outputFile
$outputFile
Definition:
xgettextCommon.php:9
$cmd
foreach($argv as $arg) $cmd
Definition:
Api/freedom_import.php:35
xgettextJs\extract
extract()
Definition:
xgettextJs.php:10
xgettextCommon
Definition:
xgettextCommon.php:7
← centre documentaire
© anakeen