mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 12:31:06 -05:00
translating form validations
This commit is contained in:
parent
42ec651f1b
commit
2229494119
@ -356,7 +356,7 @@ class Main extends CI_Controller
|
||||
|
||||
//form validation
|
||||
$this->form_validation->set_rules($rules);
|
||||
$this->form_validation->set_message('min_length', 'The %s field can not be empty');
|
||||
$this->form_validation->set_message('min_length', lang('empty'));
|
||||
$this->form_validation->set_error_delimiters('<div class="message error"><div class="container">', '</div></div>');
|
||||
|
||||
if ($this->form_validation->run() == FALSE)
|
||||
@ -577,7 +577,7 @@ class Main extends CI_Controller
|
||||
function _valid_lang($lang)
|
||||
{
|
||||
$this->load->model('languages');
|
||||
$this->form_validation->set_message('_valid_lang', 'Please select your language');
|
||||
$this->form_validation->set_message('_valid_lang', lang('valid_lang'));
|
||||
return $this->languages->valid_language($lang);
|
||||
}
|
||||
|
||||
@ -586,7 +586,7 @@ class Main extends CI_Controller
|
||||
|
||||
if ($this->config->item('enable_captcha'))
|
||||
{
|
||||
$this->form_validation->set_message('_valid_captcha', 'The Captcha is incorrect.');
|
||||
$this->form_validation->set_message('_valid_captcha', lang('captcha'));
|
||||
return strtolower($text) == strtolower($this->db_session->userdata('captcha'));
|
||||
}
|
||||
else
|
||||
@ -637,7 +637,7 @@ class Main extends CI_Controller
|
||||
{
|
||||
|
||||
//setup message
|
||||
$this->form_validation->set_message('_blockwords_check', 'Your paste contains blocked words.');
|
||||
$this->form_validation->set_message('_blockwords_check', lang('blocked_words'));
|
||||
|
||||
//check
|
||||
$blocked_words = $this->config->item('blocked_words');
|
||||
@ -659,7 +659,7 @@ class Main extends CI_Controller
|
||||
{
|
||||
|
||||
//setup message
|
||||
$this->form_validation->set_message('_autofill_check', 'Go away, robot!');
|
||||
$this->form_validation->set_message('_autofill_check', lang('robot'));
|
||||
|
||||
//check
|
||||
return !$this->input->post('email');
|
||||
|
61
htdocs/application/language/english/date_lang.php
Normal file
61
htdocs/application/language/english/date_lang.php
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
$lang['date_year'] = "Year";
|
||||
$lang['date_years'] = "Years";
|
||||
$lang['date_month'] = "Month";
|
||||
$lang['date_months'] = "Months";
|
||||
$lang['date_week'] = "Week";
|
||||
$lang['date_weeks'] = "Weeks";
|
||||
$lang['date_day'] = "Day";
|
||||
$lang['date_days'] = "Days";
|
||||
$lang['date_hour'] = "Hour";
|
||||
$lang['date_hours'] = "Hours";
|
||||
$lang['date_minute'] = "Minute";
|
||||
$lang['date_minutes'] = "Minutes";
|
||||
$lang['date_second'] = "Second";
|
||||
$lang['date_seconds'] = "Seconds";
|
||||
|
||||
$lang['UM12'] = '(UTC -12:00) Baker/Howland Island';
|
||||
$lang['UM11'] = '(UTC -11:00) Samoa Time Zone, Niue';
|
||||
$lang['UM10'] = '(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti';
|
||||
$lang['UM95'] = '(UTC -9:30) Marquesas Islands';
|
||||
$lang['UM9'] = '(UTC -9:00) Alaska Standard Time, Gambier Islands';
|
||||
$lang['UM8'] = '(UTC -8:00) Pacific Standard Time, Clipperton Island';
|
||||
$lang['UM7'] = '(UTC -7:00) Mountain Standard Time';
|
||||
$lang['UM6'] = '(UTC -6:00) Central Standard Time';
|
||||
$lang['UM5'] = '(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time';
|
||||
$lang['UM45'] = '(UTC -4:30) Venezuelan Standard Time';
|
||||
$lang['UM4'] = '(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time';
|
||||
$lang['UM35'] = '(UTC -3:30) Newfoundland Standard Time';
|
||||
$lang['UM3'] = '(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay';
|
||||
$lang['UM2'] = '(UTC -2:00) South Georgia/South Sandwich Islands';
|
||||
$lang['UM1'] = '(UTC -1:00) Azores, Cape Verde Islands';
|
||||
$lang['UTC'] = '(UTC) Greenwich Mean Time, Western European Time';
|
||||
$lang['UP1'] = '(UTC +1:00) Central European Time, West Africa Time';
|
||||
$lang['UP2'] = '(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time';
|
||||
$lang['UP3'] = '(UTC +3:00) Moscow Time, East Africa Time';
|
||||
$lang['UP35'] = '(UTC +3:30) Iran Standard Time';
|
||||
$lang['UP4'] = '(UTC +4:00) Azerbaijan Standard Time, Samara Time';
|
||||
$lang['UP45'] = '(UTC +4:30) Afghanistan';
|
||||
$lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time';
|
||||
$lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time';
|
||||
$lang['UP575'] = '(UTC +5:45) Nepal Time';
|
||||
$lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time';
|
||||
$lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar';
|
||||
$lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam';
|
||||
$lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time';
|
||||
$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time';
|
||||
$lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time';
|
||||
$lang['UP95'] = '(UTC +9:30) Australian Central Standard Time';
|
||||
$lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time';
|
||||
$lang['UP105'] = '(UTC +10:30) Lord Howe Island';
|
||||
$lang['UP11'] = '(UTC +11:00) Magadan Time, Solomon Islands, Vanuatu';
|
||||
$lang['UP115'] = '(UTC +11:30) Norfolk Island';
|
||||
$lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time';
|
||||
$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time';
|
||||
$lang['UP13'] = '(UTC +13:00) Phoenix Islands Time, Tonga';
|
||||
$lang['UP14'] = '(UTC +14:00) Line Islands';
|
||||
|
||||
|
||||
/* End of file date_lang.php */
|
||||
/* Location: ./system/language/english/date_lang.php */
|
35
htdocs/application/language/english/form_validation_lang.php
Normal file
35
htdocs/application/language/english/form_validation_lang.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
$lang['required'] = "The %s field is required.";
|
||||
$lang['not_allowed'] = "You are not allowed to paste.";
|
||||
$lang['captcha'] = "The captcha is incorrect.";
|
||||
$lang['blocked_words'] = "Your Paste contains blocked words.";
|
||||
$lang['robot'] = "Go away, robot!";
|
||||
$lang['empty'] = "The %s field can not be empty.";
|
||||
$lang['valid_lang'] = "Please select your language.";
|
||||
$lang['isset'] = "The %s field must have a value.";
|
||||
$lang['valid_email'] = "The %s field must contain a valid email address.";
|
||||
$lang['valid_emails'] = "The %s field must contain all valid email addresses.";
|
||||
$lang['valid_url'] = "The %s field must contain a valid URL.";
|
||||
$lang['valid_ip'] = "The %s field must contain a valid IP.";
|
||||
$lang['min_length'] = "The %s field must be at least %s characters in length.";
|
||||
$lang['max_length'] = "The %s field can not exceed %s characters in length.";
|
||||
$lang['exact_length'] = "The %s field must be exactly %s characters in length.";
|
||||
$lang['alpha'] = "The %s field may only contain alphabetical characters.";
|
||||
$lang['alpha_numeric'] = "The %s field may only contain alpha-numeric characters.";
|
||||
$lang['alpha_dash'] = "The %s field may only contain alpha-numeric characters, underscores, and dashes.";
|
||||
$lang['numeric'] = "The %s field must contain only numbers.";
|
||||
$lang['is_numeric'] = "The %s field must contain only numeric characters.";
|
||||
$lang['integer'] = "The %s field must contain an integer.";
|
||||
$lang['regex_match'] = "The %s field is not in the correct format.";
|
||||
$lang['matches'] = "The %s field does not match the %s field.";
|
||||
$lang['is_unique'] = "The %s field must contain a unique value.";
|
||||
$lang['is_natural'] = "The %s field must contain only positive numbers.";
|
||||
$lang['is_natural_no_zero'] = "The %s field must contain a number greater than zero.";
|
||||
$lang['decimal'] = "The %s field must contain a decimal number.";
|
||||
$lang['less_than'] = "The %s field must contain a number less than %s.";
|
||||
$lang['greater_than'] = "The %s field must contain a number greater than %s.";
|
||||
|
||||
|
||||
/* End of file form_validation_lang.php */
|
||||
/* Location: ./system/language/english/form_validation_lang.php */
|
@ -43,6 +43,8 @@ $lang['paste_replies'] = 'Replies to';
|
||||
$lang['paste_replyto'] = 'Reply to';
|
||||
$lang['paste_replyto_desc'] = 'Here you can reply to the paste above';
|
||||
$lang['paste_missing'] = 'There have been no Pastes';
|
||||
$lang['paste_spam'] = 'Spam protection';
|
||||
$lang['paste_spam_desc'] = 'Type in the letters';
|
||||
$lang['exp_forever'] = 'Keep Forever';
|
||||
$lang['exp_30min'] = '30 Minutes';
|
||||
$lang['exp_1h'] = '1 Hour';
|
||||
|
@ -2,6 +2,11 @@
|
||||
|
||||
$lang['required'] = "S %s Fäld isch Pflicht.";
|
||||
$lang['not_allowed'] = "Du dörfsch nümme paste. Ganz eifach.";
|
||||
$lang['captcha'] = "S Käptscha isch nid korräkt.";
|
||||
$lang['blocked_words'] = "Di Paste beinhaltet gsperrti Wörter.";
|
||||
$lang['robot'] = "Figg di, du Scheissbot!";
|
||||
$lang['empty'] = "S %s Fäld dörf nid leer syy.";
|
||||
$lang['valid_lang'] = "Bitte wähl dini Sprooch us.";
|
||||
$lang['isset'] = "The %s field must have a value.";
|
||||
$lang['valid_email'] = "The %s field must contain a valid email address.";
|
||||
$lang['valid_emails'] = "The %s field must contain all valid email addresses.";
|
||||
|
@ -43,6 +43,8 @@ $lang['paste_replies'] = 'Antworte uf';
|
||||
$lang['paste_replyto'] = 'Antwort uf';
|
||||
$lang['paste_replyto_desc'] = 'Weis es besser';
|
||||
$lang['paste_missing'] = 'Git leider no nüt';
|
||||
$lang['paste_spam'] = 'Spämschutz';
|
||||
$lang['paste_spam_desc'] = 'Schrib die Zeiche ab';
|
||||
$lang['exp_forever'] = 'Gar nid';
|
||||
$lang['exp_30min'] = '30 Minuttä';
|
||||
$lang['exp_1h'] = '1 Stündli';
|
||||
|
Loading…
x
Reference in New Issue
Block a user