I have split work into four parts:
(1) DB changes: leave till later (address format definition(s), name order, hiragana/katakana name field support, etc.)
(2) module changes: addition of Japanese shipping modules to 1.5.5e. This seems to require minimal changes to the declaration function and use of zone_country_id statements (apart from language-specifics).
(3) language addition of Japanese.
(4) template additions/changes (email, etc., as required).
I have started work on making the language files.
First, the differences to includes/languages/english.php between 1.5.1-jp-1 and 1.5.5.e:
Code:
4c4
< * @copyright Copyright 2003-2011 Zen Cart Development Team
---
> * @copyright Copyright 2003-2016 Zen Cart Development Team
7c7
< * @version $Id: english.php 19690 2011-10-04 16:41:45Z drbyte $
---
> * @version $Id: Author: DrByte Tue Jan 5 15:06:15 2016 -0500 Modified in v1.5.5 $
19c19,20
< @setlocale(LC_TIME, 'en_US');
---
> $locales = array('en_US', 'en_US.utf8', 'en', 'English_United States.1252');
> @setlocale(LC_TIME, $locales);
139d139
< define('BOX_BBINDEX', 'Forum');
271,274c271,274
< define('PREVNEXT_BUTTON_FIRST', '<<FIRST');
< define('PREVNEXT_BUTTON_PREV', '[<< Prev]');
< define('PREVNEXT_BUTTON_NEXT', '[Next >>]');
< define('PREVNEXT_BUTTON_LAST', 'LAST>>');
---
> define('PREVNEXT_BUTTON_FIRST', '«FIRST');
> define('PREVNEXT_BUTTON_PREV', '[« Prev]');
> define('PREVNEXT_BUTTON_NEXT', '[Next »]');
> define('PREVNEXT_BUTTON_LAST', 'LAST»');
479a480
> define('WARNING_PRODUCT_QUANTITY_ADJUSTED', 'Quantity has been adjusted to what is in stock. ');
509a511
> define('TEXT_AUTHORIZATION_PENDING_CHECKOUT', 'Checkout Unavailable - Approval Pending');
586a589
> define('PAYMENT_JAVASCRIPT_DISABLED', 'We could not continue with checkout as Javascript is disabled. You must enable it to continue');
602a606,607
> define('ERROR_TEXT_COUNTRY_DISABLED_PLEASE_CHANGE', 'Sorry, but we no longer accept billing or shipping addresses in "%s". Please update this address to continue.');
>
608a614
> define('ERROR_DATABASE_MAINTENANCE_NEEDED', '<a href="http://www.zen-cart.com/content.php?334-ERROR-0071-There-appears-to-be-a-problem-with-the-database-Maintenance-is-required" target="_blank">ERROR 0071: There appears to be a problem with the database. Maintenance is required.</a>');
I therefore modified/added corresponding fields to the includes/languages/japanese.php, so that the differences to the 1.5.1-jp-1 module are as follows:
Code:
20c20,21
< @setlocale(LC_TIME, 'ja_JP.UTF-8');
---
> $locales = array('ja_JP', 'ja_JP.UTF-8', 'ja', 'Japanese_Japan.932');
> @setlocale(LC_TIME, $locales);
292,295c293,296
< define('PREVNEXT_BUTTON_FIRST', '<<最初');
< define('PREVNEXT_BUTTON_PREV', '[<< 前へ]');
< define('PREVNEXT_BUTTON_NEXT', '[次へ >>]');
< define('PREVNEXT_BUTTON_LAST', '最後>>');
---
> define('PREVNEXT_BUTTON_FIRST', '«最初');
> define('PREVNEXT_BUTTON_PREV', '[« 前へ]');
> define('PREVNEXT_BUTTON_NEXT', '[次へ »]');
> define('PREVNEXT_BUTTON_LAST', '最後»');
498a500
> define('WARNING_PRODUCT_QUANTITY_ADJUSTED', 'ご注文個数を在庫中数量に変えました。 ');
528a531
> define('TEXT_AUTHORIZATION_PENDING_CHECKOUT', '現在チェックアウトを利用できません - 承認手続き中');
605a609
> define('PAYMENT_JAVASCRIPT_DISABLED', 'Javascriptが無効になっているためチェックアウトの手続きを進めません。Javascriptを有効にしてください。');
621a626,627
> define('ERROR_TEXT_COUNTRY_DISABLED_PLEASE_CHANGE', 'お手数ですが、"%s"の支払い先または郵送先を受け入れなくなりました。この住所を更新してください。');
>
627a634
> define('ERROR_DATABASE_MAINTENANCE_NEEDED', '<a href="http://www.zen-cart.com/content.php?334-ERROR-0071-There-appears-to-be-a-problem-with-the-database-Maintenance-is-required" target="_blank">ERROR 0071: データベース問題が発生しているようです。メンテナンスが必要です。</a>');
Some contents of japanese.php are still in English in 1.5.1-jp-1, I may translate those later, but first I wanted to update to 1.5.5e standard, based on english.php.
Next, I'll work on the contents of includes/languages/Japanese.
Note: I keep getting token expired on my submissions even after Ctrl-R, pressing the reload icon in the URL bar of Friefox. Ctrl-F5 does not help either. I tried logging out and loggin in again now.
Bookmarks