Jump to content

Simplified Chinese(简体中文) translation[in progress]


DZML

Recommended Posts

因为自己E文水平有限,有点吃力,借助几个朋友,彻底译了一下(所有的字段),其中肯定是错误百出,请大家使用后更改其中的字段,希望把自己更改的也发布出来。使用繁体的朋友可以借助GOOGLE translate转一下。


附件是此次翻译导出的语言包(2008-11-3 14:45)

谢谢PACO的帮助!

希望大家喜欢!

附件适合1.0 stable版的

ch.gzip

  • Like 1
Link to comment
Share on other sites

大侠,太感谢了,我也在用prestashop,可以经常上论坛讨论啊


您客气,我也是试用prestashop,我的英文也不灵光,只能借助工具和计算机方面的知识译一下,其中有很多翻译得乱七八遭,但至少整体已经翻译完了,接下来希望大家一起做下修改。让译文更加理想。


其中还有几处界面的问题,例如中文字体显示的问题,还有PDF文件中文编码和中文字体问题。

另外的付款模块,中国大陆的主要付款方式都没有开发,我觉得可以建议官方考虑进去。

这些问题我一个人搞不定,还得依靠大家的力量!
Link to comment
Share on other sites

更改了一下css文件,主要是因为有些字体显示太小,不适合阅读,另外还对firefox浏览器进行了修补。

附件是css的文件,一共有三个,主要针对版本1.1beta2中的默认主题。

下载后解压,覆盖至根目录/themes/prestashop/css中

css.zip

Link to comment
Share on other sites

解决一个小错误:

在后台管理目录中,在header.inc.php文件找到下面这个代码:

var search_texts = Array('<?php echo utf8_encode(html_entity_decode(addslashes(translate('product, category...')))); ....

改为:

var search_texts = Array('<?php echo addslashes(translate('product, category...')); ....

可以解决后台搜索框中的乱码。

Link to comment
Share on other sites

翻译的话我也可以出点力的,如果大家需要的话!我也想用Prestashop来做个站!


谢谢ROD,目前大部分的字段都完成,但要排错。你可以下载最近更的语言包,再修补一下,发上来。这样,反复几次中文翻译就会很完美了。
Link to comment
Share on other sites

  • 2 weeks later...

Many thanks for the great job done above. I have two suggestions here,

1. According to ISO standard, it looks the ISO code of Chinese-simplified language should be "cn", but not "ch" as those included in both ch.gzip and 1.1b3.zip. Therefore, change "ch" to "cn" will be better.

2. If possible, Chinese guys can setup a specific web or forum which should focus on "prestashop-chinese version", so that prestashop can make big progress in China. A lot of free e-shop system have already been doing similar work. I can help to setup this kind of forum.


In addition to, I noticed that pdf invoice file can not show correct Chinese characters, just a lot of strange characters. Is it because of my mysql encodeing or something else? Anyelse have same problem? any ideas?

Link to comment
Share on other sites

Many thanks for the great job done above. I have two suggestions here,

1. According to ISO standard, it looks the ISO code of Chinese-simplified language should be "cn", but not "ch" as those included in both ch.gzip and 1.1b3.zip. Therefore, change "ch" to "cn" will be better.

2. If possible, Chinese guys can setup a specific web or forum which should focus on "prestashop-chinese version", so that prestashop can make big progress in China. A lot of free e-shop system have already been doing similar work. I can help to setup this kind of forum.


In addition to, I noticed that pdf invoice file can not show correct Chinese characters, just a lot of strange characters. Is it because of my mysql encodeing or something else? Anyelse have same problem? any ideas?



1/chinese simplified language file need to be zh ,other is zh-CN, zh-TW

2/ I can do this work(chinese version) next month.
Link to comment
Share on other sites

请问这个语言包如何导入啊? 在import内导入之后然后怎么设置呢?
后来按别人的步骤:
在管理界面 Back Office >> Languages 建立一个新语言
Name: Chinese (简体)
ISO code: CH
Flag:。。。
亦不知下步

为什么我的中文总是显示warning ,我按论坛上前辈的说明一步步来了,可是还是不知道如何导入

Link to comment
Share on other sites

方法如下:

1. 下载1.1b3.zip
http://www.prestashop.com/?ACT=29&fid=12&aid=2918_1iW6yRn4xu2lYyp16L4K&board_id=1

2. 解压. ex, D:\1.1b3

3. 在 Back Office >> Tools >> Languages 里面做

Add New

4. 在 Back Office >> Tools >> Translations 里面做
Translation exchange Import

5. 在 Back Office >> Tools >> Languages 里面做
Enable


详细请看我的附件How.2.Install.Chinese.Lang.2.Prestashop.rar

Link to comment
Share on other sites

  • 2 weeks later...
方法如下:

1. 下载1.1b3.zip
http://www.prestashop.com/?ACT=29&fid=12&aid=2918_1iW6yRn4xu2lYyp16L4K&board_id=1

2. 解压. ex, D:\1.1b3

3. 在 Back Office >> Tools >> Languages 里面做

Add New

4. 在 Back Office >> Tools >> Translations 里面做
Translation exchange Import

5. 在 Back Office >> Tools >> Languages 里面做
Enable


详细请看我的附件How.2.Install.Chinese.Lang.2.Prestashop.rar




Sir,

I can only finished from step 1 to 3. On the step 4, it will only let me import one file at a time. Am I missing anything? May I ask where I can find your 详细请看我的附件How.2.Install.Chinese.Lang.2.Prestashop.rar? Thanks.
Link to comment
Share on other sites

我用你的方法安装是成功,不过存在2个很严重的问题,也是我翻译时碰到的同样问题

Payment报错
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 113 bytes) in D:\wamp\www\pshop\classes\Module.php on line 440


Modules报错
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 8192 bytes) in D:\wamp\www\pshop\classes\Module.php on line 440


说不上还会有别的错误,不过这2个是比较严重了!根本这2个版块进不去

另外不知道你有没测试过客服在线定单发邮件?
在Orders里面,当发起一个新消息并选择客户看见时,发送》》错误出现如下:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [email protected] in D:\wamp\www\pshop\tools\swift\Swift\Plugin\MailSend.php on line 160

这个功能我测试过,原来我用163的我第一次用prestashop时这个功能是完整的,不会报错,可是我第2天重新安装一次,确定填写的smtp没有填写错误,发上上述错误!
不知道您遇到没有?我是在本地测试,如果你遇到过并能解决能否帮助我?
谢谢!!!

Link to comment
Share on other sites

我用你的方法安装是成功,不过存在2个很严重的问题,也是我翻译时碰到的同样问题

Payment报错
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 113 bytes) in D:\wamp\www\pshop\classes\Module.php on line 440


Modules报错
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 8192 bytes) in D:\wamp\www\pshop\classes\Module.php on line 440


说不上还会有别的错误,不过这2个是比较严重了!根本这2个版块进不去

另外不知道你有没测试过客服在线定单发邮件?
在Orders里面,当发起一个新消息并选择客户看见时,发送》》错误出现如下:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [email protected] in D:\wamp\www\pshop\tools\swift\Swift\Plugin\MailSend.php on line 160

这个功能我测试过,原来我用163的我第一次用prestashop时这个功能是完整的,不会报错,可是我第2天重新安装一次,确定填写的smtp没有填写错误,发上上述错误!
不知道您遇到没有?我是在本地测试,如果你遇到过并能解决能否帮助我?
谢谢!!!



下面是我的回答:

1:

[CN]. 关于你的"Allowed memory size of 8388608 bytes exhausted" 的error,是不是你的机器内存被其他程序占用太大,内存不够了.因为你是在local测试的. 你用的是http://localhost/pshop 作为网址吗? 另外,你用的网服务软件是什么? Apache, Appserv, 还是Easy-PHP? 也许是服务器软件引起了这样的问题. 看起来$SEVER_HOST\pshop\classes\Module.php on line 440 是试图从给定模块里面获去翻译的内容. 不过,我从来没碰到过这样的问题.

[EN] I am afraid that u do not have enough memory on your computer, maybe other programs used much memory already. What's kind of web server do u used during ur local test, Apache, Appserv or Easy-PHP? Maybe ur problems caused by ur webserver software. It looks that $SEVER_HOST\pshop\classes\Module.php on line 440 looks try to "Get translation for a given module text", see source code. Anyhow, I never met the problems like this.


2.

[CH] 我没有测试过SMTP方法发送邮件, 我用的是安装时的"E-mail delivery set-up"中用默认的PHP mail(), 这个已经比较强大了.
如果你用smtp你可以在安装的时候测试"Send me a test e-mail", 然后看看是不是能收到那个SMTP服务器发来的消失. 如果可以收到,那就继续下一步.

[EN] I did not test SMTP method to send email until now. Instead, I use the default one - PHP mail() function.
If u prefer to use SMTP method, please try to do a test - "Send me a test e-mail" during ur setup, and check if you DO can receive an email from that SMTP server. If u can receive the correct email, then go on to the next step.

"By default, the PHP 'mail()' function is used. For more functionality, manual SMTP configuration is recommended."

3.

[CH] 彻底删除旧的安装(包括数据库), 重新安装也许就好了.

[EN] Maybe u can totally remove ur installation including database, and try to setup a new Prestashop. Maybe you problem will never happed again.

Good luck!
Link to comment
Share on other sites

我用的wamp5自带的php5和mysql

我的机器配置CPU双核,2G内存;

Allowed memory size of 8388608 bytes exhausted” 的error是我一直都搞不明白的问题。

请问你安装中文语言以后可以在中文语言界面后台安装模块吗? 我是怎么试都不行,包括其他的语言都不行,下载官方的全新安装别的国家都不能安装模块,只有安装时选择的国家可以在模块里安装模块;

安装我是删除了的,不过也没见有什么反映;


关于发邮件和消息:这个是比较郁闷的问题,我找不到哪里可以控制只发消息不发邮件,不至于雇员与客户的交流都需要全部发到客户邮箱里吧。。。这有点。。。
然后是我在后台可以设置PHP mail()函数发送方式,但我这样设置也一样出现下面的错误:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [email protected] in D:\wamp\www\pshop\tools\swift\Swift\Plugin\MailSend.php on line 160

谢谢你这么关注,其实我挺喜欢这套系统,很人性化就是需要大家共同的努力进行中文化并逐步排除BUG

另外:我发现安装中文语言还有2个地方会有错误不过我已经解决下面我把我解决的方法发生你;

1。客户在下完单以后会产生一个邮件,但中文语言没有这个邮件模板
*shop\modules\mailalerts\mails\ch\new_order.txt 定单模板需要重其他语言中复制一份过来;前台下单需要
2。后台发送消息如果发送邮件也会产生一个邮件模板但中文语言内没有
*shop\mails\ch\order_merchant_comment.txt 邮件模板需要重其他语言中复制一份过来;后台部分在发送消息时需要

需要我前面的问题,你还能跟进,在线等 :)认识你很高兴!

Link to comment
Share on other sites

我用的wamp5自带的php5和mysql

我的机器配置CPU双核,2G内存;

Allowed memory size of 8388608 bytes exhausted” 的error是我一直都搞不明白的问题。

请问你安装中文语言以后可以在中文语言界面后台安装模块吗? 我是怎么试都不行,包括其他的语言都不行,下载官方的全新安装别的国家都不能安装模块,只有安装时选择的国家可以在模块里安装模块;

安装我是删除了的,不过也没见有什么反映;


关于发邮件和消息:这个是比较郁闷的问题,我找不到哪里可以控制只发消息不发邮件,不至于雇员与客户的交流都需要全部发到客户邮箱里吧。。。这有点。。。
然后是我在后台可以设置PHP mail()函数发送方式,但我这样设置也一样出现下面的错误:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [email protected] in D:\wamp\www\pshop\tools\swift\Swift\Plugin\MailSend.php on line 160

谢谢你这么关注,其实我挺喜欢这套系统,很人性化就是需要大家共同的努力进行中文化并逐步排除BUG

另外:我发现安装中文语言还有2个地方会有错误不过我已经解决下面我把我解决的方法发生你;

1。客户在下完单以后会产生一个邮件,但中文语言没有这个邮件模板
*shop\modules\mailalerts\mails\ch\new_order.txt 定单模板需要重其他语言中复制一份过来;前台下单需要
2。后台发送消息如果发送邮件也会产生一个邮件模板但中文语言内没有
*shop\mails\ch\order_merchant_comment.txt 邮件模板需要重其他语言中复制一份过来;后台部分在发送消息时需要

需要我前面的问题,你还能跟进,在线等 :)认识你很高兴!



回答/Answer:

[CN] 我可以在英语,中文界面下安装其他模块.不知道是不是确实和服务器设置有关? 感觉有些地方不对劲. 我测试过Windows下的appserv, Easy-PHP, Linux-CentOS5.2 自带的apache, PHP, MySQL. 其它的问题我会跟进, 在我测试之后.

[EN] I have been tested install other modules under english and Chinese interface. All my test are done under Window$ using appserv, Easy-PHP, and Linux-CentOS5.2 with shipped PHP and MySQL. I will try to give you answer about ur other questions after testing.

Enjoy Prestashop!
Link to comment
Share on other sites

  • 4 weeks later...

回楼上!
如果你是在本机安装了LAMP或者WAMP,
请找出服务器的Php.ini;
把其中的Memory limited的参数做修改;
一般有些设置的是8M,可以设置成16M,32M都行;
然后重启你的服务器!

推荐使用Vertrigo的WAMP,有直接的php.ini工具设置!

Link to comment
Share on other sites

有用LAMP环境中,有用mod_security改一下"apache目录/modsecurity.d/modsecurity_crs_23_request_limits.conf"中的这行:

# Maximum number of arguments in request limited
SecRule &ARGS;"@gt 255" "phase:2,t:none,deny,log,auditlog,status:403,msg:'Too many arguments in request',id:'960335',severity:'4'"
改为:
# Maximum number of arguments in request limited
#SecRule &ARGS;"@gt 255" "phase:2,t:none,deny,log,auditlog,status:403,msg:'Too many arguments in request',id:'960335',severity:'4'"

(前加#)

后台提交大量请求数据时不会显示403错误。

Link to comment
Share on other sites

  • 1 month later...

感谢作者提供的中文语言包。


1. According to ISO standard, it looks the ISO code of Chinese-simplified language should be "cn", but not "ch" as those included in both ch.gzip and 1.1b3.zip. Therefore, change "ch" to "cn" will be better.



我将语言包的iso code修改为了cn。更新包见附件。
在新建中文语言的时候,建议大家还是使用cn 来作为中国的ISO code。

另:在使用
Tools >> Translations 中的 Copy 功能时,貌似目前的版本有bug,无法copy模块的语言包。

可修改如下代码:
admin/tabs/AdminTranslations.php
---line:88----
$items = Language::getFilesList($fromLang, $fromTheme, $toLang, $toTheme);
---------------
$items = Language::getFilesList($fromLang, $fromTheme, $toLang, $toTheme, false, false, true);
--------------

cn.gzip

Link to comment
Share on other sites

为什么我安装上面的步骤安装完了以后,后台的导航栏目还是英文的呢,前台的英文到时汉化了的。那位高人能提示我一下吗。谢谢!


Back Office >> Tools >> Tabs

后台修改之...
Link to comment
Share on other sites

  • 1 month later...
hi all

我装好以后,试运行,结账的时候,发现系统提示我:配送公司无法送到此地址! 以后就无法操作了

thanks a lot


This has nothing to do with the Chinese translation. You need to select your shipping method..., then it will work...
Link to comment
Share on other sites

hi all

我装好以后,试运行,结账的时候,发现系统提示我:配送公司无法送到此地址! 以后就无法操作了

thanks a lot


This has nothing to do with the Chinese translation. You need to select your shipping method..., then it will work...


OK, thanks
Link to comment
Share on other sites

  • 2 weeks later...
hi all

我装好以后,试运行,结账的时候,发现系统提示我:配送公司无法送到此地址! 以后就无法操作了

thanks a lot


This has nothing to do with the Chinese translation. You need to select your shipping method..., then it will work...


OK, thanks


这个语言包是否适合1.2版本呢?这是后台的汉化程序还是前台的汉化程序呢?
Link to comment
Share on other sites

hi all

我装好以后,试运行,结账的时候,发现系统提示我:配送公司无法送到此地址! 以后就无法操作了

thanks a lot


This has nothing to do with the Chinese translation. You need to select your shipping method..., then it will work...


OK, thanks


这个语言包是否适合1.2版本呢?这是后台的汉化程序还是前台的汉化程序呢?


sorry,I don't know , My Version 1.1.0.5
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...