21 // All errors should be placed in the appropriate group. |
21 // All errors should be placed in the appropriate group. |
22 // |
22 // |
23 // $Id: error.inc.php,v 1.6 2003/05/04 21:38:37 azurazu Exp $ |
23 // $Id: error.inc.php,v 1.6 2003/05/04 21:38:37 azurazu Exp $ |
24 // |
24 // |
25 |
25 |
|
26 // Added next line to enable i18n on following definitions. Not sure |
|
27 // if this is the best (or at least a proper) location for this. /RZ. |
|
28 require_once("inc/i18n.inc.php"); |
|
29 |
26 /* USER LEVELS */ |
30 /* USER LEVELS */ |
27 define("ERR_LEVEL_5", "You need user level 5 for this operation"); |
31 define("ERR_LEVEL_5", _('You need user level 5 for this operation')); |
28 define("ERR_LEVEL_10", "You need user level 10 for this operation"); |
32 define("ERR_LEVEL_10", _('You need user level 10 for this operation')); |
29 |
33 |
30 /* RECORD STUFF */ |
34 /* RECORD STUFF */ |
31 define("ERR_RECORD_EMPTY_CONTENT", "Your content field is empty"); |
35 define("ERR_RECORD_EMPTY_CONTENT", _('Your content field is empty')); |
32 define("ERR_RECORD_ACCESS_DENIED", "Access denied, you do not have access to that record"); |
36 define("ERR_RECORD_ACCESS_DENIED", _('Access denied, you do not have access to that record')); |
33 define("ERR_RECORD_DELETE_TYPE_DENIED", "You are not allowed to delete %s records"); |
37 define("ERR_RECORD_DELETE_TYPE_DENIED", _('You are not allowed to delete %s records')); |
34 |
38 |
35 /* DOMAIN STUFF */ |
39 /* DOMAIN STUFF */ |
36 define("ERR_DOMAIN_INVALID", "This is an invalid domain name"); |
40 define("ERR_DOMAIN_INVALID", _('This is an invalid domain name')); |
37 |
41 |
38 /* USER STUFF */ |
42 /* USER STUFF */ |
39 define("ERR_USER_EXIST", "Username exist already, please choose another one"); |
43 define("ERR_USER_EXIST", _('Username exist already, please choose another one')); |
40 define("ERR_USER_NOT_EXIST", "User doesnt exist"); |
44 define("ERR_USER_NOT_EXIST", _('User doesnt exist')); |
41 define("ERR_USER_WRONG_CURRENT_PASS", "You didnt enter the correct current password"); |
45 define("ERR_USER_WRONG_CURRENT_PASS", _('You didnt enter the correct current password')); |
42 define("ERR_USER_MATCH_NEW_PASS", "The two new password fields do not match"); |
46 define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match')); |
43 define("ERR_USER_EDIT", "Error editting user"); |
47 define("ERR_USER_EDIT", _('Error editting user')); |
44 |
48 |
45 /* OTHER */ |
49 /* OTHER */ |
46 define("ERR_INV_ARG", "Invalid argument(s) given to function %s"); |
50 define("ERR_INV_ARG", _('Invalid argument(s) given to function %s')); |
47 define("ERR_INV_ARGC", "Invalid argument(s) given to function %s %s"); |
51 define("ERR_INV_ARGC", _('Invalid argument(s) given to function %s %s')); |
48 define("ERR_UNKNOWN", "unknown error"); |
52 define("ERR_UNKNOWN", _('unknown error')); |
49 define("ERR_INV_EMAIL", "Enter a valid email address"); |
53 define("ERR_INV_EMAIL", _('Enter a valid email address')); |
50 |
54 |
51 /* DNS */ |
55 /* DNS */ |
52 define("ERR_DNS_CONTENT", "Your content field doesnt have a legit value"); |
56 define("ERR_DNS_CONTENT", _('Your content field doesnt have a legit value')); |
53 define("ERR_DNS_HOSTNAME", "Invalid hostname"); |
57 define("ERR_DNS_HOSTNAME", _('Invalid hostname')); |
54 define("ERR_DNS_RECORDTYPE", "Invalid record type! You shouldnt even been able to get that here"); |
58 define("ERR_DNS_RECORDTYPE", _('Invalid record type! You shouldnt even been able to get that here')); |
55 define("ERR_DNS_IPV6", "This is not a valid IPv6 ip."); |
59 define("ERR_DNS_IPV6", _('This is not a valid IPv6 ip.')); |
56 define("ERR_DNS_IPV4", "This is not a valid IPv4 ip."); |
60 define("ERR_DNS_IPV4", _('This is not a valid IPv4 ip.')); |
57 define("ERR_DNS_CNAME", "This is not a valid CNAME. Did you assign an MX or NS record to the record?"); |
61 define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?')); |
58 define("ERR_DNS_NS_CNAME", "You can not point a NS record to a CNAME record. Remove/rename the CNAME record first or take another name."); |
62 define("ERR_DNS_NS_CNAME", _('You can not point a NS record to a CNAME record. Remove/rename the CNAME record first or take another name.')); |
59 define("ERR_DNS_NS_HNAME", "IN NS fields must be a hostnames."); |
63 define("ERR_DNS_NS_HNAME", _('IN NS fields must be a hostnames.')); |
60 define("ERR_DNS_MX_CNAME", "You can not point a MX record to a CNAME record. Remove/rename the CNAME record first or take another name."); |
64 define("ERR_DNS_MX_CNAME", _('You can not point a MX record to a CNAME record. Remove/rename the CNAME record first or take another name.')); |
61 define("ERR_DNS_MX_PRIO", "A prio field should be numeric."); |
65 define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.')); |
62 define("ERR_DNS_SOA_NUMERIC", "One of your SOA data fields is not numeric!"); |
66 define("ERR_DNS_SOA_NUMERIC", _('One of your SOA data fields is not numeric!')); |
63 define("ERR_DNS_SOA_NUMERIC_FIELDS", "You can only have 5 numeric fields"); |
67 define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have 5 numeric fields')); |
64 define("ERR_DNS_SOA_HOSTNAME", "The first part of your SOA record does not contain a valid hostname for a DNS Server"); |
68 define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS Server')); |
65 ?> |
69 ?> |