fcd8e75e40c6c0724f13a180400834cf245267a9

Author: yandod

Date: 2009-02-06 08:37:45 +0900

enabled i18n locale file

diff --git a/api_generator_app_controller.php b/api_generator_app_controller.php index fc3fec3..f7042ea 100644 --- a/api_generator_app_controller.php +++ b/api_generator_app_controller.php @@ -49,7 +49,10 @@ class ApiGeneratorAppController extends AppController { $path = APP; $this->ApiConfig->data['paths'][$path] = true; } - $this->path = Folder::slashTerm(realpath($path)); + $this->path = Folder::slashTerm(realpath($path)); + $localePaths = Configure::read('localePaths'); + $localePaths[] = dirname(__FILE__) . DS . 'locale'; + Configure::write('localePaths',$localePaths); } /** * Error Generating Page.