zoukankan      html  css  js  c++  java
  • 织梦dedecms 5.1 utf-8版本英文修改方法

    这次修改的主要部分:

      1.文章翻页的英文化
      2.生成文章地址去掉文章数据ID
      3.改掉DEDECMS的提示窗口改成英文。
      4.更改转向提示为英文
      5.搜索显示该成英文提示
      6.页面的meta设置
      1.翻页的英文化
      include/inc_archives_view.php
      include/inc_arclist_view.php
      include/inc_arcsearch_view.php
    https:www.cqxftyyj.com
      下的修改主要是针对文章列表页面内容翻页搜索页面翻译的英文化。
      依次用记事本打开以上三文件。
      我们先打开include/inc_archives_view.php
      依次找到
      //获取上一篇,下一篇链接
      //获得动态页面分页列表
      //获得静态页面分页列表
      这三处,把这三处下面出现的中文改成英文
      打开include/inc_arclist_view.php
      依次找到
      //获取静态的分页列表
      //获取动态的分页列表
      这两处,把这两处下面出现的中文改成英文
      打开include/inc_arcsearch_view.php
      依次找到
      //获取动态的分页列表
      这一处,把这一处下面出现的中文改成英文
      2.生成文章地址去掉文章数字ID
      用记事本打开include/inc_channel_unit_function.php
      找到
      $articleRule=str_replace("{pinyin}",GetPinyin($title)."_".$aid,$articleRule);
      改成
      $articleRule=str_replace("{pinyin}",GetPinyin($title),$articleRule);
      简单的说就是去掉."_".$aid
      然后在后台把栏目的高级选项里
      文章命名规则:{typedir}/{pinyin}.html
      3.改掉DEDECMS的提示窗口改成英文。
      这个必须用Dreamweaver编辑,不能用记事本编辑否则会出现后台空白的情况!
      用Dreamweaver打开include/inc_functions.php
      找到ShowMsg然后往下看。依次找到:
      DedeCms系统提示
      DedeCms提示信息:
      如果你的浏览器没反应,请点击这里...
      对应修改成
      DedeCms Message
      DedeCms Message:
      If your browser is no response,please click here...
      4.更改转向提示为英文
      用记事本打开include/jump.html
      依次找到:
      正在转向:请稍候...
      内容简介:
      TO:
      对应修改成
      TO:
      Are turning to:Please wait...
      Brief Introduction:
      5.搜索显示该成英文提示
      用记事本打开plus/search.php
      依次找到:
      服务器忙,请稍后搜索
      你的关键词输入不合法!
      你的信息中存在非法内容,被系统禁止![返回]
      关键字长度必须要3-30字节之间!
      对应修改成
      Server is busy,please search later
      You do not legally enter the keywords!
      Your information in the illegal content,the system was prohibited![Back]
      Keyword length must be between 3-30 bytes!
      6.页面的mate设置
      这个主要是做摸板的时候注意不要掉了meta,这样每个页面的MATE信息都不一样。
      首页和列表页面的meta可以自己在后台设置。而内容页面的MATE是根据内容自动截取的。
      首页meta
      <meta name="keywords"content="{dede:global name='cfg_keywords'/},dedecms">
      <meta name="description"content="{dede:global name='cfg_description'/}dedecms">
      列表页面meta
      <meta name="keywords"content="{dede:field name='keywords'/}">
      <meta name="description"content="{dede:field name='description'function='html2text( me)'/}">
      内容页面meta
      <meta name="keywords"content="{dede:field name='keywords'/}">
      <meta name="description"content="{dede:field name='description'function='html2text( me)'/}">

  • 相关阅读:
    169. Majority Element
    283. Move Zeroes
    1331. Rank Transform of an Array
    566. Reshape the Matrix
    985. Sum of Even Numbers After Queries
    1185. Day of the Week
    867. Transpose Matrix
    1217. Play with Chips
    766. Toeplitz Matrix
    1413. Minimum Value to Get Positive Step by Step Sum
  • 原文地址:https://www.cnblogs.com/zqw111/p/12908699.html
Copyright © 2011-2022 走看看