c13ffaee30af20aedb6b4260ba19c26c7bd6467c

Author: Juan Basso

Date: 2009-02-18 00:46:28 -0300

Added portuguese translation file, without translations

diff --git a/README b/README index 4f31f67..3aaf2c0 100644 --- a/README +++ b/README @@ -2,4 +2,7 @@ To install copy the debug_kit directory to the plugins folder and include the to $components = array('DebugKit.Toolbar'); -+ Set debug mode to at least 1. \ No newline at end of file ++ Set debug mode to at least 1. + +To configure language, change Config.language configuration in your core.php file. Example: +Configure::write('Config.language', 'pt-br'); \ No newline at end of file diff --git a/controllers/components/toolbar.php b/controllers/components/toolbar.php index a7de51d..51e346f 100644 --- a/controllers/components/toolbar.php +++ b/controllers/components/toolbar.php @@ -93,7 +93,7 @@ class ToolbarComponent extends Object { } App::import('Vendor', 'DebugKit.DebugKitDebugger'); - DebugKitDebugger::startTimer('componentInit', __('Component initialization and startup', true)); + DebugKitDebugger::startTimer('componentInit', __d('debug_kit', 'Component initialization and startup', true)); $panels = $this->_defaultPanels; if (isset($settings['panels'])) { @@ -146,7 +146,7 @@ class ToolbarComponent extends Object { $this->panels[$panelName]->startup($controller); } DebugKitDebugger::stopTimer('componentInit'); - DebugKitDebugger::startTimer('controllerAction', __('Controller Action', true)); + DebugKitDebugger::startTimer('controllerAction', __d('debug_kit', 'Controller Action', true)); } /** * beforeRedirect callback @@ -171,7 +171,7 @@ class ToolbarComponent extends Object { $this->_saveState($controller, $vars); $controller->set(array('debugToolbarPanels' => $vars, 'debugToolbarJavascript' => $this->javascript)); - DebugKitDebugger::startTimer('controllerRender', __('Render Controller Action', true)); + DebugKitDebugger::startTimer('controllerRender', __d('debug_kit', 'Render Controller Action', true)); } /** * Load a toolbar state from cache @@ -228,7 +228,7 @@ class ToolbarComponent extends Object { foreach ($panels as $panel) { $className = $panel . 'Panel'; if (!class_exists($className) && !App::import('Vendor', $className)) { - trigger_error(sprintf(__('Could not load DebugToolbar panel %s', true), $panel), E_USER_WARNING); + trigger_error(sprintf(__d('debug_kit', 'Could not load DebugToolbar panel %s', true), $panel), E_USER_WARNING); continue; } $panelObj =& new $className($settings); diff --git a/locale/debug_kit.pot b/locale/debug_kit.pot new file mode 100644 index 0000000..74604fc --- /dev/null +++ b/locale/debug_kit.pot @@ -0,0 +1,419 @@ +# LANGUAGE translation of CakePHP Application +# Copyright YEAR NAME <EMAIL@ADDRESS> +# No version information was available in the source files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"POT-Creation-Date: 2009-02-18 00:35-0300\n" +"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" +"Last-Translator: NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: \controllers\components\toolbar.php:96 +msgid "Component initialization and startup" +msgstr "" + +#: \controllers\components\toolbar.php:149 +msgid "Controller Action" +msgstr "" + +#: \controllers\components\toolbar.php:174 +msgid "Render Controller Action" +msgstr "" + +#: \controllers\components\toolbar.php:231 +msgid "Could not load DebugToolbar panel %s" +msgstr "" + +#: \vendors\fire_cake.php:304 +msgid "Headers already sent in %s on line %s. Cannot send log data to FirePHP." +msgstr "" + +#: \vendors\fire_cake.php:325 +msgid "Incorrect parameter count for FireCake::fb()" +msgstr "" + +#: \vendors\fire_cake.php:398 +msgid "Maximum number (99,999) of messages reached!" +msgstr "" + +#: \vendors\shells\benchmark.php:57 +msgid "-> Testing :url" +msgstr "" + +#: \vendors\shells\benchmark.php:86 +msgid "Total Requests made: :requests" +msgstr "" + +#: \vendors\shells\benchmark.php:87 +msgid "Total Time elapsed: :duration (seconds)" +msgstr "" + +#: \vendors\shells\benchmark.php:91 +msgid "Requests/Second: :rps req/sec" +msgstr "" + +#: \vendors\shells\benchmark.php:95 +msgid "Average request time: :average-time seconds" +msgstr "" + +#: \vendors\shells\benchmark.php:99 +msgid "Standard deviation of average request time: :std-dev" +msgstr "" + +#: \vendors\shells\benchmark.php:103 +msgid "Longest/shortest request: :longest sec/:shortest sec" +msgstr "" + +#: \vendors\shells\benchmark.php:159 +msgid "DebugKit Benchmark Shell" +msgstr "" + +#: \vendors\shells\benchmark.php:161 +msgid "\tAllows you to obtain some rough benchmarking statistics \n\tabout a fully qualified URL." +msgstr "" + +#: \vendors\shells\benchmark.php:163 +msgid "\tUse:" +msgstr "" + +#: \vendors\shells\benchmark.php:164 +msgid "\t\tcake benchmark [-n iterations] [-t timeout] url" +msgstr "" + +#: \vendors\shells\benchmark.php:166 +msgid "\tParams:" +msgstr "" + +#: \vendors\shells\benchmark.php:167 +msgid "\t\t-n Number of iterations to perform. Defaults to 10. \n\t\t Must be an integer." +msgstr "" + +#: \vendors\shells\benchmark.php:168 +msgid "\t\t-t Maximum total time for all iterations, in seconds. \n\t\t Defaults to 100. Must be an integer." +msgstr "" + +#: \vendors\shells\benchmark.php:170 +msgid "\tIf a single iteration takes more than the \n\ttimeout specified, only one request will be made." +msgstr "" + +#: \vendors\shells\benchmark.php:172 +msgid "\tExample Use:" +msgstr "" + +#: \vendors\shells\benchmark.php:173 +msgid "\t\tcake benchmark -n 10 -t 100 http://localhost/testsite" +msgstr "" + +#: \vendors\shells\benchmark.php:175 +msgid "\tNote that this benchmark does not include browser render time" +msgstr "" + +#: \views\debug.php:57 +msgid "Rendering %s" +msgstr "" + +#: \views\debug.php:79 +msgid "Rendering View" +msgstr "" + +#: \views\elements\debug_toolbar.ctp:32 +msgid "There are no active panels. You must enable a panel to see its output." +msgstr "" + +#: \views\elements\history_panel.ctp:30 +msgid "Request History" +msgstr "" + +#: \views\elements\history_panel.ctp:32 +msgid "No previous requests logged." +msgstr "" + +#: \views\elements\history_panel.ctp:34 +msgid "previous requests available" +msgstr "" + +#: \views\elements\history_panel.ctp:36 +msgid "Restore to current request" +msgstr "" + +#: \views\elements\log_panel.ctp:29 +msgid "Logs" +msgstr "" + +#: \views\elements\log_panel.ctp:36 +msgid "Time" +msgstr "" + +#: \views\elements\log_panel.ctp:36 +#: \views\elements\timer_panel.ctp:68 +msgid "Message" +msgstr "" + +#: \views\elements\log_panel.ctp:45 +msgid "There were no log entries made this request" +msgstr "" + +#: \views\elements\request_panel.ctp:30 +msgid "Request" +msgstr "" + +#: \views\elements\request_panel.ctp:44 +msgid "Current Route" +msgstr "" + +#: \views\elements\session_panel.ctp:30 +msgid "Session" +msgstr "" + +#: \views\elements\sql_log_panel.ctp:30 +msgid "Sql Logs" +msgstr "" + +#: \views\elements\sql_log_panel.ctp:39 +msgid "No active database connections" +msgstr "" + +#: \views\elements\timer_panel.ctp:41 +msgid "Memory" +msgstr "" + +#: \views\elements\timer_panel.ctp:43 +msgid "Current Memory Use" +msgstr "" + +#: \views\elements\timer_panel.ctp:47 +msgid "Peak Memory Use" +msgstr "" + +#: \views\elements\timer_panel.ctp:50 +msgid "Timers" +msgstr "" + +#: \views\elements\timer_panel.ctp:52 +msgid "%s (seconds)" +msgstr "" + +#: \views\elements\timer_panel.ctp:53 +msgid "Total Request Time:" +msgstr "" + +#: \views\elements\timer_panel.ctp:68 +msgid "Time in seconds" +msgstr "" + +#: \views\elements\timer_panel.ctp:68 +msgid "Graph" +msgstr "" + +#: \views\elements\variables_panel.ctp:30 +msgid "View Variables" +msgstr "" + +#: \controllers\components\toolbar.php:96;96 +msgid "Component initialization and startup" +msgstr "" + +#: \controllers\components\toolbar.php:149;149 +msgid "Controller Action" +msgstr "" + +#: \controllers\components\toolbar.php:174;174 +msgid "Render Controller Action" +msgstr "" + +#: \controllers\components\toolbar.php:231;231 +msgid "Could not load DebugToolbar panel %s" +msgstr "" + +#: \vendors\fire_cake.php:304;304 +msgid "Headers already sent in %s on line %s. Cannot send log data to FirePHP." +msgstr "" + +#: \vendors\fire_cake.php:325;325 +msgid "Incorrect parameter count for FireCake::fb()" +msgstr "" + +#: \vendors\fire_cake.php:398;398 +msgid "Maximum number (99,999) of messages reached!" +msgstr "" + +#: \vendors\shells\benchmark.php:57;57 +msgid "-> Testing :url" +msgstr "" + +#: \vendors\shells\benchmark.php:86;86 +msgid "Total Requests made: :requests" +msgstr "" + +#: \vendors\shells\benchmark.php:87;87 +msgid "Total Time elapsed: :duration (seconds)" +msgstr "" + +#: \vendors\shells\benchmark.php:91;91 +msgid "Requests/Second: :rps req/sec" +msgstr "" + +#: \vendors\shells\benchmark.php:95;95 +msgid "Average request time: :average-time seconds" +msgstr "" + +#: \vendors\shells\benchmark.php:99;99 +msgid "Standard deviation of average request time: :std-dev" +msgstr "" + +#: \vendors\shells\benchmark.php:103;103 +msgid "Longest/shortest request: :longest sec/:shortest sec" +msgstr "" + +#: \vendors\shells\benchmark.php:159;159 +msgid "DebugKit Benchmark Shell" +msgstr "" + +#: \vendors\shells\benchmark.php:161;161 +msgid "\tAllows you to obtain some rough benchmarking statistics \n\tabout a fully qualified URL." +msgstr "" + +#: \vendors\shells\benchmark.php:163;163 +msgid "\tUse:" +msgstr "" + +#: \vendors\shells\benchmark.php:164;164 +msgid "\t\tcake benchmark [-n iterations] [-t timeout] url" +msgstr "" + +#: \vendors\shells\benchmark.php:166;166 +msgid "\tParams:" +msgstr "" + +#: \vendors\shells\benchmark.php:167;167 +msgid "\t\t-n Number of iterations to perform. Defaults to 10. \n\t\t Must be an integer." +msgstr "" + +#: \vendors\shells\benchmark.php:168;168 +msgid "\t\t-t Maximum total time for all iterations, in seconds. \n\t\t Defaults to 100. Must be an integer." +msgstr "" + +#: \vendors\shells\benchmark.php:170;170 +msgid "\tIf a single iteration takes more than the \n\ttimeout specified, only one request will be made." +msgstr "" + +#: \vendors\shells\benchmark.php:172;172 +msgid "\tExample Use:" +msgstr "" + +#: \vendors\shells\benchmark.php:173;173 +msgid "\t\tcake benchmark -n 10 -t 100 http://localhost/testsite" +msgstr "" + +#: \vendors\shells\benchmark.php:175;175 +msgid "\tNote that this benchmark does not include browser render time" +msgstr "" + +#: \views\debug.php:57;57 +msgid "Rendering %s" +msgstr "" + +#: \views\debug.php:79;79 +msgid "Rendering View" +msgstr "" + +#: \views\elements\debug_toolbar.ctp:32;32 +msgid "There are no active panels. You must enable a panel to see its output." +msgstr "" + +#: \views\elements\history_panel.ctp:30;30 +msgid "Request History" +msgstr "" + +#: \views\elements\history_panel.ctp:32;32 +msgid "No previous requests logged." +msgstr "" + +#: \views\elements\history_panel.ctp:34;34 +msgid "previous requests available" +msgstr "" + +#: \views\elements\history_panel.ctp:36;36 +msgid "Restore to current request" +msgstr "" + +#: \views\elements\log_panel.ctp:29;29 +msgid "Logs" +msgstr "" + +#: \views\elements\log_panel.ctp:36;36 +msgid "Time" +msgstr "" + +#: \views\elements\log_panel.ctp:36;36 +#: \views\elements\timer_panel.ctp:68;68 +msgid "Message" +msgstr "" + +#: \views\elements\log_panel.ctp:45;45 +msgid "There were no log entries made this request" +msgstr "" + +#: \views\elements\request_panel.ctp:30;30 +msgid "Request" +msgstr "" + +#: \views\elements\request_panel.ctp:44;44 +msgid "Current Route" +msgstr "" + +#: \views\elements\session_panel.ctp:30;30 +msgid "Session" +msgstr "" + +#: \views\elements\sql_log_panel.ctp:30;30 +msgid "Sql Logs" +msgstr "" + +#: \views\elements\sql_log_panel.ctp:39;39 +msgid "No active database connections" +msgstr "" + +#: \views\elements\timer_panel.ctp:41;41 +msgid "Memory" +msgstr "" + +#: \views\elements\timer_panel.ctp:43;43 +msgid "Current Memory Use" +msgstr "" + +#: \views\elements\timer_panel.ctp:47;47 +msgid "Peak Memory Use" +msgstr "" + +#: \views\elements\timer_panel.ctp:50;50 +msgid "Timers" +msgstr "" + +#: \views\elements\timer_panel.ctp:52;52 +msgid "%s (seconds)" +msgstr "" + +#: \views\elements\timer_panel.ctp:53;53 +msgid "Total Request Time:" +msgstr "" + +#: \views\elements\timer_panel.ctp:68;68 +msgid "Time in seconds" +msgstr "" + +#: \views\elements\timer_panel.ctp:68;68 +msgid "Graph" +msgstr "" + +#: \views\elements\variables_panel.ctp:30;30 +msgid "View Variables" +msgstr "" + diff --git a/locale/pt_br/LC_MESSAGES/debug_kit.po b/locale/pt_br/LC_MESSAGES/debug_kit.po new file mode 100644 index 0000000..d93b3d5 --- /dev/null +++ b/locale/pt_br/LC_MESSAGES/debug_kit.po @@ -0,0 +1,436 @@ +# Portuguese translation of Debug Kit Plugin +# Copyright Juan Basso <jrbasso@gmail.com> +# No version information was available in the source files. +# +msgid "" +msgstr "" +"Project-Id-Version: Debug Kit\n" +"POT-Creation-Date: 2009-02-18 00:35-0300\n" +"PO-Revision-Date: 2009-02-18 00:39-0300\n" +"Last-Translator: Juan Basso <jrbasso@gmail.com>\n" +"Language-Team: Português <jrbasso@gmail.com>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=>1;\n" +"X-Poedit-Language: Portuguese\n" +"X-Poedit-Country: BRAZIL\n" + +#: \controllers\components\toolbar.php:96 +msgid "Component initialization and startup" +msgstr "" + +#: \controllers\components\toolbar.php:149 +msgid "Controller Action" +msgstr "" + +#: \controllers\components\toolbar.php:174 +msgid "Render Controller Action" +msgstr "" + +#: \controllers\components\toolbar.php:231 +msgid "Could not load DebugToolbar panel %s" +msgstr "" + +#: \vendors\fire_cake.php:304 +msgid "Headers already sent in %s on line %s. Cannot send log data to FirePHP." +msgstr "" + +#: \vendors\fire_cake.php:325 +msgid "Incorrect parameter count for FireCake::fb()" +msgstr "" + +#: \vendors\fire_cake.php:398 +msgid "Maximum number (99,999) of messages reached!" +msgstr "" + +#: \vendors\shells\benchmark.php:57 +msgid "-> Testing :url" +msgstr "" + +#: \vendors\shells\benchmark.php:86 +msgid "Total Requests made: :requests" +msgstr "" + +#: \vendors\shells\benchmark.php:87 +msgid "Total Time elapsed: :duration (seconds)" +msgstr "" + +#: \vendors\shells\benchmark.php:91 +msgid "Requests/Second: :rps req/sec" +msgstr "" + +#: \vendors\shells\benchmark.php:95 +msgid "Average request time: :average-time seconds" +msgstr "" + +#: \vendors\shells\benchmark.php:99 +msgid "Standard deviation of average request time: :std-dev" +msgstr "" + +#: \vendors\shells\benchmark.php:103 +msgid "Longest/shortest request: :longest sec/:shortest sec" +msgstr "" + +#: \vendors\shells\benchmark.php:159 +msgid "DebugKit Benchmark Shell" +msgstr "" + +#: \vendors\shells\benchmark.php:161 +msgid "" +"\tAllows you to obtain some rough benchmarking statistics \n" +"\tabout a fully qualified URL." +msgstr "" + +#: \vendors\shells\benchmark.php:163 +msgid "\tUse:" +msgstr "" + +#: \vendors\shells\benchmark.php:164 +msgid "\t\tcake benchmark [-n iterations] [-t timeout] url" +msgstr "" + +#: \vendors\shells\benchmark.php:166 +msgid "\tParams:" +msgstr "" + +#: \vendors\shells\benchmark.php:167 +msgid "" +"\t\t-n Number of iterations to perform. Defaults to 10. \n" +"\t\t Must be an integer." +msgstr "" + +#: \vendors\shells\benchmark.php:168 +msgid "" +"\t\t-t Maximum total time for all iterations, in seconds. \n" +"\t\t Defaults to 100. Must be an integer." +msgstr "" + +#: \vendors\shells\benchmark.php:170 +msgid "" +"\tIf a single iteration takes more than the \n" +"\ttimeout specified, only one request will be made." +msgstr "" + +#: \vendors\shells\benchmark.php:172 +msgid "\tExample Use:" +msgstr "" + +#: \vendors\shells\benchmark.php:173 +msgid "\t\tcake benchmark -n 10 -t 100 http://localhost/testsite" +msgstr "" + +#: \vendors\shells\benchmark.php:175 +msgid "\tNote that this benchmark does not include browser render time" +msgstr "" + +#: \views\debug.php:57 +msgid "Rendering %s" +msgstr "" + +#: \views\debug.php:79 +msgid "Rendering View" +msgstr "" + +#: \views\elements\debug_toolbar.ctp:32 +msgid "There are no active panels. You must enable a panel to see its output." +msgstr "" + +#: \views\elements\history_panel.ctp:30 +msgid "Request History" +msgstr "" + +#: \views\elements\history_panel.ctp:32 +msgid "No previous requests logged." +msgstr "" + +#: \views\elements\history_panel.ctp:34 +msgid "previous requests available" +msgstr "" + +#: \views\elements\history_panel.ctp:36 +msgid "Restore to current request" +msgstr "" + +#: \views\elements\log_panel.ctp:29 +msgid "Logs" +msgstr "" + +#: \views\elements\log_panel.ctp:36 +msgid "Time" +msgstr "" + +#: \views\elements\log_panel.ctp:36 +#: \views\elements\timer_panel.ctp:68 +msgid "Message" +msgstr "" + +#: \views\elements\log_panel.ctp:45 +msgid "There were no log entries made this request" +msgstr "" + +#: \views\elements\request_panel.ctp:30 +msgid "Request" +msgstr "" + +#: \views\elements\request_panel.ctp:44 +msgid "Current Route" +msgstr "" + +#: \views\elements\session_panel.ctp:30 +msgid "Session" +msgstr "" + +#: \views\elements\sql_log_panel.ctp:30 +msgid "Sql Logs" +msgstr "" + +#: \views\elements\sql_log_panel.ctp:39 +msgid "No active database connections" +msgstr "" + +#: \views\elements\timer_panel.ctp:41 +msgid "Memory" +msgstr "" + +#: \views\elements\timer_panel.ctp:43 +msgid "Current Memory Use" +msgstr "" + +#: \views\elements\timer_panel.ctp:47 +msgid "Peak Memory Use" +msgstr "" + +#: \views\elements\timer_panel.ctp:50 +msgid "Timers" +msgstr "" + +#: \views\elements\timer_panel.ctp:52 +msgid "%s (seconds)" +msgstr "" + +#: \views\elements\timer_panel.ctp:53 +msgid "Total Request Time:" +msgstr "" + +#: \views\elements\timer_panel.ctp:68 +msgid "Time in seconds" +msgstr "" + +#: \views\elements\timer_panel.ctp:68 +msgid "Graph" +msgstr "" + +#: \views\elements\variables_panel.ctp:30 +msgid "View Variables" +msgstr "" + +#: \controllers\components\toolbar.php:96;96 +msgid "Component initialization and startup" +msgstr "" + +#: \controllers\components\toolbar.php:149;149 +msgid "Controller Action" +msgstr "" + +#: \controllers\components\toolbar.php:174;174 +msgid "Render Controller Action" +msgstr "" + +#: \controllers\components\toolbar.php:231;231 +msgid "Could not load DebugToolbar panel %s" +msgstr "" + +#: \vendors\fire_cake.php:304;304 +msgid "Headers already sent in %s on line %s. Cannot send log data to FirePHP." +msgstr "" + +#: \vendors\fire_cake.php:325;325 +msgid "Incorrect parameter count for FireCake::fb()" +msgstr "" + +#: \vendors\fire_cake.php:398;398 +msgid "Maximum number (99,999) of messages reached!" +msgstr "" + +#: \vendors\shells\benchmark.php:57;57 +msgid "-> Testing :url" +msgstr "" + +#: \vendors\shells\benchmark.php:86;86 +msgid "Total Requests made: :requests" +msgstr "" + +#: \vendors\shells\benchmark.php:87;87 +msgid "Total Time elapsed: :duration (seconds)" +msgstr "" + +#: \vendors\shells\benchmark.php:91;91 +msgid "Requests/Second: :rps req/sec" +msgstr "" + +#: \vendors\shells\benchmark.php:95;95 +msgid "Average request time: :average-time seconds" +msgstr "" + +#: \vendors\shells\benchmark.php:99;99 +msgid "Standard deviation of average request time: :std-dev" +msgstr "" + +#: \vendors\shells\benchmark.php:103;103 +msgid "Longest/shortest request: :longest sec/:shortest sec" +msgstr "" + +#: \vendors\shells\benchmark.php:159;159 +msgid "DebugKit Benchmark Shell" +msgstr "" + +#: \vendors\shells\benchmark.php:161;161 +msgid "" +"\tAllows you to obtain some rough benchmarking statistics \n" +"\tabout a fully qualified URL." +msgstr "" + +#: \vendors\shells\benchmark.php:163;163 +msgid "\tUse:" +msgstr "" + +#: \vendors\shells\benchmark.php:164;164 +msgid "\t\tcake benchmark [-n iterations] [-t timeout] url" +msgstr "" + +#: \vendors\shells\benchmark.php:166;166 +msgid "\tParams:" +msgstr "" + +#: \vendors\shells\benchmark.php:167;167 +msgid "" +"\t\t-n Number of iterations to perform. Defaults to 10. \n" +"\t\t Must be an integer." +msgstr "" + +#: \vendors\shells\benchmark.php:168;168 +msgid "" +"\t\t-t Maximum total time for all iterations, in seconds. \n" +"\t\t Defaults to 100. Must be an integer." +msgstr "" + +#: \vendors\shells\benchmark.php:170;170 +msgid "" +"\tIf a single iteration takes more than the \n" +"\ttimeout specified, only one request will be made." +msgstr "" + +#: \vendors\shells\benchmark.php:172;172 +msgid "\tExample Use:" +msgstr "" + +#: \vendors\shells\benchmark.php:173;173 +msgid "\t\tcake benchmark -n 10 -t 100 http://localhost/testsite" +msgstr "" + +#: \vendors\shells\benchmark.php:175;175 +msgid "\tNote that this benchmark does not include browser render time" +msgstr "" + +#: \views\debug.php:57;57 +msgid "Rendering %s" +msgstr "" + +#: \views\debug.php:79;79 +msgid "Rendering View" +msgstr "" + +#: \views\elements\debug_toolbar.ctp:32;32 +msgid "There are no active panels. You must enable a panel to see its output." +msgstr "" + +#: \views\elements\history_panel.ctp:30;30 +msgid "Request History" +msgstr "" + +#: \views\elements\history_panel.ctp:32;32 +msgid "No previous requests logged." +msgstr "" + +#: \views\elements\history_panel.ctp:34;34 +msgid "previous requests available" +msgstr "" + +#: \views\elements\history_panel.ctp:36;36 +msgid "Restore to current request" +msgstr "" + +#: \views\elements\log_panel.ctp:29;29 +msgid "Logs" +msgstr "" + +#: \views\elements\log_panel.ctp:36;36 +msgid "Time" +msgstr "" + +#: \views\elements\log_panel.ctp:36;36 +#: \views\elements\timer_panel.ctp:68;68 +msgid "Message" +msgstr "" + +#: \views\elements\log_panel.ctp:45;45 +msgid "There were no log entries made this request" +msgstr "" + +#: \views\elements\request_panel.ctp:30;30 +msgid "Request" +msgstr "" + +#: \views\elements\request_panel.ctp:44;44 +msgid "Current Route" +msgstr "" + +#: \views\elements\session_panel.ctp:30;30 +msgid "Session" +msgstr "" + +#: \views\elements\sql_log_panel.ctp:30;30 +msgid "Sql Logs" +msgstr "" + +#: \views\elements\sql_log_panel.ctp:39;39 +msgid "No active database connections" +msgstr "" + +#: \views\elements\timer_panel.ctp:41;41 +msgid "Memory" +msgstr "" + +#: \views\elements\timer_panel.ctp:43;43 +msgid "Current Memory Use" +msgstr "" + +#: \views\elements\timer_panel.ctp:47;47 +msgid "Peak Memory Use" +msgstr "" + +#: \views\elements\timer_panel.ctp:50;50 +msgid "Timers" +msgstr "" + +#: \views\elements\timer_panel.ctp:52;52 +msgid "%s (seconds)" +msgstr "" + +#: \views\elements\timer_panel.ctp:53;53 +msgid "Total Request Time:" +msgstr "" + +#: \views\elements\timer_panel.ctp:68;68 +msgid "Time in seconds" +msgstr "" + +#: \views\elements\timer_panel.ctp:68;68 +msgid "Graph" +msgstr "" + +#: \views\elements\variables_panel.ctp:30;30 +msgid "View Variables" +msgstr "" + diff --git a/vendors/fire_cake.php b/vendors/fire_cake.php index 5d8faf4..920551f 100644 --- a/vendors/fire_cake.php +++ b/vendors/fire_cake.php @@ -301,7 +301,7 @@ class FireCake extends Object { $_this = FireCake::getInstance(); if (headers_sent($filename, $linenum)) { - trigger_error(sprintf(__('Headers already sent in %s on line %s. Cannot send log data to FirePHP.', true), $filename, $linenum), E_USER_WARNING); + trigger_error(sprintf(__d('debug_kit', 'Headers already sent in %s on line %s. Cannot send log data to FirePHP.', true), $filename, $linenum), E_USER_WARNING); return false; } if (!$_this->_enabled || !$_this->detectClientExtension()) { @@ -322,7 +322,7 @@ class FireCake extends Object { $label = $args[1]; break; default: - trigger_error(__('Incorrect parameter count for FireCake::fb()', true), E_USER_WARNING); + trigger_error(__d('debug_kit', 'Incorrect parameter count for FireCake::fb()', true), E_USER_WARNING); return false; } if (isset($_this->_levels[$type])) { @@ -395,7 +395,7 @@ class FireCake extends Object { } $_this->_messageIndex++; if ($_this->_messageIndex > 99999) { - trigger_error(__('Maximum number (99,999) of messages reached!', true), E_USER_WARNING); + trigger_error(__d('debug_kit', 'Maximum number (99,999) of messages reached!', true), E_USER_WARNING); } } $_this->_sendHeader('X-Wf-1-Index', $_this->_messageIndex - 1); diff --git a/vendors/shells/benchmark.php b/vendors/shells/benchmark.php index 09d73f9..13bef2d 100644 --- a/vendors/shells/benchmark.php +++ b/vendors/shells/benchmark.php @@ -54,7 +54,7 @@ class BenchmarkShell extends Shell { $options = array_merge($defaults, $this->params); $times = array(); - $this->out(String::insert(__('-> Testing :url', true), compact('url'))); + $this->out(String::insert(__d('debug_kit', '-> Testing :url', true), compact('url'))); $this->out(""); for ($i = 0; $i < $options['n']; $i++) { if (floor($options['t'] - array_sum($times)) <= 0 || $options['n'] <= 1) { @@ -83,24 +83,24 @@ class BenchmarkShell extends Shell { $duration = array_sum($times); $requests = count($times); - $this->out(String::insert(__('Total Requests made: :requests', true), compact('requests'))); - $this->out(String::insert(__('Total Time elapsed: :duration (seconds)', true), compact('duration'))); + $this->out(String::insert(__d('debug_kit', 'Total Requests made: :requests', true), compact('requests'))); + $this->out(String::insert(__d('debug_kit', 'Total Time elapsed: :duration (seconds)', true), compact('duration'))); $this->out(""); - $this->out(String::insert(__('Requests/Second: :rps req/sec', true), array( + $this->out(String::insert(__d('debug_kit', 'Requests/Second: :rps req/sec', true), array( 'rps' => round($requests / $duration, 3) ))); - $this->out(String::insert(__('Average request time: :average-time seconds', true), array( + $this->out(String::insert(__d('debug_kit', 'Average request time: :average-time seconds', true), array( 'average-time' => round($duration / $requests, 3) ))); - $this->out(String::insert(__('Standard deviation of average request time: :std-dev', true), array( + $this->out(String::insert(__d('debug_kit', 'Standard deviation of average request time: :std-dev', true), array( 'std-dev' => round($this->_deviation($times, true), 3) ))); - $this->out(String::insert(__('Longest/shortest request: :longest sec/:shortest sec', true), array( + $this->out(String::insert(__d('debug_kit', 'Longest/shortest request: :longest sec/:shortest sec', true), array( 'longest' => round(max($times), 3), 'shortest' => round(min($times), 3) ))); @@ -156,23 +156,23 @@ class BenchmarkShell extends Shell { * @access public */ function help() { - $this->out(__("DebugKit Benchmark Shell", true)); + $this->out(__d('debug_kit', "DebugKit Benchmark Shell", true)); $this->out(""); - $this->out(__("\tAllows you to obtain some rough benchmarking statistics \n\tabout a fully qualified URL.", true)); + $this->out(__d('debug_kit', "\tAllows you to obtain some rough benchmarking statistics \n\tabout a fully qualified URL.", true)); $this->out(""); - $this->out(__("\tUse:", true)); - $this->out(__("\t\tcake benchmark [-n iterations] [-t timeout] url", true)); + $this->out(__d('debug_kit', "\tUse:", true)); + $this->out(__d('debug_kit', "\t\tcake benchmark [-n iterations] [-t timeout] url", true)); $this->out(""); - $this->out(__("\tParams:", true)); - $this->out(__("\t\t-n Number of iterations to perform. Defaults to 10. \n\t\t Must be an integer.", true)); - $this->out(__("\t\t-t Maximum total time for all iterations, in seconds. \n\t\t Defaults to 100. Must be an integer.", true)); + $this->out(__d('debug_kit', "\tParams:", true)); + $this->out(__d('debug_kit', "\t\t-n Number of iterations to perform. Defaults to 10. \n\t\t Must be an integer.", true)); + $this->out(__d('debug_kit', "\t\t-t Maximum total time for all iterations, in seconds. \n\t\t Defaults to 100. Must be an integer.", true)); $this->out(""); - $this->out(__("\tIf a single iteration takes more than the \n\ttimeout specified, only one request will be made.", true)); + $this->out(__d('debug_kit', "\tIf a single iteration takes more than the \n\ttimeout specified, only one request will be made.", true)); $this->out(""); - $this->out(__("\tExample Use:", true)); - $this->out(__("\t\tcake benchmark -n 10 -t 100 http://localhost/testsite", true)); + $this->out(__d('debug_kit', "\tExample Use:", true)); + $this->out(__d('debug_kit', "\t\tcake benchmark -n 10 -t 100 http://localhost/testsite", true)); $this->out(""); - $this->out(__("\tNote that this benchmark does not include browser render time", true)); + $this->out(__d('debug_kit', "\tNote that this benchmark does not include browser render time", true)); $this->out(""); $this->hr(); $this->out(""); diff --git a/views/debug.php b/views/debug.php index d296bc6..bd93f90 100644 --- a/views/debug.php +++ b/views/debug.php @@ -54,7 +54,7 @@ class DebugView extends DoppelGangerView { $___viewFn = substr($___viewFn, 0, -10) . $this->_oldExtension; } if (!isset($___dataForView['disableTimer'])) { - DebugKitDebugger::startTimer('render_' . basename($___viewFn), sprintf(__('Rendering %s', true), Debugger::trimPath($___viewFn))); + DebugKitDebugger::startTimer('render_' . basename($___viewFn), sprintf(__d('debug_kit', 'Rendering %s', true), Debugger::trimPath($___viewFn))); } $out = parent::_render($___viewFn, $___dataForView, $loadHelpers, $cached); @@ -76,7 +76,7 @@ class DebugView extends DoppelGangerView { * @return string Rendered Element */ function render($action = null, $layout = null, $file = null) { - DebugKitDebugger::startTimer('viewRender', __('Rendering View', true)); + DebugKitDebugger::startTimer('viewRender', __d('debug_kit', 'Rendering View', true)); $out = parent::render($action, $layout, $file); DebugKitDebugger::stopTimer('viewRender'); DebugKitDebugger::stopTimer('controllerRender'); diff --git a/views/elements/debug_toolbar.ctp b/views/elements/debug_toolbar.ctp index 3d59571..2746c53 100644 --- a/views/elements/debug_toolbar.ctp +++ b/views/elements/debug_toolbar.ctp @@ -29,7 +29,7 @@ ?> <div id="debug-kit-toolbar"> <?php if (empty($debugToolbarPanels)) :?> - <p class="warning"><?php __('There are no active panels. You must enable a panel to see its output.'); ?></p> + <p class="warning"><?php __d('debug_kit', 'There are no active panels. You must enable a panel to see its output.'); ?></p> <?php else: ?> <ul id="panel-tabs"> <li class="panel-tab icon"> diff --git a/views/elements/history_panel.ctp b/views/elements/history_panel.ctp index 4b2a38f..e3dc50c 100644 --- a/views/elements/history_panel.ctp +++ b/views/elements/history_panel.ctp @@ -27,13 +27,13 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ ?> -<h2> <?php __('Request History'); ?></h2> +<h2> <?php __d('debug_kit', 'Request History'); ?></h2> <?php if (empty($content)): ?> - <p class="warning"><?php __('No previous requests logged.'); ?></p> + <p class="warning"><?php __d('debug_kit', 'No previous requests logged.'); ?></p> <?php else: ?> - <?php echo count($content); ?> <?php __('previous requests available') ?> + <?php echo count($content); ?> <?php __d('debug_kit', 'previous requests available') ?> <ul class="history-list"> - <li><?php echo $html->link(__('Restore to current request', true), + <li><?php echo $html->link(__d('debug_kit', 'Restore to current request', true), '#', array('class' => 'history-link', 'id' => 'history-restore-current')); ?> </li> <?php foreach ($content as $previous): ?> diff --git a/views/elements/log_panel.ctp b/views/elements/log_panel.ctp index 0a075ce..8010056 100644 --- a/views/elements/log_panel.ctp +++ b/views/elements/log_panel.ctp @@ -26,14 +26,14 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ ?> -<h2><?php __('Logs') ?></h2> +<h2><?php __d('debug_kit', 'Logs') ?></h2> <div class="code-table"> <?php foreach ($content as $logName => $logs): ?> <h3><?php echo $logName ?></h3> <?php $len = count($logs); if ($len > 0): - $headers = array(__('Time', true), __('Message', true)); + $headers = array(__d('debug_kit', 'Time', true), __d('debug_kit', 'Message', true)); $rows = array(); for ($i = 0; $i < $len; $i += 2): $rows[] = array( @@ -42,7 +42,7 @@ endfor; echo $toolbar->table($rows, $headers, array('title' => $logName)); else: ?> - <p class="info"><?php __('There were no log entries made this request'); ?></p> + <p class="info"><?php __d('debug_kit', 'There were no log entries made this request'); ?></p> <?php endif; ?> <?php endforeach; ?> </div> \ No newline at end of file diff --git a/views/elements/request_panel.ctp b/views/elements/request_panel.ctp index a2ff53b..08adac7 100644 --- a/views/elements/request_panel.ctp +++ b/views/elements/request_panel.ctp @@ -27,7 +27,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ ?> -<h2> <?php __('Request'); ?></h2> +<h2> <?php __d('debug_kit', 'Request'); ?></h2> <h4>Cake Params</h4> <?php echo $toolbar->makeNeatArray($content['params']); ?> @@ -41,5 +41,5 @@ <p class="warning">To view Cookies, add CookieComponent to Controller</p> <?php endif; ?> -<h4><?php __('Current Route') ?></h4> +<h4><?php __d('debug_kit', 'Current Route') ?></h4> <?php echo $toolbar->makeNeatArray($content['currentRoute']); ?> \ No newline at end of file diff --git a/views/elements/session_panel.ctp b/views/elements/session_panel.ctp index 003032a..9bf10a2 100644 --- a/views/elements/session_panel.ctp +++ b/views/elements/session_panel.ctp @@ -27,5 +27,5 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ ?> -<h2><?php __('Session'); ?></h2> +<h2><?php __d('debug_kit', 'Session'); ?></h2> <?php echo $toolbar->makeNeatArray($content); ?> \ No newline at end of file diff --git a/views/elements/sql_log_panel.ctp b/views/elements/sql_log_panel.ctp index 56c20fa..3fe9602 100644 --- a/views/elements/sql_log_panel.ctp +++ b/views/elements/sql_log_panel.ctp @@ -27,7 +27,7 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ ?> -<h2><?php __('Sql Logs')?></h2> +<h2><?php __d('debug_kit', 'Sql Logs')?></h2> <?php if (!empty($content)) : ?> <?php foreach ($content as $dbName => $queryLog) : ?> <div class="sql-log-panel-query-log"> @@ -36,5 +36,5 @@ </div> <?php endforeach; ?> <?php else: ?> - <p class="warning"><?php __('No active database connections'); ?></p> + <p class="warning"><?php __d('debug_kit', 'No active database connections'); ?></p> <?php endif; ?> \ No newline at end of file diff --git a/views/elements/timer_panel.ctp b/views/elements/timer_panel.ctp index 66f60cf..060df89 100644 --- a/views/elements/timer_panel.ctp +++ b/views/elements/timer_panel.ctp @@ -38,19 +38,19 @@ else: endif; endif; ?> -<h2><?php __('Memory'); ?></h2> +<h2><?php __d('debug_kit', 'Memory'); ?></h2> <div class="current-mem-use"> - <?php echo $toolbar->message(__('Current Memory Use',true), $number->toReadableSize($currentMemory)); ?> + <?php echo $toolbar->message(__d('debug_kit', 'Current Memory Use',true), $number->toReadableSize($currentMemory)); ?> </div> <div class="peak-mem-use"> <?php - echo $toolbar->message(__('Peak Memory Use', true), $number->toReadableSize($peakMemory)); ?> + echo $toolbar->message(__d('debug_kit', 'Peak Memory Use', true), $number->toReadableSize($peakMemory)); ?> </div> -<h2><?php __('Timers'); ?></h2> +<h2><?php __d('debug_kit', 'Timers'); ?></h2> <div class="request-time"> - <?php $totalTime = sprintf(__('%s (seconds)', true), $number->precision($requestTime, 6)); ?> - <?php echo $toolbar->message(__('Total Request Time:', true), $totalTime)?> + <?php $totalTime = sprintf(__d('debug_kit', '%s (seconds)', true), $number->precision($requestTime, 6)); ?> + <?php echo $toolbar->message(__d('debug_kit', 'Total Request Time:', true), $totalTime)?> </div> <?php @@ -65,7 +65,7 @@ foreach ($timers as $timerName => $timeInfo): $number->precision($timeInfo['time'], 6), $simpleGraph->bar($number->precision($timeInfo['time'], 6), array('max' => $maxTime)) ); - $headers = array(__('Message', true), __('Time in seconds', true), __('Graph', true)); + $headers = array(__d('debug_kit', 'Message', true), __d('debug_kit', 'Time in seconds', true), __d('debug_kit', 'Graph', true)); endforeach; echo $toolbar->table($rows, $headers, array('title' => 'Timers'));