本文整理匯總了PHP中Translator::initialized方法的典型用法代碼示例。如果您正苦於以下問題:PHP Translator::initialized方法的具體用法?PHP Translator::initialized怎麽用?PHP Translator::initialized使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Translator
的用法示例。
在下文中一共展示了Translator::initialized方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init
public static function init()
{
$en = array('upgrade_tool' => 'Upgrade tool', 'upgrade_steps' => 'Upgrade steps', 'create_backup' => 'Backup creation', 'activate_maintenance_mode' => 'Maintenance activation', 'bundle_table_initialization' => 'Database initialization', 'vendor_replacement' => 'Vendor replacement', 'executing_migrations' => 'Upgrade execution', 'remove_maintenance_mode' => 'Disabling maintenance', 'start' => 'Start', 'return' => 'Return', 'close' => 'Close', 'debug_mode' => 'Debug mode', 'debug_mode_explanation' => 'The debug mode allows you to execute the update operations in an arbitrary order.');
$fr = array('upgrade_tool' => 'Outil de mise à jour', 'upgrade_steps' => 'Étapes de la mise à jour', 'create_backup' => 'Creation d\'un backup', 'activate_maintenance_mode' => 'Activation du mode maintenance', 'bundle_table_initialization' => 'Initialisation de la base de donnée', 'vendor_replacement' => 'Remplacement du dossier vendor', 'executing_migrations' => 'Exécution de la mise à jour', 'remove_maintenance_mode' => 'Désactivation du mode maintenance', 'start' => 'Commencer', 'return' => 'Retour', 'close' => 'Fermer', 'debug_mode' => 'Mode de debug', 'debug_mode_explanation' => 'Le mode de debug vous permet d\'exécuter les opérations de mise à jour dans un ordre arbitraire.');
$es = array('return' => 'Regresar', 'close' => 'Cerrar');
self::$translations = array('fr' => $fr, 'en' => $en, 'es' => $es);
self::$initialized = true;
}