inc/error.inc.php
changeset 110 455405c757e1
parent 89 61c49e66c9b0
child 111 0a2342a64b83
--- a/inc/error.inc.php	Sat Mar 29 18:01:53 2008 +0000
+++ b/inc/error.inc.php	Sun Mar 30 09:20:38 2008 +0000
@@ -30,6 +30,7 @@
 define("ERR_PERM_VIEW_RECORD", _("You do not have the permission to view this record.")); 
 define("ERR_PERM_DEL_RECORD", _("You do not have the permission to delete this record.")); 
 define("ERR_PERM_ADD_ZONE_MASTER", _("You do not have the permission to add a master zone.")); 
+define("ERR_PERM_ADD_ZONE_SLAVE", _("You do not have the permission to add a slave zone.")); 
 define("ERR_PERM_DEL_ZONE", _("You do not have the permission to delete a zone.")); 
 define("ERR_PERM_DEL_SM", _("You do not have the permission to delete a supermaster.")); 
 define("ERR_PERM_VIEW_ZONE", _("You do not have the permission to view this zone.")); 
@@ -40,45 +41,45 @@
 define("ERR_PERM_DEL_USER", _("You do not have the permission to delete this user.")); 
 
 /* RECORD STUFF */
-define("ERR_RECORD_EMPTY_CONTENT", _('Your content field is empty'));
-define("ERR_RECORD_ACCESS_DENIED", _('Access denied, you do not have access to that record'));
-define("ERR_RECORD_DELETE_TYPE_DENIED", _('You are not allowed to delete %s records'));
+define("ERR_RECORD_EMPTY_CONTENT", _('Your content field is empty.'));
+define("ERR_RECORD_ACCESS_DENIED", _('Access denied, you do not have access to that record.'));
+define("ERR_RECORD_DELETE_TYPE_DENIED", _('You are not allowed to delete %s records.'));
 
 /* DOMAIN STUFF */
-define("ERR_DOMAIN_INVALID", _('This is an invalid zone name'));
+define("ERR_DOMAIN_INVALID", _('This is an invalid zone name.'));
 define("ERR_SM_EXISTS", _('There is already a supermaster with this IP address.')); 
 define("ERR_DOMAIN_EXISTS", _('There is already a zone with this name.')); 
 
 /* USER STUFF */
-define("ERR_USER_EXIST", _('Username exist already, please choose another one'));
-define("ERR_USER_NOT_EXIST", _('User doesnt exist'));
-define("ERR_USER_WRONG_CURRENT_PASS", _('You didnt enter the correct current password'));
-define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match'));
-define("ERR_USER_EDIT", _('Error editting user'));
-define("ERR_PERM_TEMPL_ASSIGNED", _('This template is assigned to at least one user'));
+define("ERR_USER_EXIST", _('Username exist already, please choose another one.'));
+define("ERR_USER_NOT_EXIST", _('User does not exist.'));
+define("ERR_USER_WRONG_CURRENT_PASS", _('You did not enter the correct current password.'));
+define("ERR_USER_MATCH_NEW_PASS", _('The two new password fields do not match.'));
+define("ERR_USER_EDIT", _('Error editting user.'));
+define("ERR_PERM_TEMPL_ASSIGNED", _('This template is assigned to at least one user.'));
 
 /* OTHER */
 define("ERR_INV_INPUT", _('Invalid or unexpected input given.'));  
 define("ERR_INV_ARG", _('Invalid argument(s) given to function %s'));
 define("ERR_INV_ARGC", _('Invalid argument(s) given to function %s %s'));
-define("ERR_UNKNOWN", _('unknown error'));
-define("ERR_INV_EMAIL", _('Enter a valid email address'));
+define("ERR_UNKNOWN", _('Unknown error.'));
+define("ERR_INV_EMAIL", _('Enter a valid email address.'));
 
 /* DNS */
-define("ERR_DNS_CONTENT", _('Your content field doesnt have a legit value'));
-define("ERR_DNS_HOSTNAME", _('Invalid hostname'));
-define("ERR_DNS_RECORDTYPE", _('Invalid record type! You shouldnt even been able to get that here'));
+define("ERR_DNS_CONTENT", _('Your content field doesnt have a legit value.'));
+define("ERR_DNS_HOSTNAME", _('Invalid hostname.'));
+define("ERR_DNS_RECORDTYPE", _('Invalid record type! You should not even been able to get that here.'));
 define("ERR_DNS_IP", _('This is not a valid IPv4 or IPv6 address.')); 
-define("ERR_DNS_IPV6", _('This is not a valid IPv6 ip.'));
-define("ERR_DNS_IPV4", _('This is not a valid IPv4 ip.'));
+define("ERR_DNS_IPV6", _('This is not a valid IPv6 address.'));
+define("ERR_DNS_IPV4", _('This is not a valid IPv4 address.'));
 define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?'));
-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.'));
-define("ERR_DNS_NS_HNAME", _('IN NS fields must be a hostnames.'));
-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.'));
+define("ERR_DNS_NS_CNAME", _('You can not point a NS record to a CNAME record. Remove or rename the CNAME record first or take another name.'));
+define("ERR_DNS_NS_HNAME", _('NS records must be a hostnames.'));
+define("ERR_DNS_MX_CNAME", _('You can not point a MX record to a CNAME record. Remove or rename the CNAME record first or take another name.'));
 define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.'));
-define("ERR_DNS_SOA_NUMERIC", _('One of your SOA data fields is not numeric!'));
-define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have 5 numeric fields'));
-define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS Server'));
+define("ERR_DNS_SOA_NUMERIC", _('One of your SOA data fields is not numeric.'));
+define("ERR_DNS_SOA_NUMERIC_FIELDS", _('You can only have five numeric fields in the SOA record.'));
+define("ERR_DNS_SOA_HOSTNAME", _('The first part of your SOA record does not contain a valid hostname for a DNS server.'));
 
 /* GOOD! */
 define("SUC_ZONE_ADD", _('Zone has been added succesfully.')); 
@@ -89,6 +90,7 @@
 define("SUC_RECORD_UPD", _('The record has been updated succesfully.')); 
 define("SUC_RECORD_DEL", _('The record has been deleted succesfully.')); 
 define("SUC_SM_DEL", _('The supermaster has been deleted succesfully.')); 
+define("SUC_SM_ADD", _('The supermaster has been added succesfully.')); 
 define("SUC_PERM_TEMPL_DEL", _('The permission template has been deleted succesfully.')); 
 
 ?>