Localized Admin:COPPA
authorDan
Sat, 19 Jan 2008 00:32:41 -0500
changeset 356 9f8fca26ddb9
parent 355 d15e4411ef65
child 357 1d0152181585
Localized Admin:COPPA
language/english/admin.json
plugins/SpecialAdmin.php
--- a/language/english/admin.json	Fri Jan 18 22:27:29 2008 -0500
+++ b/language/english/admin.json	Sat Jan 19 00:32:41 2008 -0500
@@ -18,7 +18,7 @@
 var enano_lang = {
   categories: [
     'adm', 'acl', 'adminusers',
-    'acphome', 'acpgc', 'acpup', 'acpft', 'acppl', 'acppm', 'acped', 'acpdb', 'acppg', 'acpum', 'acpug',
+    'acphome', 'acpgc', 'acpup', 'acpft', 'acppl', 'acppm', 'acped', 'acpdb', 'acppg', 'acpum', 'acpug', 'acpcp',
   ],
   strings: {
     meta: {
@@ -35,6 +35,7 @@
       acppg: 'ACP: Page groups',
       acpum: 'ACP: User management',
       acpug: 'ACP: User group management',
+      acpcp: 'ACP: COPPA support',
     },
     adm: {
       cat_general: 'General',
@@ -670,6 +671,18 @@
       msg_name_update_success: 'The group name has been updated.',
       msg_user_added: 'The user "%username%" has been added to this usergroup.',
       err_username_not_exist: '<b>The user "%username%" could not be added.</b><br />This username does not exist.',
+    },
+    acpcp: {
+      heading_main: 'Background information',
+      intro: 'The United States Childrens\' Online Privacy Protection Act (COPPA) was a law passed in 2001 that requires sites oriented towards children under 13 years old or with a significant amount of under-13 children clearly state what information is being collected in a privacy policy and obtain authorization from a parent or legal guardian before allowing children to use the site. Enano provides an easy way to allow you, as the website administrator, to obtain this authorization.',
+      msg_save_success: 'Your changes have been saved.',
+      th_form: 'COPPA support',
+      field_enable_title: 'Enable COPPA support:',
+      field_enable: 'COPPA enabled',
+      field_enable_hint: 'If this is checked, users will be asked if they are under 13 years of age before registering',
+      field_address: 'Your mailing address:',
+      field_address_hint: 'This is the address to which parents will send authorization forms.',
+      
     }
   }
 };
--- a/plugins/SpecialAdmin.php	Fri Jan 18 22:27:29 2008 -0500
+++ b/plugins/SpecialAdmin.php	Sat Jan 19 00:32:41 2008 -0500
@@ -1668,12 +1668,9 @@
     return;
   }
   
-  echo '<h2>Background information</h2>';
+  echo '<h2>' . $lang->get('acpcp_heading_main') . '</h2>';
   echo '<p>
-          The United States Childrens\' Online Privacy Protection Act (COPPA) was a law passed in 2001 that requires sites oriented towards
-          children under 13 years old or with a significant amount of under-13 children clearly state what information is being collected
-          in a privacy policy and obtain authorization from a parent or legal guardian before allowing children to use the site. Enano 
-          provides an easy way to allow you, as the website administrator, to obtain this authorization.
+          ' . $lang->get('acpcp_intro') . '
         </p>';
   
   // Start form
@@ -1687,7 +1684,7 @@
     $address = $_POST['coppa_address']; // RenderMan::preprocess_text($_POST['coppa_address'], true, false);
     setConfig('coppa_address', $address);
     
-    echo '<div class="info-box">Your changes have been saved.</div>';
+    echo '<div class="info-box">' . $lang->get('acpcp_msg_save_success') . '</div>';
   }
   
   echo '<form action="'.makeUrl($paths->nslist['Special'].'Administration', (( isset($_GET['sqldbg'])) ? 'sqldbg&amp;' : '') .'module='.$paths->cpage['module']).'" method="post">';
@@ -1696,24 +1693,24 @@
   echo '<table border="0" cellspacing="1" cellpadding="4">';
   echo '<tr>
           <th colspan="2">
-            COPPA support
+            ' . $lang->get('acpcp_th_form') . '
           </th>
         </tr>';
         
   echo '<tr>
           <td class="row1">
-            Enable COPPA support:
+            ' . $lang->get('acpcp_field_enable_title') . '
           </td>
           <td class="row2">
-            <label><input type="checkbox" name="enable_coppa" ' . ( ( getConfig('enable_coppa') == '1' ) ? 'checked="checked"' : '' ) . ' /> COPPA enabled</label><br />
-            <small>If this is checked, users will be asked if they are under 13 years of age before registering</small>
+            <label><input type="checkbox" name="enable_coppa" ' . ( ( getConfig('enable_coppa') == '1' ) ? 'checked="checked"' : '' ) . ' /> ' . $lang->get('acpcp_field_enable') . '</label><br />
+            <small>' . $lang->get('acpcp_field_enable_hint') . '</small>
           </td>
         </tr>';
         
   echo '<tr>
           <td class="row1">
-            Your mailing address:<br />
-            <small>This is the address to which parents will send authorization forms.</small>
+            ' . $lang->get('acpcp_field_address') . '<br />
+            <small>' . $lang->get('acpcp_field_address_hint') . '</small>
           </td>
           <td class="row2">
             <textarea name="coppa_address" rows="7" cols="40">' . getConfig('coppa_address') . '</textarea>
@@ -1722,7 +1719,7 @@
         
   echo '<tr>
           <th colspan="2" class="subhead">
-            <input type="submit" value="Save changes" />
+            <input type="submit" value="' . $lang->get('etc_save_changes') . '" />
           </th>
         </tr>';