dspace5.3中文化方法

来源:互联网 发布:java 变量命名规则 编辑:程序博客网 时间:2024/05/16 08:38
一,本地支持:进入“{dspace-1.6.2-src-release}/dspace/config”,找到“dspace.cfg”,修改

                            # Default language for metadata values
                               default.language = zh_CN

                            ### i18n -  Locales / Language ####
                            # Default Locale
                            # A Locale in the form country or country_language or country_language_variant
                            # if no default locale is defined the server default locale will be used.
                            default.locale = zh_CN

 

                            # Note that the appropriate file are present, especially that all the Messages_x.properties are there
                            # may be used, e. g: webui.supported.locales = en, de
                            webui.supported.locales = zh_CN, en

                            # Chinese analyzer
                            search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer

 


用命令行窗口(CMD cd D:/dspace-source        然后输入命令 mvn package
用命令行窗口(CMD cd D:/dspace-source/dspace/target/dspace-staller
输入 ant fresh_install

二,界面汉化:找到[Dspace]\webapps\jspui\WEB-INF\lib\dspace-api-lang-1.6.2.0.jar,到http://dspace.xmu.edu.cn/dspace/handle/2288/206,厦门大学典藏库去把整个jar包都替换了,重启tomcat。
 

 

三,URL支持:tomcat配置文件server.xml中Connector 节加上utf-8支持。
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>
0 0
原创粉丝点击