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' | |
| 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.
| $args = $_SERVER['argv'] |
Definition at line 111 of file i18n_scan.php.
Referenced by __(), Model_Base::__call(), LazyLoad::__call(), _e(), tpHtml::composite_url(), SQL_Generator::enumerate(), SQL_Generator::filter(), RecordModel_Base::find(), RecordModel_Base::find_arr(), l(), I18N::msg(), RecordSelector::pair(), RecordSelector::RecordSelector(), Page_Base::render_element(), Web::run(), RecordSelector::set(), and RecordSelector::where().
| $fp = fopen($MESSAGES_FILE, 'w') |
Definition at line 193 of file i18n_scan.php.
| $header |
<<<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 |
Definition at line 140 of file i18n_scan.php.
| $opts = getopt("lm:") |
Definition at line 118 of file i18n_scan.php.
Referenced by tpForm::build_form(), tpTable::build_grid(), tpForm::build_tabbed_form(), and tpAJAX::dialog().
| $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
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.
1.6.1