放在htdocs\drupal-7.0\profiles\standard\translations下面
进入http://localhost安装界面,提示数据库连接错误,需要创建drupal数据库。
记得字符集要用utf8(unicode-general-ci).
在安装翻译这一步会出现1146 Table 'drupal.languages' doesn't exist
执行下面的sql脚本:
-- --------------------------------------------------------
--
-- 表的结构 `languages`
--
CREATE TABLE IF NOT EXISTS `languages` (
`language` varchar(12) NOT NULL default '' COMMENT 'Language code, e.g. ’de’ or ’en-US’.',
`name` varchar(64) NOT NULL default '' COMMENT 'Language name in English.',
`native` varchar(64) NOT NULL default '' COMMENT 'Native language name.',
`direction` int(11) NOT NULL default '0' COMMENT 'Direction of language (Left-to-Right = 0, Right-to-Left = 1).',
`enabled` int(11) NOT NULL default '0' COMMENT 'Enabled flag (1 = Enabled, 0 = Disabled).',
`plurals` int(11) NOT NULL default '0' COMMENT 'Number of plural indexes in this language.',
`formula` varchar(128) NOT NULL default '' COMMENT 'Plural formula in PHP code to evaluate to get plural indexes.',
`domain` varchar(128) NOT NULL default '' COMMENT 'Domain to use for this language.',
`prefix` varchar(128) NOT NULL default '' COMMENT 'Path prefix to use for this language.',
`weight` int(11) NOT NULL default '0' COMMENT 'Weight, used in lists of languages.',
`javascript` varchar(64) NOT NULL default '' COMMENT 'Location of JavaScript translation file.',
PRIMARY KEY (`language`),
KEY `list` (`weight`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='List of all available languages in the system.';
进入网站设置页面
继续可能报错
1146 Table 'drupal.cache_update' doesn't exist
执行下面的sql:
--
-- 表的结构 `cache_update`
--
CREATE TABLE IF NOT EXISTS `cache_update` (
`cid` varchar(255) NOT NULL default '' COMMENT 'Primary Key: Unique cache ID.',
`data` longblob COMMENT 'A collection of data to cache.',
`expire` int(11) NOT NULL default '0' COMMENT 'A Unix timestamp indicating when the cache entry should expire, or 0 for never.',
`created` int(11) NOT NULL default '0' COMMENT 'A Unix timestamp indicating when the cache entry was created.',
`serialized` smallint(6) NOT NULL default '0' COMMENT 'A flag to indicate whether content is serialized (1) or not (0).',
PRIMARY KEY (`cid`),
KEY `expire` (`expire`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
安装完毕。
最新评论