Reservation

英語で使うファイルは日本語から変更したpcen.php、scen.php、congfigen.php、mailen.php、mailspen.phpの5種類。
英語が日本語・中文(簡体字)と違うところはカレンダーやメールフォームなど日付の表示。プラグインではどうしているか。これは何れプラグインでやって見ないといけない。
日本語・英語・中国語とも正常動作まで行ったが、レイアウトは二の次で今回の実験は終わり。

The price in the table is fictitious. The correct price can be confirmed on the official website. The operation on the reservation form is until the last “confirmation”, and “submit” is not available.

The price in the calendar is “tax included“.

※制作メモ
・「//日付フォーマットの変更」で$dspDate = $dateArray[1].”/”.$dateArray[2].”/”.$dateArray[0].” “;と順番をmonth/day/yearとした。しかし、送信前の最終確認画面では変更していないので、日本語と同じ配列になっている。
・ファイルインクルードで<?php require_once(‘calendar_form/admin/configen.php‘);
・メールフォームの所で、<form action=”calendar_form/mail/mailen.php” method=”post”>とした。
この事はスマホファイルであるspen.phpでも同様である。あとはモニターに表示される所だけ日本語を英語に「Google翻訳」を使って、機械的に置き換えて行ったのとurlの指定など。
・曜日のSunなどはconfigen.phpの$WeekArrayで指定した。
·予約確認自動送信のメールで「様」に相当する部分はmailen.phpの「//ユーザ宛送信メールボディ」で if(isset($arr[$dsp_name])) $userBody = “Dear “.h($arr[$dsp_name]).” \n”;と、メール宛名の先頭に男女でも使えるDearにした。
・予約確認画面でのreservは単純にReservationとした。