Skip to content

Commit

Permalink
mod installer for Japanese.
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-tang committed Jul 21, 2011
1 parent 8247f49 commit 01833e8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
5 changes: 4 additions & 1 deletion applications/dashboard/controllers/class.setupcontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ public function Configure($RedirectUrl = '') {
//'Garden.Domain' => $Domain,
'Garden.CanProcessImages' => function_exists('gd_info'),
'EnabledPlugins.GettingStarted' => 'GettingStarted', // Make sure the getting started plugin is enabled
'EnabledPlugins.HtmLawed' => 'HtmLawed' // Make sure html purifier is enabled so html has a default way of being safely parsed.
'EnabledPlugins.HtmLawed' => 'HtmLawed', // Make sure html purifier is enabled so html has a default way of being safely parsed.
'EnabledLocales.Japanese' => 'ja-JP', // Make sure the Japanese locale is enabled.
'Garden.Locale' => 'ja-JP', // Make sure the Japanese locale is applied to Garden.
'Garden.Search.Mode' => 'like' // Make sure MySQL search mode is 'like' instead of 'matchboolean'.
));
}
}
Expand Down
4 changes: 4 additions & 0 deletions applications/dashboard/design/setup.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ form ul li input.InputBox {
width: 480px;
border: 1px solid #ccc;
color: #555;
ime-mode: inactive;
}
form ul li input.InputBox[type=password] {
ime-mode: disabled;
}
form ul li input.InputBox:focus {
color: #000;
Expand Down
14 changes: 7 additions & 7 deletions applications/dashboard/settings/structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
$RoleModel = Gdn::Factory('RoleModel');
$RoleModel->Database = $Database;
$RoleModel->SQL = $SQL;
$RoleModel->Define(array('Name' => 'Banned', 'RoleID' => 1, 'Sort' => '1', 'Deletable' => '1', 'CanSession' => '0', 'Description' => 'Banned users are not allowed to participate or sign in.'));
$RoleModel->Define(array('Name' => 'Guest', 'RoleID' => 2, 'Sort' => '2', 'Deletable' => '0', 'CanSession' => '0', 'Description' => 'Guests can only view content. Anyone browsing the site who is not signed in is considered to be a "Guest".'));
$RoleModel->Define(array('Name' => 'Applicant', 'RoleID' => 4, 'Sort' => '3', 'Deletable' => '0', 'CanSession' => '1', 'Description' => 'Users who have applied for membership, but have not yet been accepted. They have the same permissions as guests.'));
$RoleModel->Define(array('Name' => 'Member', 'RoleID' => 8, 'Sort' => '4', 'Deletable' => '1', 'CanSession' => '1', 'Description' => 'Members can participate in discussions.'));
$RoleModel->Define(array('Name' => 'Moderator', 'RoleID' => 32, 'Sort' => '5', 'Deletable' => '1', 'CanSession' => '1', 'Description' => 'Moderators have permission to edit most content.'));
$RoleModel->Define(array('Name' => 'Administrator', 'RoleID' => 16, 'Sort' => '6', 'Deletable' => '1', 'CanSession' => '1', 'Description' => 'Administrators have permission to do anything.'));
$RoleModel->Define(array('Name' => 'Confirm Email', 'RoleID' => 3, 'Sort' => '7', 'Deletable' => '1', 'CanSession' => '1', 'Description' => 'Users must confirm their emails before becoming full members. They get assigned to this role.'));
$RoleModel->Define(array('Name' => 'Banned', 'RoleID' => 1, 'Sort' => '1', 'Deletable' => '1', 'CanSession' => '0', 'Description' => 'Banned (利用禁止) ユーザーには、フォーラムへの参加やログインが許可されません。'));
$RoleModel->Define(array('Name' => 'Guest', 'RoleID' => 2, 'Sort' => '2', 'Deletable' => '0', 'CanSession' => '0', 'Description' => 'Guest (ゲスト) は内容を見ることだけができます。ログインせずに閲覧している場合は、誰でも "Guest" として扱われます。'));
$RoleModel->Define(array('Name' => 'Applicant', 'RoleID' => 4, 'Sort' => '3', 'Deletable' => '0', 'CanSession' => '1', 'Description' => '会員登録を申請中で、承認待ちのユーザーです。アクセス権はゲストと同じです。'));
$RoleModel->Define(array('Name' => 'Member', 'RoleID' => 8, 'Sort' => '4', 'Deletable' => '1', 'CanSession' => '1', 'Description' => 'Member (メンバー) はディスカッションに参加できます。'));
$RoleModel->Define(array('Name' => 'Moderator', 'RoleID' => 32, 'Sort' => '5', 'Deletable' => '1', 'CanSession' => '1', 'Description' => 'Moderator (モデレータ) は、ほとんどの内容を編集できます。'));
$RoleModel->Define(array('Name' => 'Administrator', 'RoleID' => 16, 'Sort' => '6', 'Deletable' => '1', 'CanSession' => '1', 'Description' => 'Administrator (管理者) は、何でもできます。'));
$RoleModel->Define(array('Name' => 'Confirm Email', 'RoleID' => 3, 'Sort' => '7', 'Deletable' => '1', 'CanSession' => '1', 'Description' => '正式メンバーになる前に、メールアドレスの確認が必要なユーザーです。確認までは、このロールに割り当てられます。'));
unset($RoleModel);
}

Expand Down
2 changes: 1 addition & 1 deletion applications/vanilla/settings/structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}

if ($Drop) {
$SQL->Insert('Category', array('ParentCategoryID' => -1, 'TreeLeft' => 2, 'TreeRight' => 3, 'InsertUserID' => 1, 'UpdateUserID' => 1, 'DateInserted' => Gdn_Format::ToDateTime(), 'DateUpdated' => Gdn_Format::ToDateTime(), 'Name' => 'General', 'UrlCode' => 'general', 'Description' => 'General discussions', 'PermissionCategoryID' => -1));
$SQL->Insert('Category', array('ParentCategoryID' => -1, 'TreeLeft' => 2, 'TreeRight' => 3, 'InsertUserID' => 1, 'UpdateUserID' => 1, 'DateInserted' => Gdn_Format::ToDateTime(), 'DateUpdated' => Gdn_Format::ToDateTime(), 'Name' => '全般', 'UrlCode' => 'general', 'Description' => '全般ディスカッション', 'PermissionCategoryID' => -1));
} elseif ($CategoryExists && !$PermissionCategoryIDExists) {
if (!C('Garden.Permissions.Disabled.Category')) {
// Existing installations need to be set up with per/category permissions.
Expand Down
2 changes: 1 addition & 1 deletion conf/config-defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
$Configuration['Garden']['Charset'] = 'utf-8';
// An array of folders the application should never search through when searching for classes. (note: plugins had to be removed so that locale searches could get the locale folder from the plugin's folder).
$Configuration['Garden']['FolderBlacklist'] = array('.', '..', '_svn', '.git');
$Configuration['Garden']['Locale'] = 'en-CA';
$Configuration['Garden']['Locale'] = 'ja-JP';
$Configuration['Garden']['LocaleCodeset'] = 'UTF8';
$Configuration['Garden']['Title'] = 'Vanilla 2';
$Configuration['Garden']['Domain'] = '';
Expand Down

0 comments on commit 01833e8

Please sign in to comment.