详细说明:
package tools.file; import info.monitorenter.cpdetector.io.ASCIIDetector; import info.monitorenter.cpdetector.io.CodepageDetectorProxy; import info.monitorenter.cpdetector.io.JChardetFacade; import info.monitorenter.cpdetector.io.ParsingDetector; import info.monitorenter.cpdetector.io.UnicodeDetector; import com.google.api.translate.Language; import com.google.api.translate.Translate; import java.io.*; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * . @author George Wei * / public class I18nTool { private static final String TEMP_RES_ENCODING = "gbk"; private static final String TEMP_RES_FILE = "D:/Temp/i18n/temp.properties"; private static final String FINAL_PROPERTIES_FILE = "D:/Temp/i18n/messages_zh.properties"; public static final int BUFF_SIZE = 10240; ...展开收缩