Changeset 324

Show
Ignore:
Timestamp:
08/26/07 21:16:34 (1 year ago)
Author:
bermiferrer
Message:

Adding Japanese locale provided by bobchin at #43.

It also includes a workaround for recoding evaluated code on the interactive console to an specific charset bydefining the constant AK_RECODE_UTF8_ON_CONSOLE_TO with the target encoding as value.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/framework_setup_controller.php

    r296 r324  
    1111define('AK_URL_REWRITE_ENABLED', false); 
    1212 
    13 define('AK_AVAILABLE_LOCALES','en,es'); 
    14 define('AK_APP_LOCALES','en,es'); 
     13define('AK_AVAILABLE_LOCALES','en,ja,es'); 
     14define('AK_APP_LOCALES','en,ja,es'); 
    1515 
    1616defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR); 
  • trunk/script/console

    r296 r324  
    3333 
    3434defined('AK_SKIP_DB_CONNECTION') && AK_SKIP_DB_CONNECTION ? ($dsn='') : Ak::db(&$dsn); 
     35defined('AK_RECODE_UTF8_ON_CONSOLE_TO') ? null : define('AK_RECODE_UTF8_ON_CONSOLE_TO', false); 
    3536 
    3637require_once(AK_LIB_DIR.DS.'AkActiveRecord.php'); 
     
    121122 
    122123            Ak::file_add_contents(AK_LOG_DIR.DS.'command_line.log',$promt_line.$command."\n".$result."\n"); 
    123             echo empty($result) ? $promt_line : "\n".$result."\n\n$promt_line"; 
     124            echo empty($result) ? $promt_line : "\n". 
     125            (AK_RECODE_UTF8_ON_CONSOLE_TO ? Ak::recode($result, AK_RECODE_UTF8_ON_CONSOLE_TO) : $result). 
     126            "\n\n$promt_line"; 
    124127        } 
    125128        break;