一,界面汉化:找到dspace-api-lang-1.6.2.0.jar,从中抽取简体中文文件“Messages_zh_CN.properties”,重命名为“Messages.properties”,copy到{DSpace}/webapps/jspui/WEB-INF/classes下,重启tomcat。
二,本地支持:进入“{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
然后进入目录“{dspace-1.6.2-src-release}/dspace/target/dspace-1.6.2-build.dir“,运行”ant -Dconfig=/installdir/config/dspace.cfg update“,更新!
三,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"/>