diff --git a/application/config/config.php.sample b/application/config/config.php.sample index 32762d7..5773598 100644 --- a/application/config/config.php.sample +++ b/application/config/config.php.sample @@ -12,7 +12,7 @@ baseurl page_title That's your website title. Example: "My WOW Private server!" language - Website language (english) + Website language (english/persian) =====================================================================*/ $config['baseurl'] = "http://localhost"; $config['page_title'] = "Simple Register"; diff --git a/application/include/functions.php b/application/include/functions.php index fb355eb..4da2274 100644 --- a/application/include/functions.php +++ b/application/include/functions.php @@ -234,7 +234,7 @@ function captcha_validation() { if (empty(get_config('captcha_type')) && !empty($_POST['captcha']) && !empty($_SESSION['captcha'])) { if (strtolower($_SESSION['captcha']) != strtolower($_POST['captcha'])) { - error_msg('Captcha is not valid.'); + error_msg(lang('captcha_not_valid')); return false; } unset($_SESSION['captcha']); @@ -242,16 +242,16 @@ function captcha_validation() return true; } elseif (!empty(get_config('captcha_type')) && get_config('captcha_type') == 1 && !empty($_POST['h-captcha-response'])) { if (!validate_hcaptcha($_POST['h-captcha-response'])) { - error_msg('HCaptcha is not valid.'); + error_msg(lang('hcaptcha_not_valid')); return false; } } elseif (!empty(get_config('captcha_type')) && get_config('captcha_type') == 2 && !empty($_POST['g-recaptcha-response'])) { if (!validate_recaptcha($_POST['g-recaptcha-response'])) { - error_msg('ReCaptcha is not valid.'); + error_msg(lang('recaptcha_not_valid')); return false; } } else { - error_msg('Captcha is required.'); + error_msg(lang('captcha_required')); return false; } diff --git a/application/language/english.php b/application/language/english.php index 4391eee..3089d6f 100644 --- a/application/language/english.php +++ b/application/language/english.php @@ -61,7 +61,7 @@ $language['two_factor_authentication_tip1'] = 'Install Google Authenticator.'; $language['two_factor_authentication_enable'] = 'Enable 2FA'; $language['close'] = 'Close'; $language['vote'] = 'Vote'; -$language['old_password'] = 'old_password'; +$language['old_password'] = 'Old Password'; $language['online_players'] = 'Online Players'; $language['online_players_msg1'] = 'Limited to show 49 player - Online players:'; $language['online_players_msg2'] = 'No players are currently online'; @@ -84,8 +84,10 @@ $language['frequently_questions'] = 'Frequently Asked Questions'; $language['question'] = 'Question'; $language['answer'] = 'Answer'; $language['location'] = 'Location'; -$language['call'] = 'call'; +$language['call'] = 'Call'; $language['restore_account_password'] = 'Restore Account Password'; +$language['about_server'] = 'About the server'; +$language['game_version'] = 'Game version'; $language['use_valid_email'] = 'Use valid characters for email.'; $language['use_valid_username'] = 'Use valid characters for username.'; @@ -105,6 +107,7 @@ $language['check_your_email'] = 'Check your email, (Check SPAM/Junk too).'; $language['account_is_not_valid'] = 'Account is not valid.'; $language['vote_site_not_valid'] = 'Vote site is not valid!'; $language['you_already_voted'] = 'You already voted on this website.'; - - - +$language['captcha_not_valid'] = 'Captcha is not valid.'; +$language['hcaptcha_not_valid'] = 'HCaptcha is not valid.'; +$language['recaptcha_not_valid'] = 'ReCaptcha is not valid.'; +$language['captcha_required'] = 'Captcha is required.'; diff --git a/application/language/persian.php b/application/language/persian.php new file mode 100644 index 0000000..7da182c --- /dev/null +++ b/application/language/persian.php @@ -0,0 +1,113 @@ +
Edit on "/template/advance/tpl/contact.php".
+ +"/template/advance/tpl/contact.php".
Tehran, Iran
info@example.com
+98 915 620 9344
- Answer -
Edit on "/template/advance/tpl/faq.php".
- -- Answer -
-- Answer -
-Server Address/Realmlist:
First of all, you must create an account. The account is used to log into both the game and - our website. Click here to open the registration page.
-Install World of Warcraft. You can download it (legally) from here: Windows or Mac. Make sure - to upgrade to our current supported patch, which - is . Patch mirrors can be found here.
-Open up the "World of Warcraft" directory. The default directory is "C:\Program Files\World - of Warcraft". When you've found it, open up the directory called "data", then go into the - directory called either enUS or enGB, depending on your client language.
-Erase all text and change it to:
-
- Edit on "/template/advance/tpl/how-connect.php". -
-/:
+
.
+
+
+ "/template/advance/tpl/how-connect.php". +
+Create a new game account.
-