Trim unused i18n data and code

master
Skylar Ittner 5 years ago
parent 2b38c39dda
commit 4076cd3059

@ -31,14 +31,6 @@
"Total": "Total",
"Yes": "Yes",
"No": "No",
"Newsletter": "Newsletter",
"Print": "Print",
"Email and Print": "Email and Print",
"Email+Print": "Email+Print",
"Children": "Children",
"Born": "Born",
"Graduated": "Graduated",
"Okay to use photos?": "Okay to use photos?",
"Adding Person": "Adding Person",
"Editing Person": "Editing {person}",
"Adding camper": "Adding Camper",
@ -49,14 +41,7 @@
"Editing youth": "Editing Youth {person}",
"Delete Person": "Delete Person",
"Recent Payments": "Recent Payments",
"Interests": "Interests",
"Event List": "Event List",
"Popularity": "Popularity",
"Event": "Event",
"Download Reports": "Download Reports",
"Member Directory": "Member Directory",
"Expiring Memberships": "Expiring Memberships",
"Family List": "Family List",
"Office (ODT)": "Office (ODT)",
"Spreadsheet (ODS)": "Spreadsheet (ODS)",
"HTML": "HTML",
@ -75,11 +60,5 @@
"Free": "Free",
"Expires": "Expires",
"Choose...": "Choose...",
"Mark as paid": "Mark as paid",
"This payment is a membership renewal (automatically add one year to the family's membership)": "This payment is a membership renewal (automatically add one year to the family's membership)",
"All members expired or expiring within a month.": "All members expired or expiring within a month.",
"All the data from the member directory in a spreadsheet.": "All the data from the member directory in a spreadsheet.",
"A formatted and up-to-date HACHE member directory.": "A formatted and up-to-date HACHE member directory.",
"Member wishes to be remain private (excluded from member directory)": "Member wishes to be remain private (excluded from member directory)",
"Private": "Private"
"Mark as paid": "Mark as paid"
}

@ -5,12 +5,6 @@
"Family deleted.": "Family deleted.",
"Are you sure you want to delete this person?": "Are you sure you want to delete this person?",
"This action cannot be undone!": "This action cannot be undone!",
"To remove a child, delete the contents of the Name box.": "To remove a child, delete the contents of the Name box.",
"No interests selected.": "No interests selected.",
"Events updated.": "Events updated.",
"You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.": "You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.",
"Payment saved.": "Payment saved.",
"Only showing {x}s.": "Only showing {x}s.",
"This family wishes to remain private. Do not share this information, even with other HACHE members.": "This family wishes to remain private. Do not share this information, even with other HACHE members.",
"That email address is already in use with another family.": "That email address is already in use with another family."
"Only showing {x}s.": "Only showing {x}s."
}

@ -2,11 +2,6 @@
"Home": "Home",
"People": "People",
"Families": "Families",
"Members": "Members",
"View Family": "View Family",
"Family": "Family",
"Delete Family": "Delete Family",
"Events": "Events",
"Reports": "Reports",
"Payments": "Payments",
"Add Payment": "Add Payment",

@ -1,89 +0,0 @@
<?php
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
require_once __DIR__ . "/../required.php";
$childinfo = ['name' => '', 'month' => 1, 'year' => date('Y', strtotime('now - 10 years')), 'graduated' => false];
if (isset($childid) && $database->has('people', ['personid' => $childid])) {
$randomid = $childid;
$chinfo = $database->get('people', ['name', 'birthday', 'graduated'], ['personid' => $childid]);
$childinfo['name'] = $chinfo['name'];
$childinfo['graduated'] = $chinfo['graduated'] == true;
$childinfo['month'] = date('m', strtotime($chinfo['birthday']));
$childinfo['year'] = date('Y', strtotime($chinfo['birthday']));
} else {
do {
$randomid = mt_rand(0, 9999999999);
} while ($database->has('people', ['personid' => $randomid]));
}
?>
<div class="list-group-item">
<input type="hidden" name="child[ids][]" value="<?php echo $randomid; ?>" />
<div class="row">
<div class="col-12 col-sm-4">
<div class="form-group">
<label>Name:</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-user-graduate"></i></span>
</div>
<input type="text" name="child[name][<?php echo $randomid; ?>]" class="form-control" value="<?php echo htmlspecialchars($childinfo['name']); ?>" />
</div>
</div>
</div>
<div class="col-12 col-sm-3">
<div class="form-group">
<label>Birth month:</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-calendar"></i></span>
</div>
<select name="child[month][<?php echo $randomid; ?>]" class="form-control" value="<?php echo $childinfo['month']; ?>" >
<?php
for ($i = 1; $i <= 12; $i++) {
$selected = "";
if ($childinfo['month'] == $i) {
$selected = " selected";
}
echo "<option value=$i$selected>" . date("F", mktime(0, 0, 0, $i, 2)) . "</option>\n";
}
?>
</select>
</div>
</div>
</div>
<div class="col-12 col-sm-3">
<div class="form-group">
<label>Birth year:</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-calendar-alt"></i></span>
</div>
<input type="number" name="child[year][<?php echo $randomid; ?>]" class="form-control" min="1980" max="<?php echo date('Y'); ?>" value="<?php echo $childinfo['year']; ?>"/>
</div>
</div>
</div>
<div class="col-12 col-sm-2">
<div class="form-group">
<label>&nbsp;</label>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="1" name="child[graduate][<?php echo $randomid; ?>]"<?php
if ($childinfo['graduated']) {
echo " checked";
}
?>>
<label class="form-check-label mt-1">Graduated</label>
</div>
</div>
</div>
</div>
</div>
Loading…
Cancel
Save