当前位置

Drupal的多语言系列网站搭建和设置

James Qi 在 2012年9月24日 - 16:47 提交
内容摘要:今年5月份写了一篇《Drupal的多语言网站搭建和设置》,尝试着用Drupal的多语言功能来搭建网站,后来更是添加了手机版,又记录了一篇《网站扩展100倍:50种语言x(电脑版+手机版)》,这些设置都......

  今年5月份写了一篇《Drupal的多语言网站搭建和设置》,尝试着用Drupal的多语言功能来搭建网站,后来更是添加了手机版,又记录了一篇《网站扩展100倍:50种语言x(电脑版+手机版)》,这些设置都成功了,只是在建立更多的系列网站时依然觉得有些麻烦,经过一段时间的摸索,又积累了一些经验,让后面系列网站搭建起来效率更高,按照搭建的步骤,一些地方记录如下:

系统基本安装:

  1. 可从一开始就用drush来安装:选择语言、选择配置、设置数据库参数、设置更新参数、添加管理员及密码、设置时区信息等都可以通过简单的脚本实现;
  2. 添加更多管理员帐号、关闭匿名用户注册权限、开启mobile主题、设置各种主题中共用的logo和favicon、缓存设置、cron设置等,能用drush的地方尽量用drush来设置;
  3. 设置模块,关闭不需要的模块,下载和安装需要的模块,特别是多语言支持所用的i18n及部分子模块(最初是多数都打开,后来改为只有需要的几个打开)、l10n_update翻译自动更新模块等,添加50种语言,都可以通过drush来进行设置;

原始数据导入:

  1. 分析原始数据,对于需要做出分类的字段,在Taxonomy中添加Vocabulary;
  2. 设置Content Type,整个系列都用一个ALL类型,便于设置和维护管理,添加需要的Field,分类做成Autocomplete Term并与Vocabulary对应,设置full和tease的显示字段;
  3. 设置Feeds的来源,上传导入文件xxx.csv到public://feeds/目录下,设置mapping关系,注意添加GUID以便以后修改导入,Title可以用ZIP字段,以后通过模板修改显示的Title;
  4. 开始导入数据至结束;

显示模板修改:

  1. 通过在sites/all/themes/bartik中添加node--all.tpl.php来控制页面显示,包括full和teaser两种显示;
  2. 通过在sites/all/themes/mobile/templates中添加node--all.tpl.php来控制手机版页面显示,也可以用软链接的方式共用电脑版的node--all.tpl.php,程序中判断是否手机版来区别显示;
  3. html.tpl.php来添加页面顶部和底部共同的代码;
  4. page.tpl.php中修改main menu中Home的多语言翻译显示;
  5. node--all.tpl.php中对读出的字段标题进行t函数翻译,以便不需要设置内容类型的多语言及翻译支持;

自定义模块:

  1. 将block、views和home页三项做成一个custom module:all_postcodebase_com;
  2. all_postcodebase_com.module中定义各种需要的block;
  3. all_postcodebase_com.module中定义首页home,针对不同的站点和版本处理显示;
  4. views文件all_postcodebase_com.views_default.inc中可以根据需要添加一些判断;
  5. 在block设置中对电脑版和手机版两种主题进行各自的blocks enable和disable设置及顺序调整;

多语言翻译:

  1. 将50种语言的.po翻译文件都放置在sites/translations目录下,全部都是添加的内置文本及翻译,命名为模块名+版本号+语言缩写.po,例如all_postcodebase_com-7.x-0.1.ar.po;
  2. 在all_postcodebase_com.info文件中定义project=all_postcodebase_com及版本号version="7.x-0.1",以便l10n_update找到sites/translations目录下的对应翻译文件;
  3. 第一次添加all_postcodebase_com模块时自动导入对于的翻译文件;
  4. 翻译有添加和更改时编辑.po文件然后上传覆盖,以后用l18n_update中的检查和更新功能来更新翻译信息;

其它杂项设置:

  1. 设置i18n中可以翻译的变量,特别是site name,以便在site information中可以设置50种语言的网站名称,front page设置为custom module中的home;
  2. 修改performance中的cache设置;
  3. 修改search设置,运行cron或者drush来生成内部搜索索引,修改search-result.tpl.php来去掉搜索结果中的作者和日期信息;
  4. 设置xml sitemap,添加50种语言的站点地图,注意默认语言的站点地图需要选择English然后保存一次,否则找不到文件,rebuild后将桌面版和手机版都提交google webmaster tools;
  5. 修改cron设置,关闭网站上的cron周期性运行,改用Linux的crontab来控制。

  因为做系列网站,所以希望能尽量精简步骤,也确实经过摸索减少了好些环节,不过上面还是写了好长,以后再有新改进的时候还会更新。对于以前没有接触过Drupal多语言网站的朋友可能还是无法通过本文了解清楚,可以多在Google中搜索遇到的问题,我自己也都是这样一点一点弄出来的,累啊!crying

  用上面办法搭建的一个新例子是:Afghanistan Postcode ,首页截图如下:

  近期Google的人联系我要做一个AdSense的案例宣传单页,我也是提供的上面这个截图,正好是多语言、手机版及各种AdSense广告形式都有。 cool

评论

-- 发自IP地址: 111.173.216.107 (位置 | 谁是)

下面是添加50种语言的例子,shell循环脚本:

LA=(af sq ar hy az bg ca zh-hans zh-hant hr cs da nl eo et fi fil fr gl ka de el hu is ga it ja ko lv lt mk ms mt fa pl pt ro ru sr sk sl es sw sv th tr uk vi cy)

for j in "${LA[@]}";do
  echo language: $j
  drush language-add $j
done

注意,运行前需要安装Drush Language Commands的插件支持(运行一句"drush dl drush_language"就可以了)。

James Qi / 祁劲松

-- 发自IP地址: 58.49.166.43 (位置 | 谁是)

需要先开启XML sitemap internationalization这个模块,然后在数据库中(可以在phpmyadmin界面中)执行:

TRUNCATE TABLE `xmlsitemap_sitemap`;
INSERT INTO `xmlsitemap_sitemap` (`smid`, `context`, `updated`, `links`, `chunks`, `max_filesize`) VALUES
('g3XYqcXbSKPVBDODwnT6pq7oqhCFkPryj4vVqrl_Kfc', 'a:1:{s:8:"language";s:2:"en";}', 0, 0, 0, 0),
('LZa-7jhy2SBG0FuW3jja03SHjgSZ8QIoG3AnsQoOmy8', 'a:1:{s:8:"language";s:2:"af";}', 0, 0, 0, 0),
('R4VND5L097ddYE6wDXaN5Jl7CqlrRkI227laTrqdQzI', 'a:1:{s:8:"language";s:2:"sq";}', 0, 0, 0, 0),
('3QWhCTe7KQ0ZR-MqzkhYgq7PkekhXoahRK0-ktC9198', 'a:1:{s:8:"language";s:2:"ar";}', 0, 0, 0, 0),
('rEA7Ume326CMKb7huj3-iZNj8dgxwytUE_QKafGPoS8', 'a:1:{s:8:"language";s:2:"hy";}', 0, 0, 0, 0),
('_FuRjiXoiaiYVERsV6LaopM3QXdVIco8fTq4juua7dA', 'a:1:{s:8:"language";s:2:"az";}', 0, 0, 0, 0),
('Ws6Pk8Ccl-kGwmsqzRfJRYC5u0_rI4DDI11AQdPNhTY', 'a:1:{s:8:"language";s:2:"bg";}', 0, 0, 0, 0),
('aNkRiCzjfJQdg8nBocBcXhm1bm6WLTXsKRTh-yDHMc8', 'a:1:{s:8:"language";s:2:"ca";}', 0, 0, 0, 0),
('3QuYVMoAVDdMUmwuEdFhwSFxLtcBNDrxIy91p4VzGdY', 'a:1:{s:8:"language";s:7:"zh-hans";}', 0, 0, 0, 0),
('gNQigJ8V6aUMKO8U3wkd4y04rttp_RCe6uGO4kXyQnU', 'a:1:{s:8:"language";s:7:"zh-hant";}', 0, 0, 0, 0),
('igVpPQY_QVAMYlftsuIhWLnR9NOb52mZ9URjmMzBHqk', 'a:1:{s:8:"language";s:2:"hr";}', 0, 0, 0, 0),
('JqsSZ0ACA-VztmE3q054r5qUF8LYCLshZpXn9ZWOgYo', 'a:1:{s:8:"language";s:2:"cs";}', 0, 0, 0, 0),
('87mlCzCcgPXzQvm2qE3Is2lMA7b3UyFAJgnINaSi04Y', 'a:1:{s:8:"language";s:2:"da";}', 0, 0, 0, 0),
('VYOTF4bQdgrfTJyQddsbQTYCd13NBvx-ifXqmOhuH9w', 'a:1:{s:8:"language";s:2:"nl";}', 0, 0, 0, 0),
('I9T_cIxer-FMIaMXxRrx5-bnxgj16Z55dELZHsSb0SQ', 'a:1:{s:8:"language";s:2:"eo";}', 0, 0, 0, 0),
('4Cb0X8hFMUkO3ED6IxmWAWSWup0KInr0U1kPzHui9xY', 'a:1:{s:8:"language";s:2:"et";}', 0, 0, 0, 0),
('IaRtAXUxh2lU60MjATpfjUt8JUJse6KuzHxODhPida8', 'a:1:{s:8:"language";s:3:"fil";}', 0, 0, 0, 0),
('PYgq5vYzAuvYMcuKajN7voJEvUlYuPXv7goZjmMJ8Fk', 'a:1:{s:8:"language";s:2:"fi";}', 0, 0, 0, 0),
('2e9ZfIfLFCC0V-PbcDKUTb1Wk22XgjzJ6f-b16CFlPE', 'a:1:{s:8:"language";s:2:"fr";}', 0, 0, 0, 0),
('V6W10nlwnkf_N8uu4GwUpZ_dbf-e66z8IcMdkWyzUQM', 'a:1:{s:8:"language";s:2:"gl";}', 0, 0, 0, 0),
('FY_-EiR_oa31k2g2U3tQi1FdUv4LT0KDDxOamtSjyi8', 'a:1:{s:8:"language";s:2:"ka";}', 0, 0, 0, 0),
('oWx2Pl033k1XFmYJFOs7sO0G3JasH0cjDbduvDwKuwo', 'a:1:{s:8:"language";s:2:"de";}', 0, 0, 0, 0),
('XYbrhwAOg0sH5tuc45W4YgKnq1SObpmzxm9kN1Dy3QI', 'a:1:{s:8:"language";s:2:"el";}', 0, 0, 0, 0),
('Q-DnbT83L1sy4kAX_nYRCyT4AJOTpg30-XEPI1hmyNg', 'a:1:{s:8:"language";s:2:"hu";}', 0, 0, 0, 0),
('QLefgmOMHyi_NiinQJa9AKCQNccFfPrNIdRGIqQJXXo', 'a:1:{s:8:"language";s:2:"is";}', 0, 0, 0, 0),
('G11UQ93ugnrx9ZOPe8RHDN4OJ7uYSZCYtF9EOrlEQlA', 'a:1:{s:8:"language";s:2:"ga";}', 0, 0, 0, 0),
('o1lnqD7hynYmesOfRQVh_UIPswJqoj5Mjjb0krTsxBI', 'a:1:{s:8:"language";s:2:"it";}', 0, 0, 0, 0),
('4vXFu1xAuZ1nftmnnfowGaQ0yrARIcSvgyG5T7cqg04', 'a:1:{s:8:"language";s:2:"ja";}', 0, 0, 0, 0),
('zqY91BRIiHW3IzuCP7ygvlayDVv_LsCV3gx5oYyZM0c', 'a:1:{s:8:"language";s:2:"ko";}', 0, 0, 0, 0),
('2KhpMoaeN8AdO8hifieREj7vkzINMolX97tRzkIQ3BQ', 'a:1:{s:8:"language";s:2:"lv";}', 0, 0, 0, 0),
('kkE2MTArkFb4S-r2Nve1rlFEv86OTmedrSd0DhgfCtE', 'a:1:{s:8:"language";s:2:"lt";}', 0, 0, 0, 0),
('qaKz2M8Q1Hx-usBG6hz7uJXmOAF1PVvM3WmgLsQE62Y', 'a:1:{s:8:"language";s:2:"mk";}', 0, 0, 0, 0),
('ehIYDa6eZtWBG9ofuU3JJwe7ePsWdnOwkygkE_8UlIk', 'a:1:{s:8:"language";s:2:"ms";}', 0, 0, 0, 0),
('caOAq7WZXTCbDsMfG81QIbCf0bkLMDWBxOrYdWgeMMU', 'a:1:{s:8:"language";s:2:"mt";}', 0, 0, 0, 0),
('JujatUJ6eea9-3GLZFmBcT7CgN2qXYl-odpyftFpjYI', 'a:1:{s:8:"language";s:2:"fa";}', 0, 0, 0, 0),
('h_Rziqj_J13oB-imJ4qIG8ksKWXWZ_Hynp5POSsd07k', 'a:1:{s:8:"language";s:2:"pl";}', 0, 0, 0, 0),
('1BK4NSbkvEoG3bU1TTfRaPC-DVwVA-pvtUl3_CWLZB0', 'a:1:{s:8:"language";s:2:"pt";}', 0, 0, 0, 0),
('GI3xOGu1J_C9ymceu4SPSzs6JE8tv61AEnpI3lzXVW0', 'a:1:{s:8:"language";s:2:"ro";}', 0, 0, 0, 0),
('_KyYVoP1pMRSEJD8cDQst9Nj-h1vo7ZVPnvdm5RCdy4', 'a:1:{s:8:"language";s:2:"ru";}', 0, 0, 0, 0),
('s0XnmLCtZcWgnQ7ZFew1Fhtbt9EQ38Ddg7J87BGJ2ys', 'a:1:{s:8:"language";s:2:"sr";}', 0, 0, 0, 0),
('40Vfh2LHqOFN8RF3OKzRCh_w_cwudpGkr0xa3V2yFqY', 'a:1:{s:8:"language";s:2:"sk";}', 0, 0, 0, 0),
('x6B8OtrKWrEaGY6P503gk4XvAlmc1lRjZsZKbrZZp2Y', 'a:1:{s:8:"language";s:2:"sl";}', 0, 0, 0, 0),
('t9UQ7FvqR0wMQMnd5n2XukH0kM9liAM9wOhfSLRl2qw', 'a:1:{s:8:"language";s:2:"es";}', 0, 0, 0, 0),
('7p_cwXvUFez4aPn5SewMmsgoJ2J6qRNN2mgf8hEe3mU', 'a:1:{s:8:"language";s:2:"sw";}', 0, 0, 0, 0),
('t16K-LvlM4dINVHfcxC__57flE1iMIVnUezIVBDDZfE', 'a:1:{s:8:"language";s:2:"sv";}', 0, 0, 0, 0),
('5x3-O5uUfArK1LK8i29anopPRkWTuhyFnzYWdcyBrso', 'a:1:{s:8:"language";s:2:"th";}', 0, 0, 0, 0),
('4t2LDT2-5kkWXwt0FTm6JNAFOdzcz7Fs55mzMuovLmc', 'a:1:{s:8:"language";s:2:"tr";}', 0, 0, 0, 0),
('T43qaxwUQWS5cOCpwG2tGLGOF5UzykA0K-mCFL6oRhs', 'a:1:{s:8:"language";s:2:"uk";}', 0, 0, 0, 0),
('uIMIDC5eEaw7jcWdnI3wjc67eo8miZwUihIKzFid2oA', 'a:1:{s:8:"language";s:2:"vi";}', 0, 0, 0, 0),
('LKmx_ZVMy7dOYfDz0RjgPeF1gGWia54MlPtIrVIOgjA', 'a:1:{s:8:"language";s:2:"cy";}', 0, 0, 0, 0);

就可以添加50种语言的sitemap,然后再运行:

drush cc all
drush xmlsitemap-index
drush xmlsitemap-regenerate

就可以生成50中语言的sitemap。

James Qi / 祁劲松

-- 发自IP地址: 58.49.166.43 (位置 | 谁是)

也是直接操作数据库,效果与上面一样,只是可以在Drush中运行,不用在phpmyadmin中去运行:

$d sql-query "TRUNCATE TABLE xmlsitemap_sitemap;"
$d sql-query "INSERT INTO xmlsitemap_sitemap (smid, context, updated, links, chunks, max_filesize) VALUES
('g3XYqcXbSKPVBDODwnT6pq7oqhCFkPryj4vVqrl_Kfc', 'a:1:{s:8:\"language\";s:2:\"en\";}', 0, 0, 0, 0),
('LZa-7jhy2SBG0FuW3jja03SHjgSZ8QIoG3AnsQoOmy8', 'a:1:{s:8:\"language\";s:2:\"af\";}', 0, 0, 0, 0),
('R4VND5L097ddYE6wDXaN5Jl7CqlrRkI227laTrqdQzI', 'a:1:{s:8:\"language\";s:2:\"sq\";}', 0, 0, 0, 0),
('3QWhCTe7KQ0ZR-MqzkhYgq7PkekhXoahRK0-ktC9198', 'a:1:{s:8:\"language\";s:2:\"ar\";}', 0, 0, 0, 0),
('rEA7Ume326CMKb7huj3-iZNj8dgxwytUE_QKafGPoS8', 'a:1:{s:8:\"language\";s:2:\"hy\";}', 0, 0, 0, 0),
('_FuRjiXoiaiYVERsV6LaopM3QXdVIco8fTq4juua7dA', 'a:1:{s:8:\"language\";s:2:\"az\";}', 0, 0, 0, 0),
('Ws6Pk8Ccl-kGwmsqzRfJRYC5u0_rI4DDI11AQdPNhTY', 'a:1:{s:8:\"language\";s:2:\"bg\";}', 0, 0, 0, 0),
('aNkRiCzjfJQdg8nBocBcXhm1bm6WLTXsKRTh-yDHMc8', 'a:1:{s:8:\"language\";s:2:\"ca\";}', 0, 0, 0, 0),
('3QuYVMoAVDdMUmwuEdFhwSFxLtcBNDrxIy91p4VzGdY', 'a:1:{s:8:\"language\";s:7:\"zh-hans\";}', 0, 0, 0, 0),
('gNQigJ8V6aUMKO8U3wkd4y04rttp_RCe6uGO4kXyQnU', 'a:1:{s:8:\"language\";s:7:\"zh-hant\";}', 0, 0, 0, 0),
('igVpPQY_QVAMYlftsuIhWLnR9NOb52mZ9URjmMzBHqk', 'a:1:{s:8:\"language\";s:2:\"hr\";}', 0, 0, 0, 0),
('JqsSZ0ACA-VztmE3q054r5qUF8LYCLshZpXn9ZWOgYo', 'a:1:{s:8:\"language\";s:2:\"cs\";}', 0, 0, 0, 0),
('87mlCzCcgPXzQvm2qE3Is2lMA7b3UyFAJgnINaSi04Y', 'a:1:{s:8:\"language\";s:2:\"da\";}', 0, 0, 0, 0),
('VYOTF4bQdgrfTJyQddsbQTYCd13NBvx-ifXqmOhuH9w', 'a:1:{s:8:\"language\";s:2:\"nl\";}', 0, 0, 0, 0),
('I9T_cIxer-FMIaMXxRrx5-bnxgj16Z55dELZHsSb0SQ', 'a:1:{s:8:\"language\";s:2:\"eo\";}', 0, 0, 0, 0),
('4Cb0X8hFMUkO3ED6IxmWAWSWup0KInr0U1kPzHui9xY', 'a:1:{s:8:\"language\";s:2:\"et\";}', 0, 0, 0, 0),
('IaRtAXUxh2lU60MjATpfjUt8JUJse6KuzHxODhPida8', 'a:1:{s:8:\"language\";s:3:\"fil\";}', 0, 0, 0, 0),
('PYgq5vYzAuvYMcuKajN7voJEvUlYuPXv7goZjmMJ8Fk', 'a:1:{s:8:\"language\";s:2:\"fi\";}', 0, 0, 0, 0),
('2e9ZfIfLFCC0V-PbcDKUTb1Wk22XgjzJ6f-b16CFlPE', 'a:1:{s:8:\"language\";s:2:\"fr\";}', 0, 0, 0, 0),
('V6W10nlwnkf_N8uu4GwUpZ_dbf-e66z8IcMdkWyzUQM', 'a:1:{s:8:\"language\";s:2:\"gl\";}', 0, 0, 0, 0),
('FY_-EiR_oa31k2g2U3tQi1FdUv4LT0KDDxOamtSjyi8', 'a:1:{s:8:\"language\";s:2:\"ka\";}', 0, 0, 0, 0),
('oWx2Pl033k1XFmYJFOs7sO0G3JasH0cjDbduvDwKuwo', 'a:1:{s:8:\"language\";s:2:\"de\";}', 0, 0, 0, 0),
('XYbrhwAOg0sH5tuc45W4YgKnq1SObpmzxm9kN1Dy3QI', 'a:1:{s:8:\"language\";s:2:\"el\";}', 0, 0, 0, 0),
('Q-DnbT83L1sy4kAX_nYRCyT4AJOTpg30-XEPI1hmyNg', 'a:1:{s:8:\"language\";s:2:\"hu\";}', 0, 0, 0, 0),
('QLefgmOMHyi_NiinQJa9AKCQNccFfPrNIdRGIqQJXXo', 'a:1:{s:8:\"language\";s:2:\"is\";}', 0, 0, 0, 0),
('G11UQ93ugnrx9ZOPe8RHDN4OJ7uYSZCYtF9EOrlEQlA', 'a:1:{s:8:\"language\";s:2:\"ga\";}', 0, 0, 0, 0),
('o1lnqD7hynYmesOfRQVh_UIPswJqoj5Mjjb0krTsxBI', 'a:1:{s:8:\"language\";s:2:\"it\";}', 0, 0, 0, 0),
('4vXFu1xAuZ1nftmnnfowGaQ0yrARIcSvgyG5T7cqg04', 'a:1:{s:8:\"language\";s:2:\"ja\";}', 0, 0, 0, 0),
('zqY91BRIiHW3IzuCP7ygvlayDVv_LsCV3gx5oYyZM0c', 'a:1:{s:8:\"language\";s:2:\"ko\";}', 0, 0, 0, 0),
('2KhpMoaeN8AdO8hifieREj7vkzINMolX97tRzkIQ3BQ', 'a:1:{s:8:\"language\";s:2:\"lv\";}', 0, 0, 0, 0),
('kkE2MTArkFb4S-r2Nve1rlFEv86OTmedrSd0DhgfCtE', 'a:1:{s:8:\"language\";s:2:\"lt\";}', 0, 0, 0, 0),
('qaKz2M8Q1Hx-usBG6hz7uJXmOAF1PVvM3WmgLsQE62Y', 'a:1:{s:8:\"language\";s:2:\"mk\";}', 0, 0, 0, 0),
('ehIYDa6eZtWBG9ofuU3JJwe7ePsWdnOwkygkE_8UlIk', 'a:1:{s:8:\"language\";s:2:\"ms\";}', 0, 0, 0, 0),
('caOAq7WZXTCbDsMfG81QIbCf0bkLMDWBxOrYdWgeMMU', 'a:1:{s:8:\"language\";s:2:\"mt\";}', 0, 0, 0, 0),
('JujatUJ6eea9-3GLZFmBcT7CgN2qXYl-odpyftFpjYI', 'a:1:{s:8:\"language\";s:2:\"fa\";}', 0, 0, 0, 0),
('h_Rziqj_J13oB-imJ4qIG8ksKWXWZ_Hynp5POSsd07k', 'a:1:{s:8:\"language\";s:2:\"pl\";}', 0, 0, 0, 0),
('1BK4NSbkvEoG3bU1TTfRaPC-DVwVA-pvtUl3_CWLZB0', 'a:1:{s:8:\"language\";s:2:\"pt\";}', 0, 0, 0, 0),
('GI3xOGu1J_C9ymceu4SPSzs6JE8tv61AEnpI3lzXVW0', 'a:1:{s:8:\"language\";s:2:\"ro\";}', 0, 0, 0, 0),
('_KyYVoP1pMRSEJD8cDQst9Nj-h1vo7ZVPnvdm5RCdy4', 'a:1:{s:8:\"language\";s:2:\"ru\";}', 0, 0, 0, 0),
('s0XnmLCtZcWgnQ7ZFew1Fhtbt9EQ38Ddg7J87BGJ2ys', 'a:1:{s:8:\"language\";s:2:\"sr\";}', 0, 0, 0, 0),
('40Vfh2LHqOFN8RF3OKzRCh_w_cwudpGkr0xa3V2yFqY', 'a:1:{s:8:\"language\";s:2:\"sk\";}', 0, 0, 0, 0),
('x6B8OtrKWrEaGY6P503gk4XvAlmc1lRjZsZKbrZZp2Y', 'a:1:{s:8:\"language\";s:2:\"sl\";}', 0, 0, 0, 0),
('t9UQ7FvqR0wMQMnd5n2XukH0kM9liAM9wOhfSLRl2qw', 'a:1:{s:8:\"language\";s:2:\"es\";}', 0, 0, 0, 0),
('7p_cwXvUFez4aPn5SewMmsgoJ2J6qRNN2mgf8hEe3mU', 'a:1:{s:8:\"language\";s:2:\"sw\";}', 0, 0, 0, 0),
('t16K-LvlM4dINVHfcxC__57flE1iMIVnUezIVBDDZfE', 'a:1:{s:8:\"language\";s:2:\"sv\";}', 0, 0, 0, 0),
('5x3-O5uUfArK1LK8i29anopPRkWTuhyFnzYWdcyBrso', 'a:1:{s:8:\"language\";s:2:\"th\";}', 0, 0, 0, 0),
('4t2LDT2-5kkWXwt0FTm6JNAFOdzcz7Fs55mzMuovLmc', 'a:1:{s:8:\"language\";s:2:\"tr\";}', 0, 0, 0, 0),
('T43qaxwUQWS5cOCpwG2tGLGOF5UzykA0K-mCFL6oRhs', 'a:1:{s:8:\"language\";s:2:\"uk\";}', 0, 0, 0, 0),
('uIMIDC5eEaw7jcWdnI3wjc67eo8miZwUihIKzFid2oA', 'a:1:{s:8:\"language\";s:2:\"vi\";}', 0, 0, 0, 0),
('LKmx_ZVMy7dOYfDz0RjgPeF1gGWia54MlPtIrVIOgjA', 'a:1:{s:8:\"language\";s:2:\"cy\";}', 0, 0, 0, 0);"

后面还是一样运行:

drush cc all
drush xmlsitemap-index
drush xmlsitemap-regenerate

 

James Qi / 祁劲松

添加新评论

Plain text

  • 不允许使用HTML标签。
  • 自动将网址与电子邮件地址转变为链接。
  • 自动断行和分段。
验证码
本问题用于测试您是否为人类访问者,避免自动垃圾发贴。
图形验证
键入显示在图片中的字符