Ecshop前台英文后台中文实现方法
第一步: 通过后台设置实现前台英文。 进入 后台 》系统设置 》商店设置 》基本设置,将系统语言选项设为 en_us ,确定保存。 第二步: 打开 /admin/includes/init.php 文件 找到 $_CFG = load_config(); // 在它下面增加一行代码 $_CFG['lang']= "zh_cn"; 再到后台清除下缓存,OK。
第一步: 通过后台设置实现前台英文。 进入 后台 》系统设置 》商店设置 》基本设置,将系统语言选项设为 en_us ,确定保存。 第二步: 打开 /admin/includes/init.php 文件 找到 $_CFG = load_config(); // 在它下面增加一行代码 $_CFG['lang']= "zh_cn"; 再到后台清除下缓存,OK。
今天安装 ECShop_V2.7.3_UTF8_release1106 时出现如下错误: Warning: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘UTC’ for ‘8.0/no DST’ instead in F:\yolin_www\ecshop\install\includes\lib_installer.php on line 223 导致安装无法进行,然后谷歌度娘的问找到如下解决方法: 找到 php.ini 搜索 date.timezone 将前面的分号去掉,date.timezone = "Asia/Shanghai" ,设置时区。...
今天在看 Python API 时,看到time模块: The epoch is the point where the time starts. On January 1st of that year, at 0 hours,the “time since the epoch” is zero. For Unix, the epoch is 1970. To find out what the epoch is, look at gmtime(0). 定义time从1970年1月1日开始,忽然想到在JAVA里,Oracle数据库时间也是从1970年1月1日开始计算。 比如java类代码: Date date = new Date(0); System.out.println(date); 打印出来的结果: Thu Jan 01 08:00:00 CST 1970 也是1970年1月1日,实际上时分秒是0点0分0秒(这里打印出来是8点,稍后会作解释)。 为什么这个时间会定义在1970年1月1日这个时候呢? 于是开始了Google,中文网页根本找不到答案。于是试着搜索英文关键字,在 Sun java 论坛总算找到准确的帖子: http://forums.sun.com/thread.jspa?threadID=595140&start=15 其中有一个回复: I suspect that Java was born and raised on a UNIX system....