pronto/bin/i18n_scan.php File Reference

Go to the source code of this file.

Functions

 findfiles ($path, $func)
 process ($fn)

Variables

 if (!file_exists('profiles/cmdline.php'))
 $args = $_SERVER['argv']
 $opts = getopt("lm:")
foreach($opts as $k=> $v) if(count($args)< 2) $OPTIONS
 $STRINGS = array()
 $LANG_CODE = $args[0]
 $LANG_NAME = $args[1]
 $mode = file_exists($MESSAGES_FILE) ? 'update' : 'create'
 $fp = fopen($MESSAGES_FILE, 'w')
if($fp===false) die("Error $now = date('Y-m-d H:i:s')
 $header
 $LANGUAGE_NAME = '$LANG_NAME'

Function Documentation

findfiles ( path,
func 
)

Definition at line 18 of file i18n_scan.php.

process ( fn  ) 

Definition at line 31 of file i18n_scan.php.

References $STRINGS.


Variable Documentation

$args = $_SERVER['argv']
$fp = fopen($MESSAGES_FILE, 'w')

Definition at line 193 of file i18n_scan.php.

$header
Initial value:
 <<<EOT
<?php


\$LANGUAGE_CODE = '$LANG_CODE'

Definition at line 197 of file i18n_scan.php.

$LANG_CODE = $args[0]

Definition at line 146 of file i18n_scan.php.

$LANG_NAME = $args[1]

Definition at line 147 of file i18n_scan.php.

$LANGUAGE_NAME = '$LANG_NAME'

Definition at line 204 of file i18n_scan.php.

Referenced by I18N::get_languages(), and I18N::set_language().

$mode = file_exists($MESSAGES_FILE) ? 'update' : 'create'

Definition at line 192 of file i18n_scan.php.

Referenced by ppMailer::create(), ppImage::flip(), and DB_Base::insert_row().

if ($fp===false) die("Error $now = date('Y-m-d H:i:s')

Definition at line 196 of file i18n_scan.php.

foreach ($opts as $k=> $v) if (count($args)< 2) $OPTIONS
Initial value:
 array(
        'locations' => isset($opts['l']),
        'module'    => isset($opts['m']) ? $opts['m'] : false
)

Definition at line 140 of file i18n_scan.php.

$opts = getopt("lm:")
$STRINGS = array()

Definition at line 145 of file i18n_scan.php.

Referenced by process().

if(!file_exists('profiles/cmdline.php'))

PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet

Author:
Judd Vinet <jvinet@zeroflux.org>

Description: Scan all applicable files for strings contained in the __() or _e() functions. Outputs a PHP file containing all strings in an array, ready to be used by the I18N class.

Definition at line 13 of file i18n_scan.php.


Generated on Wed Jan 13 09:21:02 2010 for Pronto Framework by  doxygen 1.6.1