因為在一般的中文化只修改 *.ini 的檔案及 setting.php 的設定檔
可參考: http://163.17.156.130/moodle/mod/book/view.php?id=2243&chapterid=702
但在裡面都沒有說道,其中上傳文件的部分,只要把語系改成 zh_TW 後,分類選單就不會跑出來
這時其實是因為在資料庫裡面沒有這些語系的資料,只要把資料庫重新匯入即可
底下為我增加好的資料庫檔案,把原有的 ost_categories2language 的資料刪除後
再用底下的 sql 新增即可。
-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- 主機: localhost
-- 建立日期: Nov 10, 2009, 10:44 AM
-- 伺服器版本: 5.0.51
-- PHP 版本: 5.2.6-1+lenny3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- 資料庫: `ostube`
--
-- --------------------------------------------------------
--
-- 資料表格式: `ost_categories2language`
--
CREATE TABLE IF NOT EXISTS `ost_categories2language` (
`id` int(11) NOT NULL auto_increment,
`category_id` int(11) NOT NULL,
`category_name` varchar(40) NOT NULL,
`category_desc` text,
`category_language` varchar(40) NOT NULL default 'german',
PRIMARY KEY (`id`),
KEY `category_id` (`category_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ;
--
-- 列出以下資料庫的數據: `ost_categories2language`
--
INSERT INTO `ost_categories2language` (`id`, `category_id`, `category_name`, `category_desc`, `category_language`) VALUES
(1, 1, 'Animation', NULL, 'german'),
(2, 2, 'Crazy', NULL, 'german'),
(3, 3, 'Veranstaltungen', NULL, 'german'),
(4, 4, 'Filme', NULL, 'german'),
(5, 5, 'Lernen', NULL, 'german'),
(6, 6, 'Mode', NULL, 'german'),
(7, 7, 'Neues', NULL, 'german'),
(8, 8, 'Reise', NULL, 'german'),
(9, 9, 'Sport', NULL, 'german'),
(10, 10, 'Tiere', NULL, 'german'),
(11, 11, 'Unterhaltung', NULL, 'german'),
(12, 12, 'Wissenschaft', NULL, 'german'),
(13, 1, 'Animation', NULL, 'english'),
(14, 2, 'Crazy', NULL, 'english'),
(15, 3, 'Events', NULL, 'english'),
(16, 4, 'Movies', NULL, 'english'),
(17, 5, 'Education', NULL, 'english'),
(18, 6, 'Fashion', NULL, 'english'),
(19, 7, 'News', NULL, 'english'),
(20, 8, 'Travel', NULL, 'english'),
(21, 9, 'Sports', NULL, 'english'),
(22, 10, 'Animals', NULL, 'english'),
(23, 11, 'Fun', NULL, 'english'),
(24, 12, 'Science', NULL, 'english'),
(25, 1, 'Animation', NULL, 'zh_TW'),
(26, 2, 'Crazy', NULL, 'zh_TW'),
(27, 3, 'Events', NULL, 'zh_TW'),
(28, 4, 'Movies', NULL, 'zh_TW'),
(29, 5, 'Education', NULL, 'zh_TW'),
(30, 6, 'Fashion', NULL, 'zh_TW'),
(31, 7, 'News', NULL, 'zh_TW'),
(32, 8, 'Travel', NULL, 'zh_TW'),
(33, 9, 'Sports', NULL, 'zh_TW'),
(34, 10, 'Animals', NULL, 'zh_TW'),
(35, 11, 'Fun', NULL, 'zh_TW'),
(36, 12, 'Science', NULL, 'zh_TW');
如果真的不會用的話,那就手工增加也可以!!
沒有留言:
張貼留言