V158 Japanese language pack
Hello everybody,
I have just made a Japanese language pack and it has been released in the plugin section:(日本語のv1.5.8言語パックをリリースしました!)
https://www.zen-cart.com/downloads.php?do=file&id=2359
This is an heavy modification of Zen Cart v 1.5.8 (only) but after installing it you should be able to use Japanese in your shop and have name with furigana and addresses properly formated and it includes Japanese shipping modules too for Yamato, Sagawa and Japanese Post.
There are still two 'things to do':
First I plan to make a Japanese version of the Readme explanation file. As I am not so good at explaining in Japanese I will appreciate some help/correction from native speaker. :wink:
Secondly I want to optimize calculation algorythms for parcel size. This is more on the long term for this one.
Please if you try/use it I will appreciate any feedback.
And don't hesitate if you have any questions.
Thanks! 宜しくお願いします。
Re: V158 Japanese language pack
Hi @pilou2, we are having a discussion about language packs and wondered if you new pack uses UTF8 character set.
Re: V158 Japanese language pack
Quote:
Originally Posted by
brittainmark
Hi @pilou2, we are having a discussion about language packs and wondered if you new pack uses UTF8 character set.
Yes charset is set to utf-8 in language files and files themselves are all utf8 encoded.
Re: V158 Japanese language pack
Version 1.1.0 has been released.
It adds local PHP Japanese calendar, which means the era can be displayed in date. For 2022 it is Reiwa 4 (令和4) and it is displayed in admin header date.
I use an extra function for that with default format parameter
Code:
'r年(Gy年)MMMMd日 EEEE HH:mm:ss ZZZZ'
but you can put your own string format (IntlDate format) in header file at line 203 as an argument for the function zen_set_local_calendar(). Result is like this:
2022年(令和4年)12月10日 土曜日 00:43:37 GMT+09:00
Enjoy!
Re: V158 Japanese language pack
Re: V158 Japanese language pack
Version 1.1.6 of Japanese Language Pack is ready for release. Modifications/updates are as follow:
Modified customer.php in admin so that dob field is required or not depending on field length setting in admin like for customer side.
Typo corrections in language files.
Added filter in function zen_get_country_zone to display only Japanese name for Japan zones when in Japanese and English names otherwise.
Updated categories and rates for Japanese Post Class jpparcel.php Renamed all files and variable from jppercel... to jpparcel... which includes module file and language files. Old files named jppercel....something should be deleted:
'...\includes\classes\_jppercel.php'
'...\includes\languages\english\modules\shipping\lang.jppercelems.php'
'...\includes\languages\japanese\modules\shipping\lang.jppercelems.php'
'...\includes\modules\shipping\jppercelems.php'
It is already available on Github and should be soon in plugin page.:wink:
https://www.zen-cart.com/downloads.php?do=file&id=2359
Re: V158 Japanese language pack
Quote:
Originally Posted by
pilou2
... Old files named jppercel....something should be deleted:
'...\includes\classes\_jppercel.php'
'...\includes\languages\english\modules\shipping\lang.jppercelems.php'
'...\includes\languages\japanese\modules\shipping\lang.jppercelems.php'
'...\includes\modules\shipping\jppercelems.php'
...
Please follow this more detailed steps to update to V1.1.6 :
- After copying all new files, install shipping module jpparcelems with same settings as jppercelems.
- Uninstall shipping module jppercelems.
- Delete these files :
'...\includes\classes\_jppercel.php'
'...\includes\languages\english\modules\shipping\lang.jppercelems.php'
'...\includes\languages\japanese\modules\shipping\lang.jppercelems.php'
'...\includes\modules\shipping\jppercelems.php'
Done!
Re: V158 Japanese language pack
Hello A new update (v1.1.8) has been submitted in Plugin area. It should be available soon.
If you can't wait go get it on Github! It is easier there to see which files are new or recently modified.
There are some important bug fix and a new shipping module 'International ePacket'.
Re: V158 Japanese language pack
Hello pilou2,Thanks for the Japanese language pack!
In ZEN-CART v158
I get an error when uploading the "mysql_japanese_install.sql" file in the SQL folder in PhpMyAdmin. Other than that, I can upload the file.
MYSQL message
#住所フォーマット追加 (#Add address format)
INSERT INTO address_format VALUES(21,'$postcode$cr$sate$city$streets$cr$lastname $firstname 様')
#1136-1行目で、列の数が値の数と一致しません。(#1136-In line 1, the number of columns does not match the number of values.)
If I upload the mysql_japanese_install.sql file again.
#注文ステータス (#Order status)
INSERT INTO orders_status VALUES ('5','1' 'Sent',40)
#1062 - '5-1'は索引 'PRIMARY' で重複しています。(#1062 - '5-1' is duplicated in index 'PRIMARY'.)
Next time I upload the contents of ADMIN-JP to the admin folder using FTP software.
When I add a new item I get an error and cannot add it.
I get an error message "If you were entering information, press the BACK button in your browser and re-check the information you If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you entered valid data."
Thanks in advance.
Re: V158 Japanese language pack
Quote:
I get an error when uploading the "mysql_japanese_install.sql" file in the SQL folder in PhpMyAdmin. Other than that, I can upload the file.
MYSQL message
#住所フォーマット追加 (#Add address format)
INSERT INTO address_format VALUES(21,'$postcode$cr$sate$city$streets$cr$lastname $firstname 様')
#1136-1行目で、列の数が値の数と一致しません。(#1136-In line 1, the number of columns does not match the number of values.)
Fujimasa san, sorry for the mistake. here is the correct sql request:
INSERT INTO address_format VALUES (21, '〒$postcode$cr$state$city$streets$cr$lastname $firstname 様', '$city $country');
But you can't use INSERT two time on same database/table. It is only to add new data. To change existing data the MySQL command 'UPDATE' is used.
When you have an error like that don't upload the whole SQL file again just go to sql tab in phpmyadmin and copy / paste the correct MySQL query there.
Quote:
Next time I upload the contents of ADMIN-JP to the admin folder using FTP software.
When I add a new item I get an error and cannot add it.
I get an error message "If you were entering information, press the BACK button in your browser and re-check the information you If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you entered valid data."
I am going to check that but a log file would be very helpful. Just after the error happens look in 'logs' folder (in cart root) where a new file should have been created. Please copy and paste the relevant part of this log file.