Forums / Addon Language Packs / V158 Japanese language pack

V158 Japanese language pack

Views: 25,538

Results 21 to 40 of 64
13 Apr 2023, 2:43 PM
#21
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

V158 Japanese language pack

Version 1.2.1 is released.
It should be available soon in plugin section but it is better to download from Github where it is already there and up to date (plugin section one has a small error in it).
https://github.com/piloujp/ZenCartv158-Japanese-Language-Pack/releases/tag/v1.2.1
I will use this post to add a tutorial for the quickest way to install Japanese pack on a freshly installed Zen Cart v1.5.8 or v1.5.8a:

  • First you need a new Zen Cart v1.5.8 or v1.5.8a already installed and working in English version but with no plugin added.
  • After that backup all cart files by making a copy somewhere and Database by exporting everything in an SQL file. If something goes wrong, using these backup you can start from zero without re-installing English version.
  • Then run SQL queries in 'mysql_japanese_install.sql', 'mysql_japanese_config.sql' and if you want admin fully Japanese 'mysql_japanese_admin_menu.sql'. You can do this by importing these files in a tool like phpMyAdmin or by copying queries into Zen Cart admin SQL tool or whatever you like. If some error occurs during this process, fix it before doing next step! Continuing with errors will just mess up things.
  • Now copy to your cart folders 'email', 'images' and 'includes' including all files and subfolders. If you use FTP, check that everything has been uploaded.
  • Finally, copy content of admin-JP (or admin-EN if you want to keep admin in English) to your cart admin folder. Don't copy folder itself has names are different for each installation.

You are done!
You still have to configure/install modules you want to use like you would do with an English version. For shipping modules have a look at readme file.

Tip: In case you run into troubles and after few fixing attempts things don't get better, start again from zero using backups. It is generally faster.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

15 Apr 2023, 2:28 AM
#22
fujimasa avatar

fujimasa

New Zenner

Join Date:
Mar 2023
Posts:
5
Plugin Contributions:
0

Re: V158 Japanese language pack

Hello pilou2
Thank you for releasing Version 1.2.1.
I was able to register products, register customers, and even receive orders in Japanese. I am very impressed.

And
When a customer registers himself, an error message "Please select your prefecture from the pull-down menu" appears after he presses the submit button.
This was cured by going to >General Settings>Customer Account Settings>Prefecture name drop down(>一般設定>顧客アカウントの設定>都道府県名ドロップダウン) and setting the display to TRUE.

When I went to >Modules > Shipping Module Settings.
For example, when I click on "Sagawa Express, 3-7 days", the properties appear on the right side.
I may have had it explained to me in the past, but I could not get it to work.
I found the Japanese text in "ZC158LangPack_JP>includes>modules>shipping>sagawa.php".

About "Readme-jp.txt". There is "File, case 1:" and "File, Case 2:"

In fact, there are 11 Shipping modules, 4 Payment modules, and 3 Total_Order modules.
"here"

  • The cla for shipping modules.

The end of the explanation for the upgraded case of "File, Case 2":,
Is the "here" part correct?

It looked like case 2 continued until the "> setting:."

15 Apr 2023, 3:02 PM
#23
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

fujimasa:

Hello pilou2
Thank you for releasing Version 1.2.1.
I was able to register products, register customers, and even receive orders in Japanese. I am very impressed.

And
When a customer registers himself, an error message "Please select your prefecture from the pull-down menu" appears after he presses the submit button.
This was cured by going to >General Settings>Customer Account Settings>Prefecture name drop down(>一般設定>顧客アカウントの設定>都道府県名ドロップダウン) and setting the display to TRUE.
You did the right thing. It seems there is a bug in Zen Cart, nothing to do with language. It happens in English too. I have a fix that I will submit to Zen Cart developer team. Thanks for finding it.

When I went to >Modules > Shipping Module Settings.
For example, when I click on "Sagawa Express, 3-7 days", the properties appear on the right side.
I may have had it explained to me in the past, but I could not get it to work.
I found the Japanese text in "ZC158LangPack_JP>includes>modules>shipping>sagawa.php".
To have text in Japanese in modules you have to uncomment Japanese text and comment English one at the end of module file.
Add /* on line after '// English' and add / on line before '// Japanese' to comment English part and remove / on line after '// Japanese' and */ that is after Japanese part to uncomment Japanese.
Then install or re-install module in admin and you get Japanese. Module default setting is good but you have to add a tax class for Sagawa module (prices without tax), then choose a zone where you want to use this module like Japan, Japan except Okinawa/Hokkaido or just your prefecture. These zones must be created before in admin menu. At the end choose display order for this module. 0 if you want it to come first, big number to display it at the end.

About "Readme-jp.txt". There is "File, case 1:" and "File, Case 2:"

In fact, there are 11 Shipping modules, 4 Payment modules, and 3 Total_Order modules.
"here"

  • The cla for shipping modules.

The end of the explanation for the upgraded case of "File, Case 2":,
Is the "here" part correct?

It looked like case 2 continued until the "> setting:."
I am not sure to understand what you mean. Only thing I found in the readme is that end of case 2 is not clear and module preparation seems to be part of case 2 only. I will change that and make it clear where case 2 ends.

Thanks for all you experience returns.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

26 Apr 2023, 12:20 AM
#24
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

An important bug fix for Japanese admin users has been added on Github.
https://github.com/piloujp/ZenCartv158-Japanese-Language-Pack
With this fix you should be able to access Customer list without problem.
To download click on green button 'code' on the right then 'Download ZIP'. It will download all pack files in a zip.
To know which files are modified, from top page click on '...commits' on the right just below green 'Code' button. Then click on last commit name at the top of the list.
For a fix like this, you can safely copy these new files in your cart overwriting old ones.
日本語の管理者ユーザー向けの重要なバグ修正が Github に追加されました。
この修正により、顧客リストに問題なくアクセスできるようになります。
ダウンロードするには、右側にある緑色の「コード」ボタンをクリックしてから、「ZIP をダウンロード」をクリックします。
どのファイルが変更されているかを知るには、トップ ページから、緑色の [コード] ボタンのすぐ下にある [...commits] をクリックします。 次に、リストの上部にある最後のコミット名をクリックします。

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

9 May 2023, 3:41 AM
#25
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

Hello,
I found a new bug:
Japanese prefecture name Gunma was misspelled in zones table. SQL query install file has been corrected an is available on Github.
To correct it in your database, please run this query:
UPDATE zones SET zone_name='Gunma' WHERE zone_name='Gumma';

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

15 May 2023, 5:59 AM
#26
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

A new release v1.2.3 has just been submitted in Plugin section and is already available on Github.

Class shipping can now do multi-boxing on size or weight. ePacket module do multi-boxing based on weight and LetterPack Plus, which is a prepaid envelope, do it using dimension. Algorithm for size calculation has been improved too.
Modified admin customer edit form so that less mandatory fields are required.
Updated filter for Japanese prefectures names (Kanji or romaji) so it does not filter out other languages using non-standard characters.
Japanese prefecture Gunma spelling was corrected in zones table and SQL queries.
Added comments in Japanese shipping modules class for Yamato, Sagawa and Yupack. There are in a structured way more like example to make customization easier.
Modification of some SQL queries for database setting.
Aligned icons with text in few shipping modules.
Corrected bug in Japanese admin that prevented to see Customer list page.
Updated all files to Zen Cart v1.5.8a.
Updated instructions in readme files.
Few minor bugs fix.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

22 May 2023, 7:08 AM
#27
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

Well, just after a new release, as usually, I found an annoying bug in install SQL query.
The query in 'mysql_japanese_install.sql' file that set Japanese language sets it with code 'jp' instead of 'ja'. You can check in your admin 'Localization -> Language' and change it there if necessary. It will avoid warning an error log files.
Updated file is on Github if you did not install yet.
https://github.com/piloujp/ZenCartv158-Japanese-Language-Pack

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

13 Jun 2023, 3:57 PM
#29
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

v1.3.0 has just been released on GitHub and submitted in plugin section.
Zen Cart installer has been added and it has never been easier to install this plugin. It could be done in few minutes only for a new cart install.
A new HTML documentation has been created too for all installation cases which should makes things easier, even when installing over a cart full of plugins.
Enjoy, and feedback are most welcome.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

26 Jun 2023, 3:49 AM
#30
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

V1.3.0 with installer is finally available in plugin section and, as usually after a big release, I already found an annoying bug that prevents to display multiple pages in some admin listing when using Japanese menus.
A fix for this bug is available on GitHub.
v1.3.0の日本語管理メニューにバグがあるため、GitHubからダウンロードしてください。

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

7 Aug 2023, 5:29 AM
#31
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

A new release is there, v1.3.2 available on GitHub. 新しいリリース v1.3.2 が GitHub で入手可能です。
https://github.com/piloujp/ZenCartv158-Japanese-Language-Pack/releases/tag/v1.3.2
I submitted it to Plugin section too.
There are two bugs fixes, one in admin that prevented to display multiple pages in few admin listings and the other one fixes shipping estimator bug when only one item in cart, quote for Yamato, Sagawa and YuPack was 0.
Some left over translations in admin are now done.
Documentation has been improved too and lots of cleaning has been done.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

4 Oct 2023, 5:10 AM
#32
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

Shipping class for Yamato has been updated to October 2023 new (increased) fees...
You can find this update on Github here.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

9 Feb 2024, 9:45 AM
#33
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

Japanese Language Pack version 2.0.0 for Zen Cart v2.0.0-alpha1 is available on Github.
Zen Cart v2.0.0-alpha1 の日本語言語パック バージョン 2.0.0 は、Githubで入手できます。

Fresh install and update from ZC v2.0.0-alpha1 work fine with installer. Updating from older versions, Japanese or not should be done manually.
Japanese zones that were double in database for Kanji and alphabet writing are now unique. This dual writing is now handle in code. There is still a problem to update from old data as zone ids change. I am working on an sql update query for that.
Until this is done, this version is for new install of Zen Cart or old English versions updated to V2.0.0-alpha1.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

8 Apr 2024, 5:39 PM
#34
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

The Japanese language pack v2.0.0 for the new Zen Cart version 2.0.0 is ready.
You can download it on GitHub here.
It will be soon available in plugin section too.
日本語言語パックをGitHubで公開しました。 ぜひお試しください。間もなくプラグインセクションでも利用できるようになる予定です。

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

17 May 2024, 1:28 AM
#35
ikirin avatar

ikirin

New Zenner

Join Date:
Apr 2019
Location:
shanghai
Posts:
27
Plugin Contributions:
0

Re: V158 Japanese language pack

zencart 2.0
php 8.3
one_page_checkout-2.5.1
ZC200LangPack_JP_2.0.0[japanese]
Q:
After the module is uploaded, the zencart backend cannot log in, prompting this error.

--> PHP Fatal error: MySQL error 1364: Field 'entry_telephone' doesn't have a default value :: INSERT INTO address_book (customers_id, entry_firstname, entry_lastname, entry_street_address, entry_country_id, entry_zone_id) VALUES ('2', 'Guest', 'Customer, **do not remove**', 'Default billing address', '107', '293') ==> (as called by) /home/xxx/public_html/includes/functions/database.php on line 134 <== in /home/xxx/public_html/includes/classes/db/mysql/query_factory.php on line 714. 

A:
Update database fields
ALTER TABLE address_book CHANGE entry_telephone entry_telephone VARCHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;

I carefully checked all the files and found that this field is in the Japanese language module

ZC200LangPack_JP\zc_install\sql\plugins\mysql_japanese_install.sql
ZC200LangPack_JP\sql\mysql_japanese_install.sql
in 75 line
ALTER TABLE address_book ADD COLUMN entry_telephone varchar(32) NOT NULL;


ZC200LangPack_JP\zc_install\sql\updates\mysql_upgrade_zencart_200200.sql
ZC200LangPack_JP\sql\mysql_upgrade_zencart_200200.sql
in 75 line
ALTER TABLE address_book ADD COLUMN entry_telephone varchar(32) NOT NULL;


php file using this field:
ZC200LangPack_JP\admin\customers.php
ZC200LangPack_JP\admin-JP\customers.php
ZC200LangPack_JP\includes\classes\Customer.php
ZC200LangPack_JP\includes\classes\order.php
ZC200LangPack_JP\includes\functions\functions_addresses.php
ZC200LangPack_JP\includes\modules\checkout_new_address.php
ZC200LangPack_JP\includes\modules\pages\address_book_process\header_php.php
17 May 2024, 4:33 PM
#36
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

ikirin:

zencart 2.0
php 8.3
one_page_checkout-2.5.1
ZC200LangPack_JP_2.0.0[japanese]
Q:
After the module is uploaded, the zencart backend cannot log in, prompting this error.

--> PHP Fatal error: MySQL error 1364: Field 'entry_telephone' doesn't have a default value :: INSERT INTO address_book (customers_id, entry_firstname, entry_lastname, entry_street_address, entry_country_id, entry_zone_id) VALUES ('2', 'Guest', 'Customer, do not remove', 'Default billing address', '107', '293') ==> (as called by) /home/xxx/public_html/includes/functions/database.php on line 134 <== in /home/xxx/public_html/includes/classes/db/mysql/query_factory.php on line 714.

> 
> A:
> Update database fields
> ALTER TABLE `address_book` CHANGE `entry_telephone` `entry_telephone` VARCHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
> 
> 
> I carefully checked all the files and found that this field is in the Japanese language module
> ```html
ZC200LangPack_JP\zc_install\sql\plugins\mysql_japanese_install.sql
ZC200LangPack_JP\sql\mysql_japanese_install.sql
in 75 line
ALTER TABLE address_book ADD COLUMN entry_telephone varchar(32) NOT NULL;


ZC200LangPack_JP\zc_install\sql\updates\mysql_upgrade_zencart_200200.sql
ZC200LangPack_JP\sql\mysql_upgrade_zencart_200200.sql
in 75 line
ALTER TABLE address_book ADD COLUMN entry_telephone varchar(32) NOT NULL;


php file using this field:
ZC200LangPack_JP\admin\customers.php
ZC200LangPack_JP\admin-JP\customers.php
ZC200LangPack_JP\includes\classes\Customer.php
ZC200LangPack_JP\includes\classes\order.php
ZC200LangPack_JP\includes\functions\functions_addresses.php
ZC200LangPack_JP\includes\modules\checkout_new_address.php
ZC200LangPack_JP\includes\modules\pages\address_book_process\header_php.php

This error message appears when MySQL is in STRICT mode. There are two way to fix it:
1- Edit my.ini (or my.conf on Linux) and remove STRICT_ALL_TABLES mode. You should have ```
sql_mode=""

2- Set Null column to yes and default value to NULL in database for field entry_telephone in table address_book. But then you still might have the same error with other fields.
I modified install file so it does not happen again.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

9 Oct 2024, 3:21 PM
#37
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

You can try the v2.1.0-beta1, now available on GitHub.
There are lots of improvements on admin translation which is now as smooth as catalog side.
ZC 日本語言語パック v2.1.0-beta1 が GitHub で公開されました。
管理者の翻訳には多くの改善が加えられ、カタログ側と同じくらいスムーズになりました。

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

25 Nov 2024, 6:32 AM
#38
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

Japanese Language Pack v2.1.0 has been submitted in plugin section and should be available in few days.
It is an update for Zen Cart v2.1.0.
Now that all parts of ZC language strings can be changed on the fly, the option to choose English or Japanese admin at install has been removed.
Few (14) plugins' translations have been added in a separate folder.
Please read the documentation file provided for different installation/update cases.

日本語言語パック v2.1.0 は プラグイン セクション に提出されており、数日以内に利用可能になる予定です。
Zen Cart v2.1.0 のアップデートです。
ZC 言語文字列のすべての部分をオンザフライで変更できるようになったため、インストール時に英語または日本語の管理を選択するオプションは削除されました。
いくつかの (14) プラグインの翻訳が別のフォルダーに追加されました。
さまざまなインストール/更新ケースについては、提供されているドキュメント ファイルをお読みください。

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

14 Apr 2025, 8:31 AM
#39
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
400
Plugin Contributions:
6

Re: V158 Japanese language pack

Japanese Language Pack v2.1.1j has been released in plugin section.
All Japanese modules (shipping, payment and order total) are now encapsulated. They should be easier to maintain and update.
Shipping rates for Japanese shipping modules are now saved in a new table in database.
A new module (Tarifs) to view and edit shipping table rates through ZC admin has been added.
ZC last bugs corrections added.
Few plugins translations added for a total of 32.
If you want last updates and bug corrections, please download from GitHub by clicking on the green 'Code' button on the right and then 'Download Zip' at the bottom of the new tab.

プラグインセクションに日本語言語パック v2.1.1j がリリースされました。
すべての日本語モジュール(配送、支払い、注文合計)がカプセル化されました。これにより、メンテナンスと更新が容易になります。
日本語配送モジュールの配送料は、データベース内の新しいテーブルに保存されるようになりました。
ZC管理画面から配送料を表示・編集できる新しいモジュール(Tarifs)が追加されました。
ZCの最新のバグ修正が追加されました。
いくつかのプラグインの翻訳が追加され、合計 32 件になりました。
最新のアップデートやバグ修正が必要な場合は、右側の緑色の「コード」ボタンをクリックし、新しいタブの下部にある「Zip をダウンロード」をクリックして、GitHub からダウンロードしてください。

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

4 Jun 2025, 4:34 PM
#40
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: V158 Japanese language pack

Hello @pilou2
I'm finally at the point where I can install your very nice encapsulated shipping modules.
I'm however not having any luck with the Tarif module. I already realized that the plugin manager gives no error, modules simply do not show up if there is some issue.
I noticed that the admin/includes/languages/english/extra_definitions is missing the lang.tarifs.php file, so I added that file, but still nothing.
Can you advise please where this page should appear, and whether there is anything missing?
I did check your latest Github as well and the Tarifs module there looks the same as the 2.1.2j.

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0