All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.j2mvc.framework.i18n.I18n Maven / Gradle / Ivy

Go to download

强烈建议使用J2mvc 2.1以后的版本。 version 2.1.01 1.更换JSON依赖包. version 2.1.02 1.移除com.j2mvc.StringUtils.getUtf8()方法调用. 更改为getCharset() version 2.1.03 1.更新JNDI连接设置 version 2.1.04 1.修改works.xml配置url-pkg-prefixes改为pkg

There is a newer version: 2.1.12
Show newest version
package com.j2mvc.framework.i18n;

import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;
import com.j2mvc.util.PropertiesConfiguration;

/**
 * 国际化配置
 * 
 * 2014-2-22 创建@杨朔
 */
public class I18n {
	final static Logger log = Logger.getLogger(I18n.class);

	/** i18n国际化 */
	public static Map i18n = new HashMap();

	/**
	 * 
	 * @param fileName
	 */
	public static void init(String fileName) {
		PropertiesConfiguration configuration = new PropertiesConfiguration(fileName);
		i18n = configuration.map();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy