@@ -389,8 +389,11 @@ |
||
389 | 389 | <a href="<?php echo $individual->getHtmlUrl(); ?>#stories"> |
390 | 390 | <?php echo $individual->getFullName(); ?> |
391 | 391 | </a> |
392 | - <?php else: ?> |
|
393 | - <?php echo $story->xref; ?> |
|
392 | + <?php else { |
|
393 | + : ?> |
|
394 | + <?php echo $story->xref; |
|
395 | +} |
|
396 | +?> |
|
394 | 397 | <?php endif; ?> |
395 | 398 | </td> |
396 | 399 | <td> |
@@ -50,21 +50,21 @@ |
||
50 | 50 | */ |
51 | 51 | public function modAction($mod_action) { |
52 | 52 | switch ($mod_action) { |
53 | - case 'admin_edit': |
|
54 | - $this->edit(); |
|
55 | - break; |
|
56 | - case 'admin_delete': |
|
57 | - $this->delete(); |
|
58 | - $this->config(); |
|
59 | - break; |
|
60 | - case 'admin_config': |
|
61 | - $this->config(); |
|
62 | - break; |
|
63 | - case 'show_list': |
|
64 | - $this->showList(); |
|
65 | - break; |
|
66 | - default: |
|
67 | - http_response_code(404); |
|
53 | + case 'admin_edit': |
|
54 | + $this->edit(); |
|
55 | + break; |
|
56 | + case 'admin_delete': |
|
57 | + $this->delete(); |
|
58 | + $this->config(); |
|
59 | + break; |
|
60 | + case 'admin_config': |
|
61 | + $this->config(); |
|
62 | + break; |
|
63 | + case 'show_list': |
|
64 | + $this->showList(); |
|
65 | + break; |
|
66 | + default: |
|
67 | + http_response_code(404); |
|
68 | 68 | } |
69 | 69 | } |
70 | 70 |
@@ -67,14 +67,14 @@ |
||
67 | 67 | if (strlen($match[1]) > strlen($match[2])) { |
68 | 68 | $match[2] = substr($match[1], 0, strlen($match[1]) - strlen($match[2])) . $match[2]; |
69 | 69 | } |
70 | - $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
70 | + $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}"); |
|
71 | 71 | $view = 'year'; |
72 | 72 | } else { |
73 | 73 | // advanced-year "decade/century wildcard" |
74 | 74 | if (preg_match('/^(\d+)(\?+)$/', $year, $match)) { |
75 | 75 | $y1 = $match[1] . str_replace('?', '0', $match[2]); |
76 | 76 | $y2 = $match[1] . str_replace('?', '9', $match[2]); |
77 | - $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}"); |
|
77 | + $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}"); |
|
78 | 78 | $view = 'year'; |
79 | 79 | } else { |
80 | 80 | if ($year < 0) { |
@@ -118,15 +118,15 @@ discard block |
||
118 | 118 | $controller->setPageTitle(I18N::translate('Anniversary calendar')); |
119 | 119 | |
120 | 120 | switch ($view) { |
121 | -case 'day': |
|
122 | - $controller->setPageTitle(I18N::translate('On this day…') . ' ' . $ged_date->display(false)); |
|
123 | - break; |
|
124 | -case 'month': |
|
125 | - $controller->setPageTitle(I18N::translate('In this month…') . ' ' . $ged_date->display(false, '%F %Y')); |
|
126 | - break; |
|
127 | -case 'year': |
|
128 | - $controller->setPageTitle(I18N::translate('In this year…') . ' ' . $ged_date->display(false, '%Y')); |
|
129 | - break; |
|
121 | + case 'day': |
|
122 | + $controller->setPageTitle(I18N::translate('On this day…') . ' ' . $ged_date->display(false)); |
|
123 | + break; |
|
124 | + case 'month': |
|
125 | + $controller->setPageTitle(I18N::translate('In this month…') . ' ' . $ged_date->display(false, '%F %Y')); |
|
126 | + break; |
|
127 | + case 'year': |
|
128 | + $controller->setPageTitle(I18N::translate('In this year…') . ' ' . $ged_date->display(false, '%Y')); |
|
129 | + break; |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | $controller->pageHeader(); |
@@ -329,38 +329,38 @@ discard block |
||
329 | 329 | $found_facts = array(); |
330 | 330 | |
331 | 331 | switch ($view) { |
332 | -case 'day': |
|
333 | - $found_facts = apply_filter(FunctionsDb::getAnniversaryEvents($cal_date->minJD, $filterev, $WT_TREE), $filterof, $filtersx); |
|
334 | - break; |
|
335 | -case 'month': |
|
336 | - $cal_date->d = 0; |
|
337 | - $cal_date->setJdFromYmd(); |
|
338 | - // Make a separate list for each day. Unspecified/invalid days go in day 0. |
|
339 | - for ($d = 0; $d <= $days_in_month; ++$d) { |
|
340 | - $found_facts[$d] = array(); |
|
341 | - } |
|
342 | - // Fetch events for each day |
|
343 | - for ($jd = $cal_date->minJD; $jd <= $cal_date->maxJD; ++$jd) { |
|
344 | - foreach (apply_filter(FunctionsDb::getAnniversaryEvents($jd, $filterev, $WT_TREE), $filterof, $filtersx) as $fact) { |
|
345 | - $tmp = $fact->getDate()->minimumDate(); |
|
346 | - if ($tmp->d >= 1 && $tmp->d <= $tmp->daysInMonth()) { |
|
347 | - // If the day is valid (for its own calendar), display it in the |
|
348 | - // anniversary day (for the display calendar). |
|
349 | - $found_facts[$jd - $cal_date->minJD + 1][] = $fact; |
|
350 | - } else { |
|
351 | - // Otherwise, display it in the "Day not set" box. |
|
352 | - $found_facts[0][] = $fact; |
|
332 | + case 'day': |
|
333 | + $found_facts = apply_filter(FunctionsDb::getAnniversaryEvents($cal_date->minJD, $filterev, $WT_TREE), $filterof, $filtersx); |
|
334 | + break; |
|
335 | + case 'month': |
|
336 | + $cal_date->d = 0; |
|
337 | + $cal_date->setJdFromYmd(); |
|
338 | + // Make a separate list for each day. Unspecified/invalid days go in day 0. |
|
339 | + for ($d = 0; $d <= $days_in_month; ++$d) { |
|
340 | + $found_facts[$d] = array(); |
|
341 | + } |
|
342 | + // Fetch events for each day |
|
343 | + for ($jd = $cal_date->minJD; $jd <= $cal_date->maxJD; ++$jd) { |
|
344 | + foreach (apply_filter(FunctionsDb::getAnniversaryEvents($jd, $filterev, $WT_TREE), $filterof, $filtersx) as $fact) { |
|
345 | + $tmp = $fact->getDate()->minimumDate(); |
|
346 | + if ($tmp->d >= 1 && $tmp->d <= $tmp->daysInMonth()) { |
|
347 | + // If the day is valid (for its own calendar), display it in the |
|
348 | + // anniversary day (for the display calendar). |
|
349 | + $found_facts[$jd - $cal_date->minJD + 1][] = $fact; |
|
350 | + } else { |
|
351 | + // Otherwise, display it in the "Day not set" box. |
|
352 | + $found_facts[0][] = $fact; |
|
353 | + } |
|
353 | 354 | } |
354 | 355 | } |
355 | - } |
|
356 | - break; |
|
357 | -case 'year': |
|
358 | - $cal_date->m = 0; |
|
359 | - $cal_date->setJdFromYmd(); |
|
360 | - $found_facts = apply_filter(FunctionsDb::getCalendarEvents($ged_date->minimumJulianDay(), $ged_date->maximumJulianDay(), $filterev, $WT_TREE), $filterof, $filtersx); |
|
361 | - // Eliminate duplicates (e.g. BET JUL 1900 AND SEP 1900 will appear twice in 1900) |
|
362 | - $found_facts = array_unique($found_facts); |
|
363 | - break; |
|
356 | + break; |
|
357 | + case 'year': |
|
358 | + $cal_date->m = 0; |
|
359 | + $cal_date->setJdFromYmd(); |
|
360 | + $found_facts = apply_filter(FunctionsDb::getCalendarEvents($ged_date->minimumJulianDay(), $ged_date->maximumJulianDay(), $filterev, $WT_TREE), $filterof, $filtersx); |
|
361 | + // Eliminate duplicates (e.g. BET JUL 1900 AND SEP 1900 will appear twice in 1900) |
|
362 | + $found_facts = array_unique($found_facts); |
|
363 | + break; |
|
364 | 364 | } |
365 | 365 | |
366 | 366 | // Group the facts by family/individual |
@@ -369,39 +369,39 @@ discard block |
||
369 | 369 | $cal_facts = array(); |
370 | 370 | |
371 | 371 | switch ($view) { |
372 | -case 'year': |
|
373 | -case 'day': |
|
374 | - foreach ($found_facts as $fact) { |
|
375 | - $record = $fact->getParent(); |
|
376 | - $xref = $record->getXref(); |
|
377 | - if ($record instanceof Individual) { |
|
378 | - if (empty($indis[$xref])) { |
|
379 | - $indis[$xref] = calendar_fact_text($fact, true); |
|
380 | - } else { |
|
381 | - $indis[$xref] .= '<br>' . calendar_fact_text($fact, true); |
|
382 | - } |
|
383 | - } elseif ($record instanceof Family) { |
|
384 | - if (empty($indis[$xref])) { |
|
385 | - $fams[$xref] = calendar_fact_text($fact, true); |
|
386 | - } else { |
|
387 | - $fams[$xref] .= '<br>' . calendar_fact_text($fact, true); |
|
372 | + case 'year': |
|
373 | + case 'day': |
|
374 | + foreach ($found_facts as $fact) { |
|
375 | + $record = $fact->getParent(); |
|
376 | + $xref = $record->getXref(); |
|
377 | + if ($record instanceof Individual) { |
|
378 | + if (empty($indis[$xref])) { |
|
379 | + $indis[$xref] = calendar_fact_text($fact, true); |
|
380 | + } else { |
|
381 | + $indis[$xref] .= '<br>' . calendar_fact_text($fact, true); |
|
382 | + } |
|
383 | + } elseif ($record instanceof Family) { |
|
384 | + if (empty($indis[$xref])) { |
|
385 | + $fams[$xref] = calendar_fact_text($fact, true); |
|
386 | + } else { |
|
387 | + $fams[$xref] .= '<br>' . calendar_fact_text($fact, true); |
|
388 | + } |
|
388 | 389 | } |
389 | 390 | } |
390 | - } |
|
391 | - break; |
|
392 | -case 'month': |
|
393 | - foreach ($found_facts as $d => $facts) { |
|
394 | - $cal_facts[$d] = array(); |
|
395 | - foreach ($facts as $fact) { |
|
396 | - $xref = $fact->getParent()->getXref(); |
|
397 | - if (empty($cal_facts[$d][$xref])) { |
|
398 | - $cal_facts[$d][$xref] = calendar_fact_text($fact, false); |
|
399 | - } else { |
|
400 | - $cal_facts[$d][$xref] .= '<br>' . calendar_fact_text($fact, false); |
|
391 | + break; |
|
392 | + case 'month': |
|
393 | + foreach ($found_facts as $d => $facts) { |
|
394 | + $cal_facts[$d] = array(); |
|
395 | + foreach ($facts as $fact) { |
|
396 | + $xref = $fact->getParent()->getXref(); |
|
397 | + if (empty($cal_facts[$d][$xref])) { |
|
398 | + $cal_facts[$d][$xref] = calendar_fact_text($fact, false); |
|
399 | + } else { |
|
400 | + $cal_facts[$d][$xref] .= '<br>' . calendar_fact_text($fact, false); |
|
401 | + } |
|
401 | 402 | } |
402 | 403 | } |
403 | - } |
|
404 | - break; |
|
404 | + break; |
|
405 | 405 | } |
406 | 406 | |
407 | 407 | switch ($view) { |
@@ -498,26 +498,26 @@ discard block |
||
498 | 498 | // Show a converted date |
499 | 499 | foreach (explode('_and_', $CALENDAR_FORMAT) as $convcal) { |
500 | 500 | switch ($convcal) { |
501 | - case 'french': |
|
502 | - $alt_date = new FrenchDate($cal_date->minJD + $d - 1); |
|
503 | - break; |
|
504 | - case 'gregorian': |
|
505 | - $alt_date = new GregorianDate($cal_date->minJD + $d - 1); |
|
506 | - break; |
|
507 | - case 'jewish': |
|
508 | - $alt_date = new JewishDate($cal_date->minJD + $d - 1); |
|
509 | - break; |
|
510 | - case 'julian': |
|
511 | - $alt_date = new JulianDate($cal_date->minJD + $d - 1); |
|
512 | - break; |
|
513 | - case 'hijri': |
|
514 | - $alt_date = new HijriDate($cal_date->minJD + $d - 1); |
|
515 | - break; |
|
516 | - case 'jalali': |
|
517 | - $alt_date = new JalaliDate($cal_date->minJD + $d - 1); |
|
518 | - break; |
|
519 | - default: |
|
520 | - break 2; |
|
501 | + case 'french': |
|
502 | + $alt_date = new FrenchDate($cal_date->minJD + $d - 1); |
|
503 | + break; |
|
504 | + case 'gregorian': |
|
505 | + $alt_date = new GregorianDate($cal_date->minJD + $d - 1); |
|
506 | + break; |
|
507 | + case 'jewish': |
|
508 | + $alt_date = new JewishDate($cal_date->minJD + $d - 1); |
|
509 | + break; |
|
510 | + case 'julian': |
|
511 | + $alt_date = new JulianDate($cal_date->minJD + $d - 1); |
|
512 | + break; |
|
513 | + case 'hijri': |
|
514 | + $alt_date = new HijriDate($cal_date->minJD + $d - 1); |
|
515 | + break; |
|
516 | + case 'jalali': |
|
517 | + $alt_date = new JalaliDate($cal_date->minJD + $d - 1); |
|
518 | + break; |
|
519 | + default: |
|
520 | + break 2; |
|
521 | 521 | } |
522 | 522 | if (get_class($alt_date) !== get_class($cal_date) && $alt_date->inValidRange()) { |
523 | 523 | echo '<span class="rtl_cal_day">' . $alt_date->format("%j %M") . '</span>'; |
@@ -627,17 +627,17 @@ discard block |
||
627 | 627 | $html .= $tag1 . '<a href="' . $tmp->getHtmlUrl() . '">' . $tmp->getFullName() . '</a> '; |
628 | 628 | if ($show_sex_symbols && $tmp instanceof Individual) { |
629 | 629 | switch ($tmp->getSex()) { |
630 | - case 'M': |
|
631 | - $html .= '<i class="icon-sex_m_9x9" title="' . I18N::translate('Male') . '"></i>'; |
|
632 | - ++$males; |
|
633 | - break; |
|
634 | - case 'F': |
|
635 | - $html .= '<i class="icon-sex_f_9x9" title="' . I18N::translate('Female') . '"></i>'; |
|
636 | - ++$females; |
|
637 | - break; |
|
638 | - default: |
|
639 | - $html .= '<i class="icon-sex_u_9x9" title="' . I18N::translateContext('unknown gender', 'Unknown') . '"></i>'; |
|
640 | - break; |
|
630 | + case 'M': |
|
631 | + $html .= '<i class="icon-sex_m_9x9" title="' . I18N::translate('Male') . '"></i>'; |
|
632 | + ++$males; |
|
633 | + break; |
|
634 | + case 'F': |
|
635 | + $html .= '<i class="icon-sex_f_9x9" title="' . I18N::translate('Female') . '"></i>'; |
|
636 | + ++$females; |
|
637 | + break; |
|
638 | + default: |
|
639 | + $html .= '<i class="icon-sex_u_9x9" title="' . I18N::translateContext('unknown gender', 'Unknown') . '"></i>'; |
|
640 | + break; |
|
641 | 641 | } |
642 | 642 | } |
643 | 643 | $html .= '<div class="indent">' . $facts . '</div>' . $tag2; |
@@ -110,10 +110,13 @@ |
||
110 | 110 | </option> |
111 | 111 | </select> |
112 | 112 | </td> |
113 | - <?php else: ?> |
|
113 | + <?php else { |
|
114 | + : ?> |
|
114 | 115 | <td class="descriptionbox wrap"></td> |
115 | 116 | <td class="optionbox wrap"></td> |
116 | - <?php endif; ?> |
|
117 | + <?php endif; |
|
118 | +} |
|
119 | +?> |
|
117 | 120 | </tr> |
118 | 121 | <tr> |
119 | 122 | <td class="descriptionbox wrap"> |
@@ -154,10 +154,22 @@ discard block |
||
154 | 154 | <input type="text" id="value<?php echo $i; ?>" name="values[<?php echo $i; ?>]" value="<?php echo Filter::escapeHtml($controller->getValue($i)); ?>"<?php echo substr($controller->getField($i), -4) == 'PLAC' ? 'data-autocomplete-type="PLAC"' : ''; ?>> |
155 | 155 | <?php if (preg_match("/^NAME:/", $currentFieldSearch) > 0) { ?> |
156 | 156 | <select name="fields[<?php echo $i; ?>]"> |
157 | - <option value="<?php echo $currentField; ?>:EXACT" <?php if (preg_match("/:EXACT$/", $currentFieldSearch) > 0) echo 'selected'; ?>><?php echo I18N::translate('Exact'); ?></option> |
|
158 | - <option value="<?php echo $currentField; ?>:BEGINS" <?php if (preg_match("/:BEGINS$/", $currentFieldSearch) > 0) echo 'selected'; ?>><?php echo I18N::translate('Begins with'); ?></option> |
|
159 | - <option value="<?php echo $currentField; ?>:CONTAINS" <?php if (preg_match("/:CONTAINS$/", $currentFieldSearch) > 0) echo 'selected'; ?>><?php echo I18N::translate('Contains'); ?></option> |
|
160 | - <option value="<?php echo $currentField; ?>:SDX" <?php if (preg_match("/:SDX$/", $currentFieldSearch) > 0) echo 'selected'; ?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
157 | + <option value="<?php echo $currentField; ?>:EXACT" <?php if (preg_match("/:EXACT$/", $currentFieldSearch) > 0) { |
|
158 | + echo 'selected'; |
|
159 | +} |
|
160 | +?>><?php echo I18N::translate('Exact'); ?></option> |
|
161 | + <option value="<?php echo $currentField; ?>:BEGINS" <?php if (preg_match("/:BEGINS$/", $currentFieldSearch) > 0) { |
|
162 | + echo 'selected'; |
|
163 | +} |
|
164 | +?>><?php echo I18N::translate('Begins with'); ?></option> |
|
165 | + <option value="<?php echo $currentField; ?>:CONTAINS" <?php if (preg_match("/:CONTAINS$/", $currentFieldSearch) > 0) { |
|
166 | + echo 'selected'; |
|
167 | +} |
|
168 | +?>><?php echo I18N::translate('Contains'); ?></option> |
|
169 | + <option value="<?php echo $currentField; ?>:SDX" <?php if (preg_match("/:SDX$/", $currentFieldSearch) > 0) { |
|
170 | + echo 'selected'; |
|
171 | +} |
|
172 | +?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
161 | 173 | </select> |
162 | 174 | <?php } else { ?> |
163 | 175 | <input type="hidden" name="fields[<?php echo $i; ?>]" value="<?php echo $controller->getField($i); ?>"> |
@@ -166,9 +178,18 @@ discard block |
||
166 | 178 | ?> |
167 | 179 | <select name="plusminus[<?php echo $i; ?>]"> |
168 | 180 | <option value=""><?php echo I18N::translate('Exact date'); ?></option> |
169 | - <option value="2" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i] == 2) echo 'selected'; ?>><?php echo I18N::plural('±%s year', '±%s years', 2, I18N::number(2)); ?></option> |
|
170 | - <option value="5" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i] == 5) echo 'selected'; ?>><?php echo I18N::plural('±%s year', '±%s years', 5, I18N::number(5)); ?></option> |
|
171 | - <option value="10" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i] == 10) echo 'selected'; ?>><?php echo I18N::plural('±%s year', '±%s years', 10, I18N::number(10)); ?></option> |
|
181 | + <option value="2" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i] == 2) { |
|
182 | + echo 'selected'; |
|
183 | +} |
|
184 | +?>><?php echo I18N::plural('±%s year', '±%s years', 2, I18N::number(2)); ?></option> |
|
185 | + <option value="5" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i] == 5) { |
|
186 | + echo 'selected'; |
|
187 | +} |
|
188 | +?>><?php echo I18N::plural('±%s year', '±%s years', 5, I18N::number(5)); ?></option> |
|
189 | + <option value="10" <?php if (!empty($controller->plusminus[$i]) && $controller->plusminus[$i] == 10) { |
|
190 | + echo 'selected'; |
|
191 | +} |
|
192 | +?>><?php echo I18N::plural('±%s year', '±%s years', 10, I18N::number(10)); ?></option> |
|
172 | 193 | </select> |
173 | 194 | <?php } ?> |
174 | 195 | </td> |
@@ -216,10 +237,22 @@ discard block |
||
216 | 237 | <td class="list_value"> |
217 | 238 | <input type="text" name="values[<?php echo $j; ?>]" value="<?php echo $controller->getValue($controller->getIndex('FAMC:HUSB:NAME:GIVN:' . $fatherGivnOption)); ?>"> |
218 | 239 | <select name="fields[<?php echo $j; ?>]"> |
219 | - <option value="FAMC:HUSB:NAME:GIVN:EXACT" <?php if ($fatherGivnOption == 'EXACT') echo 'selected'; ?>><?php echo I18N::translate('Exact'); ?></option> |
|
220 | - <option value="FAMC:HUSB:NAME:GIVN:BEGINS" <?php if ($fatherGivnOption == 'BEGINS') echo 'selected'; ?>><?php echo I18N::translate('Begins with'); ?></option> |
|
221 | - <option value="FAMC:HUSB:NAME:GIVN:CONTAINS" <?php if ($fatherGivnOption == 'CONTAINS') echo 'selected'; ?>><?php echo I18N::translate('Contains'); ?></option> |
|
222 | - <option value="FAMC:HUSB:NAME:GIVN:SDX" <?php if ($fatherGivnOption == 'SDX') echo 'selected'; ?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
240 | + <option value="FAMC:HUSB:NAME:GIVN:EXACT" <?php if ($fatherGivnOption == 'EXACT') { |
|
241 | + echo 'selected'; |
|
242 | +} |
|
243 | +?>><?php echo I18N::translate('Exact'); ?></option> |
|
244 | + <option value="FAMC:HUSB:NAME:GIVN:BEGINS" <?php if ($fatherGivnOption == 'BEGINS') { |
|
245 | + echo 'selected'; |
|
246 | +} |
|
247 | +?>><?php echo I18N::translate('Begins with'); ?></option> |
|
248 | + <option value="FAMC:HUSB:NAME:GIVN:CONTAINS" <?php if ($fatherGivnOption == 'CONTAINS') { |
|
249 | + echo 'selected'; |
|
250 | +} |
|
251 | +?>><?php echo I18N::translate('Contains'); ?></option> |
|
252 | + <option value="FAMC:HUSB:NAME:GIVN:SDX" <?php if ($fatherGivnOption == 'SDX') { |
|
253 | + echo 'selected'; |
|
254 | +} |
|
255 | +?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
223 | 256 | </select> |
224 | 257 | </td> |
225 | 258 | </tr> |
@@ -231,10 +264,22 @@ discard block |
||
231 | 264 | <td class="list_value"> |
232 | 265 | <input type="text" name="values[<?php echo $j; ?>]" value="<?php echo $controller->getValue($controller->getIndex('FAMC:HUSB:NAME:SURN:' . $fatherSurnOption)); ?>"> |
233 | 266 | <select name="fields[<?php echo $j; ?>]"> |
234 | - <option value="FAMC:HUSB:NAME:SURN:EXACT" <?php if ($fatherSurnOption == 'EXACT') echo 'selected'; ?>><?php echo I18N::translate('Exact'); ?></option> |
|
235 | - <option value="FAMC:HUSB:NAME:SURN:BEGINS" <?php if ($fatherSurnOption == 'BEGINS') echo 'selected'; ?>><?php echo I18N::translate('Begins with'); ?></option> |
|
236 | - <option value="FAMC:HUSB:NAME:SURN:CONTAINS" <?php if ($fatherSurnOption == 'CONTAINS') echo 'selected'; ?>><?php echo I18N::translate('Contains'); ?></option> |
|
237 | - <option value="FAMC:HUSB:NAME:SURN:SDX" <?php if ($fatherSurnOption == 'SDX') echo 'selected'; ?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
267 | + <option value="FAMC:HUSB:NAME:SURN:EXACT" <?php if ($fatherSurnOption == 'EXACT') { |
|
268 | + echo 'selected'; |
|
269 | +} |
|
270 | +?>><?php echo I18N::translate('Exact'); ?></option> |
|
271 | + <option value="FAMC:HUSB:NAME:SURN:BEGINS" <?php if ($fatherSurnOption == 'BEGINS') { |
|
272 | + echo 'selected'; |
|
273 | +} |
|
274 | +?>><?php echo I18N::translate('Begins with'); ?></option> |
|
275 | + <option value="FAMC:HUSB:NAME:SURN:CONTAINS" <?php if ($fatherSurnOption == 'CONTAINS') { |
|
276 | + echo 'selected'; |
|
277 | +} |
|
278 | +?>><?php echo I18N::translate('Contains'); ?></option> |
|
279 | + <option value="FAMC:HUSB:NAME:SURN:SDX" <?php if ($fatherSurnOption == 'SDX') { |
|
280 | + echo 'selected'; |
|
281 | +} |
|
282 | +?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
238 | 283 | </select> |
239 | 284 | </td> |
240 | 285 | </tr> |
@@ -252,10 +297,22 @@ discard block |
||
252 | 297 | <td class="list_value"> |
253 | 298 | <input type="text" name="values[<?php echo $j; ?>]" value="<?php echo $controller->getValue($controller->getIndex('FAMC:WIFE:NAME:GIVN:' . $motherGivnOption)); ?>"> |
254 | 299 | <select name="fields[<?php echo $j; ?>]"> |
255 | - <option value="FAMC:WIFE:NAME:GIVN:EXACT" <?php if ($motherGivnOption == 'EXACT') echo 'selected'; ?>><?php echo I18N::translate('Exact'); ?></option> |
|
256 | - <option value="FAMC:WIFE:NAME:GIVN:BEGINS" <?php if ($motherGivnOption == 'BEGINS') echo 'selected'; ?>><?php echo I18N::translate('Begins with'); ?></option> |
|
257 | - <option value="FAMC:WIFE:NAME:GIVN:CONTAINS" <?php if ($motherGivnOption == 'CONTAINS') echo 'selected'; ?>><?php echo I18N::translate('Contains'); ?></option> |
|
258 | - <option value="FAMC:WIFE:NAME:GIVN:SDX" <?php if ($motherGivnOption == 'SDX') echo 'selected'; ?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
300 | + <option value="FAMC:WIFE:NAME:GIVN:EXACT" <?php if ($motherGivnOption == 'EXACT') { |
|
301 | + echo 'selected'; |
|
302 | +} |
|
303 | +?>><?php echo I18N::translate('Exact'); ?></option> |
|
304 | + <option value="FAMC:WIFE:NAME:GIVN:BEGINS" <?php if ($motherGivnOption == 'BEGINS') { |
|
305 | + echo 'selected'; |
|
306 | +} |
|
307 | +?>><?php echo I18N::translate('Begins with'); ?></option> |
|
308 | + <option value="FAMC:WIFE:NAME:GIVN:CONTAINS" <?php if ($motherGivnOption == 'CONTAINS') { |
|
309 | + echo 'selected'; |
|
310 | +} |
|
311 | +?>><?php echo I18N::translate('Contains'); ?></option> |
|
312 | + <option value="FAMC:WIFE:NAME:GIVN:SDX" <?php if ($motherGivnOption == 'SDX') { |
|
313 | + echo 'selected'; |
|
314 | +} |
|
315 | +?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
259 | 316 | </select> |
260 | 317 | </td> |
261 | 318 | <?php $j++; ?> |
@@ -267,10 +324,22 @@ discard block |
||
267 | 324 | <td class="list_value"> |
268 | 325 | <input type="text" name="values[<?php echo $j; ?>]" value="<?php echo $controller->getValue($controller->getIndex('FAMC:WIFE:NAME:SURN:' . $motherSurnOption)); ?>"> |
269 | 326 | <select name="fields[<?php echo $j; ?>]"> |
270 | - <option value="FAMC:WIFE:NAME:SURN:EXACT" <?php if ($motherSurnOption == 'EXACT') echo 'selected'; ?>><?php echo I18N::translate('Exact'); ?></option> |
|
271 | - <option value="FAMC:WIFE:NAME:SURN:BEGINS" <?php if ($motherSurnOption == 'BEGINS') echo 'selected'; ?>><?php echo I18N::translate('Begins with'); ?></option> |
|
272 | - <option value="FAMC:WIFE:NAME:SURN:CONTAINS" <?php if ($motherSurnOption == 'CONTAINS') 'selected'; ?>><?php echo I18N::translate('Contains'); ?></option> |
|
273 | - <option value="FAMC:WIFE:NAME:SURN:SDX" <?php if ($motherSurnOption == 'SDX') echo 'selected'; ?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
327 | + <option value="FAMC:WIFE:NAME:SURN:EXACT" <?php if ($motherSurnOption == 'EXACT') { |
|
328 | + echo 'selected'; |
|
329 | +} |
|
330 | +?>><?php echo I18N::translate('Exact'); ?></option> |
|
331 | + <option value="FAMC:WIFE:NAME:SURN:BEGINS" <?php if ($motherSurnOption == 'BEGINS') { |
|
332 | + echo 'selected'; |
|
333 | +} |
|
334 | +?>><?php echo I18N::translate('Begins with'); ?></option> |
|
335 | + <option value="FAMC:WIFE:NAME:SURN:CONTAINS" <?php if ($motherSurnOption == 'CONTAINS') { |
|
336 | + 'selected'; |
|
337 | +} |
|
338 | +?>><?php echo I18N::translate('Contains'); ?></option> |
|
339 | + <option value="FAMC:WIFE:NAME:SURN:SDX" <?php if ($motherSurnOption == 'SDX') { |
|
340 | + echo 'selected'; |
|
341 | +} |
|
342 | +?>><?php echo I18N::translate('Sounds like'); ?></option> |
|
274 | 343 | </select> |
275 | 344 | </td> |
276 | 345 | <?php $j++; ?> |
@@ -185,18 +185,18 @@ |
||
185 | 185 | $searchField = $controller->getField($k); |
186 | 186 | $searchOption = substr($searchField, 20); // Assume we have something like "FAMC:HUSB:NAME:GIVN:foo" |
187 | 187 | switch (substr($searchField, 0, 20)) { |
188 | - case 'FAMC:HUSB:NAME:GIVN:': |
|
189 | - $fatherGivnOption = $searchOption; |
|
190 | - break; |
|
191 | - case 'FAMC:HUSB:NAME:SURN:': |
|
192 | - $fatherSurnOption = $searchOption; |
|
193 | - break; |
|
194 | - case 'FAMC:WIFE:NAME:GIVN:': |
|
195 | - $motherGivnOption = $searchOption; |
|
196 | - break; |
|
197 | - case 'FAMC:WIFE:NAME:SURN:': |
|
198 | - $motherSurnOption = $searchOption; |
|
199 | - break; |
|
188 | + case 'FAMC:HUSB:NAME:GIVN:': |
|
189 | + $fatherGivnOption = $searchOption; |
|
190 | + break; |
|
191 | + case 'FAMC:HUSB:NAME:SURN:': |
|
192 | + $fatherSurnOption = $searchOption; |
|
193 | + break; |
|
194 | + case 'FAMC:WIFE:NAME:GIVN:': |
|
195 | + $motherGivnOption = $searchOption; |
|
196 | + break; |
|
197 | + case 'FAMC:WIFE:NAME:SURN:': |
|
198 | + $motherSurnOption = $searchOption; |
|
199 | + break; |
|
200 | 200 | } |
201 | 201 | } |
202 | 202 | ?> |
@@ -236,12 +236,15 @@ discard block |
||
236 | 236 | <?php // Reset - otherwise we might "undo all changes", which refreshes the ?> |
237 | 237 | <?php // page, which makes them all again! ?> |
238 | 238 | <script>reset_reload();</script> |
239 | - <?php else: ?> |
|
239 | + <?php else { |
|
240 | + : ?> |
|
240 | 241 | <hr> |
241 | 242 | <div id="batch_update2" class="col-sm-12"> |
242 | 243 | <?php if ($this->curr_xref): ?> |
243 | 244 | <?php // Create an object, so we can get the latest version of the name. ?> |
244 | - <?php $this->record = GedcomRecord::getInstance($this->curr_xref, $WT_TREE); ?> |
|
245 | + <?php $this->record = GedcomRecord::getInstance($this->curr_xref, $WT_TREE); |
|
246 | +} |
|
247 | +?> |
|
245 | 248 | <div class="form-group"> |
246 | 249 | <?php echo self::createSubmitButton(I18N::translate('previous'), $this->prev_xref) ?> |
247 | 250 | <?php echo self::createSubmitButton(I18N::translate('next'), $this->next_xref) ?> |
@@ -253,8 +256,11 @@ discard block |
||
253 | 256 | <div class="form-group"> |
254 | 257 | <?php echo implode(' ', $this->PLUGIN->getActionButtons($this->curr_xref, $this->record)); ?> |
255 | 258 | </div> |
256 | - <?php else: ?> |
|
257 | - <div class="alert alert-info"><?php echo I18N::translate('Nothing found.'); ?></div> |
|
259 | + <?php else { |
|
260 | + : ?> |
|
261 | + <div class="alert alert-info"><?php echo I18N::translate('Nothing found.'); |
|
262 | +} |
|
263 | +?></div> |
|
258 | 264 | <?php endif; ?> |
259 | 265 | </div> |
260 | 266 | <?php endif; ?> |
@@ -94,13 +94,13 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function modAction($mod_action) { |
96 | 96 | switch ($mod_action) { |
97 | - case 'admin_batch_update': |
|
98 | - echo $this->main(); |
|
99 | - break; |
|
97 | + case 'admin_batch_update': |
|
98 | + echo $this->main(); |
|
99 | + break; |
|
100 | 100 | |
101 | - default: |
|
102 | - http_response_code(404); |
|
103 | - break; |
|
101 | + default: |
|
102 | + http_response_code(404); |
|
103 | + break; |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 | |
@@ -125,36 +125,36 @@ discard block |
||
125 | 125 | $this->getAllXrefs(); |
126 | 126 | |
127 | 127 | switch ($this->action) { |
128 | - case 'update': |
|
129 | - $record = self::getLatestRecord($this->xref, $this->all_xrefs[$this->xref]); |
|
130 | - if ($this->PLUGIN->doesRecordNeedUpdate($this->xref, $record)) { |
|
131 | - $newrecord = $this->PLUGIN->updateRecord($this->xref, $record); |
|
132 | - if ($newrecord != $record) { |
|
133 | - if ($newrecord) { |
|
134 | - GedcomRecord::getInstance($this->xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); |
|
135 | - } else { |
|
136 | - GedcomRecord::getInstance($this->xref, $WT_TREE)->deleteRecord(); |
|
137 | - } |
|
138 | - } |
|
139 | - } |
|
140 | - $this->xref = $this->findNextXref($this->xref); |
|
141 | - break; |
|
142 | - case 'update_all': |
|
143 | - foreach ($this->all_xrefs as $xref => $type) { |
|
144 | - $record = self::getLatestRecord($xref, $type); |
|
145 | - if ($this->PLUGIN->doesRecordNeedUpdate($xref, $record)) { |
|
146 | - $newrecord = $this->PLUGIN->updateRecord($xref, $record); |
|
128 | + case 'update': |
|
129 | + $record = self::getLatestRecord($this->xref, $this->all_xrefs[$this->xref]); |
|
130 | + if ($this->PLUGIN->doesRecordNeedUpdate($this->xref, $record)) { |
|
131 | + $newrecord = $this->PLUGIN->updateRecord($this->xref, $record); |
|
147 | 132 | if ($newrecord != $record) { |
148 | 133 | if ($newrecord) { |
149 | - GedcomRecord::getInstance($xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); |
|
134 | + GedcomRecord::getInstance($this->xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); |
|
150 | 135 | } else { |
151 | - GedcomRecord::getInstance($xref, $WT_TREE)->deleteRecord(); |
|
136 | + GedcomRecord::getInstance($this->xref, $WT_TREE)->deleteRecord(); |
|
152 | 137 | } |
153 | 138 | } |
154 | 139 | } |
155 | - } |
|
156 | - $this->xref = ''; |
|
157 | - break; |
|
140 | + $this->xref = $this->findNextXref($this->xref); |
|
141 | + break; |
|
142 | + case 'update_all': |
|
143 | + foreach ($this->all_xrefs as $xref => $type) { |
|
144 | + $record = self::getLatestRecord($xref, $type); |
|
145 | + if ($this->PLUGIN->doesRecordNeedUpdate($xref, $record)) { |
|
146 | + $newrecord = $this->PLUGIN->updateRecord($xref, $record); |
|
147 | + if ($newrecord != $record) { |
|
148 | + if ($newrecord) { |
|
149 | + GedcomRecord::getInstance($xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); |
|
150 | + } else { |
|
151 | + GedcomRecord::getInstance($xref, $WT_TREE)->deleteRecord(); |
|
152 | + } |
|
153 | + } |
|
154 | + } |
|
155 | + } |
|
156 | + $this->xref = ''; |
|
157 | + break; |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | // Make sure that our requested record really does need updating. |
@@ -313,28 +313,28 @@ discard block |
||
313 | 313 | $vars = array(); |
314 | 314 | foreach ($this->PLUGIN->getRecordTypesToUpdate() as $type) { |
315 | 315 | switch ($type) { |
316 | - case 'INDI': |
|
317 | - $sql[] = "SELECT i_id, 'INDI' FROM `##individuals` WHERE i_file=?"; |
|
318 | - $vars[] = $WT_TREE->getTreeId(); |
|
319 | - break; |
|
320 | - case 'FAM': |
|
321 | - $sql[] = "SELECT f_id, 'FAM' FROM `##families` WHERE f_file=?"; |
|
322 | - $vars[] = $WT_TREE->getTreeId(); |
|
323 | - break; |
|
324 | - case 'SOUR': |
|
325 | - $sql[] = "SELECT s_id, 'SOUR' FROM `##sources` WHERE s_file=?"; |
|
326 | - $vars[] = $WT_TREE->getTreeId(); |
|
327 | - break; |
|
328 | - case 'OBJE': |
|
329 | - $sql[] = "SELECT m_id, 'OBJE' FROM `##media` WHERE m_file=?"; |
|
330 | - $vars[] = $WT_TREE->getTreeId(); |
|
331 | - break; |
|
332 | - default: |
|
333 | - $sql[] = "SELECT o_id, ? FROM `##other` WHERE o_type=? AND o_file=?"; |
|
334 | - $vars[] = $type; |
|
335 | - $vars[] = $type; |
|
336 | - $vars[] = $WT_TREE->getTreeId(); |
|
337 | - break; |
|
316 | + case 'INDI': |
|
317 | + $sql[] = "SELECT i_id, 'INDI' FROM `##individuals` WHERE i_file=?"; |
|
318 | + $vars[] = $WT_TREE->getTreeId(); |
|
319 | + break; |
|
320 | + case 'FAM': |
|
321 | + $sql[] = "SELECT f_id, 'FAM' FROM `##families` WHERE f_file=?"; |
|
322 | + $vars[] = $WT_TREE->getTreeId(); |
|
323 | + break; |
|
324 | + case 'SOUR': |
|
325 | + $sql[] = "SELECT s_id, 'SOUR' FROM `##sources` WHERE s_file=?"; |
|
326 | + $vars[] = $WT_TREE->getTreeId(); |
|
327 | + break; |
|
328 | + case 'OBJE': |
|
329 | + $sql[] = "SELECT m_id, 'OBJE' FROM `##media` WHERE m_file=?"; |
|
330 | + $vars[] = $WT_TREE->getTreeId(); |
|
331 | + break; |
|
332 | + default: |
|
333 | + $sql[] = "SELECT o_id, ? FROM `##other` WHERE o_type=? AND o_file=?"; |
|
334 | + $vars[] = $type; |
|
335 | + $vars[] = $type; |
|
336 | + $vars[] = $WT_TREE->getTreeId(); |
|
337 | + break; |
|
338 | 338 | } |
339 | 339 | } |
340 | 340 | $this->all_xrefs = |
@@ -411,20 +411,20 @@ discard block |
||
411 | 411 | global $WT_TREE; |
412 | 412 | |
413 | 413 | switch ($type) { |
414 | - case 'INDI': |
|
415 | - return Individual::getInstance($xref, $WT_TREE)->getGedcom(); |
|
416 | - case 'FAM': |
|
417 | - return Family::getInstance($xref, $WT_TREE)->getGedcom(); |
|
418 | - case 'SOUR': |
|
419 | - return Source::getInstance($xref, $WT_TREE)->getGedcom(); |
|
420 | - case 'REPO': |
|
421 | - return Repository::getInstance($xref, $WT_TREE)->getGedcom(); |
|
422 | - case 'OBJE': |
|
423 | - return Media::getInstance($xref, $WT_TREE)->getGedcom(); |
|
424 | - case 'NOTE': |
|
425 | - return Note::getInstance($xref, $WT_TREE)->getGedcom(); |
|
426 | - default: |
|
427 | - return GedcomRecord::getInstance($xref, $WT_TREE)->getGedcom(); |
|
414 | + case 'INDI': |
|
415 | + return Individual::getInstance($xref, $WT_TREE)->getGedcom(); |
|
416 | + case 'FAM': |
|
417 | + return Family::getInstance($xref, $WT_TREE)->getGedcom(); |
|
418 | + case 'SOUR': |
|
419 | + return Source::getInstance($xref, $WT_TREE)->getGedcom(); |
|
420 | + case 'REPO': |
|
421 | + return Repository::getInstance($xref, $WT_TREE)->getGedcom(); |
|
422 | + case 'OBJE': |
|
423 | + return Media::getInstance($xref, $WT_TREE)->getGedcom(); |
|
424 | + case 'NOTE': |
|
425 | + return Note::getInstance($xref, $WT_TREE)->getGedcom(); |
|
426 | + default: |
|
427 | + return GedcomRecord::getInstance($xref, $WT_TREE)->getGedcom(); |
|
428 | 428 | } |
429 | 429 | } |
430 | 430 |
@@ -611,8 +611,11 @@ discard block |
||
611 | 611 | <a href="admin_site_upgrade.php" class="error"> |
612 | 612 | <?php echo /* I18N: %s is a version number */ I18N::translate('Upgrade to webtrees %s.', Filter::escapeHtml($latest_version)); ?> |
613 | 613 | </a> |
614 | - <?php else: ?> |
|
615 | - <?php echo I18N::translate('This is the latest version of webtrees. No upgrade is available.'); ?> |
|
614 | + <?php else { |
|
615 | + : ?> |
|
616 | + <?php echo I18N::translate('This is the latest version of webtrees. No upgrade is available.'); |
|
617 | +} |
|
618 | +?> |
|
616 | 619 | <?php endif; ?> |
617 | 620 | </p> |
618 | 621 | <?php endif; ?> |
@@ -774,9 +777,12 @@ discard block |
||
774 | 777 | <?php echo I18N::number($changes[$tree->getTreeId()]); ?> |
775 | 778 | <span class="sr-only"><?php echo I18N::translate('Pending changes'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
776 | 779 | </a> |
777 | - <?php else: ?> |
|
780 | + <?php else { |
|
781 | + : ?> |
|
778 | 782 | - |
779 | - <?php endif; ?> |
|
783 | + <?php endif; |
|
784 | +} |
|
785 | +?> |
|
780 | 786 | </td> |
781 | 787 | <td class="text-right flip"> |
782 | 788 | <?php if ($individuals[$tree->getTreeId()]): ?> |
@@ -784,9 +790,12 @@ discard block |
||
784 | 790 | <?php echo I18N::number($individuals[$tree->getTreeId()]); ?> |
785 | 791 | <span class="sr-only"><?php echo I18N::translate('Individuals'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
786 | 792 | </a> |
787 | - <?php else: ?> |
|
793 | + <?php else { |
|
794 | + : ?> |
|
788 | 795 | - |
789 | - <?php endif; ?> |
|
796 | + <?php endif; |
|
797 | +} |
|
798 | +?> |
|
790 | 799 | </td> |
791 | 800 | <td class="text-right flip"> |
792 | 801 | <?php if ($families[$tree->getTreeId()]): ?> |
@@ -794,9 +803,12 @@ discard block |
||
794 | 803 | <?php echo I18N::number($families[$tree->getTreeId()]); ?> |
795 | 804 | <span class="sr-only"><?php echo I18N::translate('Families'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
796 | 805 | </a> |
797 | - <?php else: ?> |
|
806 | + <?php else { |
|
807 | + : ?> |
|
798 | 808 | - |
799 | - <?php endif; ?> |
|
809 | + <?php endif; |
|
810 | +} |
|
811 | +?> |
|
800 | 812 | </td> |
801 | 813 | <td class="text-right flip"> |
802 | 814 | <?php if ($sources[$tree->getTreeId()]): ?> |
@@ -804,9 +816,12 @@ discard block |
||
804 | 816 | <?php echo I18N::number($sources[$tree->getTreeId()]); ?> |
805 | 817 | <span class="sr-only"><?php echo I18N::translate('Sources'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
806 | 818 | </a> |
807 | - <?php else: ?> |
|
819 | + <?php else { |
|
820 | + : ?> |
|
808 | 821 | - |
809 | - <?php endif; ?> |
|
822 | + <?php endif; |
|
823 | +} |
|
824 | +?> |
|
810 | 825 | </td> |
811 | 826 | <td class="text-right flip"> |
812 | 827 | <?php if ($repositories[$tree->getTreeId()]): ?> |
@@ -814,9 +829,12 @@ discard block |
||
814 | 829 | <?php echo I18N::number($repositories[$tree->getTreeId()]); ?> |
815 | 830 | <span class="sr-only"><?php echo I18N::translate('Repositories'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
816 | 831 | </a> |
817 | - <?php else: ?> |
|
832 | + <?php else { |
|
833 | + : ?> |
|
818 | 834 | - |
819 | - <?php endif; ?> |
|
835 | + <?php endif; |
|
836 | +} |
|
837 | +?> |
|
820 | 838 | </td> |
821 | 839 | <td class="text-right flip"> |
822 | 840 | <?php if ($media[$tree->getTreeId()]): ?> |
@@ -824,9 +842,12 @@ discard block |
||
824 | 842 | <?php echo I18N::number($media[$tree->getTreeId()]); ?> |
825 | 843 | <span class="sr-only"><?php echo I18N::translate('Media objects'); ?> <?php echo $tree->getTitleHtml(); ?></span> |
826 | 844 | </a> |
827 | - <?php else: ?> |
|
845 | + <?php else { |
|
846 | + : ?> |
|
828 | 847 | - |
829 | - <?php endif; ?> |
|
848 | + <?php endif; |
|
849 | +} |
|
850 | +?> |
|
830 | 851 | </td> |
831 | 852 | </tr> |
832 | 853 | <?php endforeach; ?> |
@@ -176,9 +176,12 @@ discard block |
||
176 | 176 | <a href="<?php echo $module->getConfigLink() ?>"> |
177 | 177 | <?php echo $module->getTitle() ?> <i class="fa fa-cogs"></i> |
178 | 178 | </a> |
179 | - <?php else: ?> |
|
179 | + <?php else { |
|
180 | + : ?> |
|
180 | 181 | <?php echo $module->getTitle() ?> |
181 | - <?php endif; ?> |
|
182 | + <?php endif; |
|
183 | +} |
|
184 | +?> |
|
182 | 185 | <?php if (!in_array($module->getName(), Module::getCoreModuleNames())): ?> |
183 | 186 | <br> |
184 | 187 | <?php endif; ?> |
@@ -202,23 +205,32 @@ discard block |
||
202 | 205 | <td class="text-center text-muted hidden-xs"> |
203 | 206 | <?php if ($module instanceof ModuleMenuInterface): ?> |
204 | 207 | <i class="fa fa-list-ul" title="<?php echo I18N::translate('Menu') ?>"></i> |
205 | - <?php else: ?> |
|
208 | + <?php else { |
|
209 | + : ?> |
|
206 | 210 | - |
207 | - <?php endif; ?> |
|
211 | + <?php endif; |
|
212 | +} |
|
213 | +?> |
|
208 | 214 | </td> |
209 | 215 | <td class="text-center text-muted hidden-xs"> |
210 | 216 | <?php if ($module instanceof ModuleTabInterface): ?> |
211 | 217 | <i class="fa fa-folder" title="<?php echo I18N::translate('Tab') ?>"></i> |
212 | - <?php else: ?> |
|
218 | + <?php else { |
|
219 | + : ?> |
|
213 | 220 | - |
214 | - <?php endif; ?> |
|
221 | + <?php endif; |
|
222 | +} |
|
223 | +?> |
|
215 | 224 | </td> |
216 | 225 | <td class="text-center text-muted hidden-xs"> |
217 | 226 | <?php if ($module instanceof ModuleSidebarInterface): ?> |
218 | 227 | <i class="fa fa-th-large" title="<?php echo I18N::translate('Sidebar') ?>"></i> |
219 | - <?php else: ?> |
|
228 | + <?php else { |
|
229 | + : ?> |
|
220 | 230 | - |
221 | - <?php endif; ?> |
|
231 | + <?php endif; |
|
232 | +} |
|
233 | +?> |
|
222 | 234 | </td> |
223 | 235 | <td class="text-center text-muted hidden-xs"> |
224 | 236 | <?php if ($module instanceof ModuleBlockInterface): ?> |
@@ -228,30 +240,42 @@ discard block |
||
228 | 240 | <?php if ($module->isUserBlock()): ?> |
229 | 241 | <i class="fa fa-tree" title="<?php echo I18N::translate('Home page') ?>"></i> |
230 | 242 | <?php endif; ?> |
231 | - <?php else: ?> |
|
243 | + <?php else { |
|
244 | + : ?> |
|
232 | 245 | - |
233 | - <?php endif; ?> |
|
246 | + <?php endif; |
|
247 | +} |
|
248 | +?> |
|
234 | 249 | </td> |
235 | 250 | <td class="text-center text-muted hidden-xs"> |
236 | 251 | <?php if ($module instanceof ModuleChartInterface): ?> |
237 | 252 | <i class="fa fa-share-alt" title="<?php echo I18N::translate('Chart') ?>"></i> |
238 | - <?php else: ?> |
|
253 | + <?php else { |
|
254 | + : ?> |
|
239 | 255 | - |
240 | - <?php endif; ?> |
|
256 | + <?php endif; |
|
257 | +} |
|
258 | +?> |
|
241 | 259 | </td> |
242 | 260 | <td class="text-center text-muted hidden-xs"> |
243 | 261 | <?php if ($module instanceof ModuleReportInterface): ?> |
244 | 262 | <i class="fa fa-file" title="<?php echo I18N::translate('Report') ?>"></i> |
245 | - <?php else: ?> |
|
263 | + <?php else { |
|
264 | + : ?> |
|
246 | 265 | - |
247 | - <?php endif; ?> |
|
266 | + <?php endif; |
|
267 | +} |
|
268 | +?> |
|
248 | 269 | </td> |
249 | 270 | <td class="text-center text-muted hidden"> |
250 | 271 | <?php if ($module instanceof ModuleThemeInterface): ?> |
251 | 272 | <i class="fa fa-check" title="<?php echo I18N::translate('Theme') ?>"></i> |
252 | - <?php else: ?> |
|
273 | + <?php else { |
|
274 | + : ?> |
|
253 | 275 | - |
254 | - <?php endif; ?> |
|
276 | + <?php endif; |
|
277 | +} |
|
278 | +?> |
|
255 | 279 | </td> |
256 | 280 | </tr> |
257 | 281 | <?php endforeach; ?> |
@@ -2743,7 +2743,7 @@ |
||
2743 | 2743 | $tags = explode(':', $tag); |
2744 | 2744 | $origlevel = $level; |
2745 | 2745 | if ($level == 0) { |
2746 | - $level = $gedrec{0} + 1; |
|
2746 | + $level = $gedrec{0} +1; |
|
2747 | 2747 | } |
2748 | 2748 | |
2749 | 2749 | $subrec = $gedrec; |
@@ -934,14 +934,14 @@ discard block |
||
934 | 934 | $tags = preg_split('/[: ]/', $tag); |
935 | 935 | $value = $this->getGedcomValue($tag, $level, $this->gedrec); |
936 | 936 | switch (end($tags)) { |
937 | - case 'DATE': |
|
938 | - $tmp = new Date($value); |
|
939 | - $value = $tmp->display(); |
|
940 | - break; |
|
941 | - case 'PLAC': |
|
942 | - $tmp = new Place($value, $WT_TREE); |
|
943 | - $value = $tmp->getShortName(); |
|
944 | - break; |
|
937 | + case 'DATE': |
|
938 | + $tmp = new Date($value); |
|
939 | + $value = $tmp->display(); |
|
940 | + break; |
|
941 | + case 'PLAC': |
|
942 | + $tmp = new Place($value, $WT_TREE); |
|
943 | + $value = $tmp->getShortName(); |
|
944 | + break; |
|
945 | 945 | } |
946 | 946 | if ($useBreak == "1") { |
947 | 947 | // Insert <br> when multiple dates exist. |
@@ -1335,22 +1335,22 @@ discard block |
||
1335 | 1335 | // Arithmetic functions |
1336 | 1336 | if (preg_match("/(\d+)\s*([\-\+\*\/])\s*(\d+)/", $value, $match)) { |
1337 | 1337 | switch ($match[2]) { |
1338 | - case "+": |
|
1339 | - $t = $match[1] + $match[3]; |
|
1340 | - $value = preg_replace("/" . $match[1] . "\s*([\-\+\*\/])\s*" . $match[3] . "/", $t, $value); |
|
1341 | - break; |
|
1342 | - case "-": |
|
1343 | - $t = $match[1] - $match[3]; |
|
1344 | - $value = preg_replace("/" . $match[1] . "\s*([\-\+\*\/])\s*" . $match[3] . "/", $t, $value); |
|
1345 | - break; |
|
1346 | - case "*": |
|
1347 | - $t = $match[1] * $match[3]; |
|
1348 | - $value = preg_replace("/" . $match[1] . "\s*([\-\+\*\/])\s*" . $match[3] . "/", $t, $value); |
|
1349 | - break; |
|
1350 | - case "/": |
|
1351 | - $t = $match[1] / $match[3]; |
|
1352 | - $value = preg_replace("/" . $match[1] . "\s*([\-\+\*\/])\s*" . $match[3] . "/", $t, $value); |
|
1353 | - break; |
|
1338 | + case "+": |
|
1339 | + $t = $match[1] + $match[3]; |
|
1340 | + $value = preg_replace("/" . $match[1] . "\s*([\-\+\*\/])\s*" . $match[3] . "/", $t, $value); |
|
1341 | + break; |
|
1342 | + case "-": |
|
1343 | + $t = $match[1] - $match[3]; |
|
1344 | + $value = preg_replace("/" . $match[1] . "\s*([\-\+\*\/])\s*" . $match[3] . "/", $t, $value); |
|
1345 | + break; |
|
1346 | + case "*": |
|
1347 | + $t = $match[1] * $match[3]; |
|
1348 | + $value = preg_replace("/" . $match[1] . "\s*([\-\+\*\/])\s*" . $match[3] . "/", $t, $value); |
|
1349 | + break; |
|
1350 | + case "/": |
|
1351 | + $t = $match[1] / $match[3]; |
|
1352 | + $value = preg_replace("/" . $match[1] . "\s*([\-\+\*\/])\s*" . $match[3] . "/", $t, $value); |
|
1353 | + break; |
|
1354 | 1354 | } |
1355 | 1355 | } |
1356 | 1356 | if (strpos($value, "@") !== false) { |
@@ -1859,180 +1859,180 @@ discard block |
||
1859 | 1859 | } |
1860 | 1860 | // Some filters/sorts can be applied using SQL, while others require PHP |
1861 | 1861 | switch ($listname) { |
1862 | - case "pending": |
|
1863 | - $rows = Database::prepare( |
|
1864 | - "SELECT xref, CASE new_gedcom WHEN '' THEN old_gedcom ELSE new_gedcom END AS gedcom" . |
|
1865 | - " FROM `##change`" . " WHERE (xref, change_id) IN (" . |
|
1866 | - " SELECT xref, MAX(change_id)" . |
|
1867 | - " FROM `##change`" . |
|
1868 | - " WHERE status = 'pending' AND gedcom_id = :tree_id" . |
|
1869 | - " GROUP BY xref" . |
|
1870 | - " )" |
|
1871 | - )->execute(array( |
|
1872 | - 'tree_id' => $WT_TREE->getTreeId(), |
|
1873 | - ))->fetchAll(); |
|
1874 | - $this->list = array(); |
|
1875 | - foreach ($rows as $row) { |
|
1876 | - $this->list[] = GedcomRecord::getInstance($row->xref, $WT_TREE, $row->gedcom); |
|
1877 | - } |
|
1878 | - break; |
|
1879 | - case 'individual': |
|
1880 | - $sql_select = "SELECT i_id AS xref, i_gedcom AS gedcom FROM `##individuals` "; |
|
1881 | - $sql_join = ""; |
|
1882 | - $sql_where = " WHERE i_file = :tree_id"; |
|
1883 | - $sql_order_by = ""; |
|
1884 | - $sql_params = array('tree_id' => $WT_TREE->getTreeId()); |
|
1885 | - foreach ($attrs as $attr => $value) { |
|
1886 | - if (strpos($attr, 'filter') === 0 && $value) { |
|
1887 | - $value = $this->substituteVars($value, false); |
|
1888 | - // Convert the various filters into SQL |
|
1889 | - if (preg_match('/^(\w+):DATE (LTE|GTE) (.+)$/', $value, $match)) { |
|
1890 | - $sql_join .= " JOIN `##dates` AS {$attr} ON ({$attr}.d_file=i_file AND {$attr}.d_gid=i_id)"; |
|
1891 | - $sql_where .= " AND {$attr}.d_fact = :{$attr}fact"; |
|
1892 | - $sql_params[$attr . 'fact'] = $match[1]; |
|
1893 | - $date = new Date($match[3]); |
|
1894 | - if ($match[2] == "LTE") { |
|
1895 | - $sql_where .= " AND {$attr}.d_julianday2 <= :{$attr}date"; |
|
1896 | - $sql_params[$attr . 'date'] = $date->maximumJulianDay(); |
|
1897 | - } else { |
|
1898 | - $sql_where .= " AND {$attr}.d_julianday1 >= :{$attr}date"; |
|
1899 | - $sql_params[$attr . 'date'] = $date->minimumJulianDay(); |
|
1900 | - } |
|
1901 | - if ($sortby == $match[1]) { |
|
1902 | - $sortby = ""; |
|
1903 | - $sql_order_by .= ($sql_order_by ? ", " : " ORDER BY ") . "{$attr}.d_julianday1"; |
|
1904 | - } |
|
1905 | - unset($attrs[$attr]); // This filter has been fully processed |
|
1906 | - } elseif (preg_match('/^NAME CONTAINS (.*)$/', $value, $match)) { |
|
1907 | - // Do nothing, unless you have to |
|
1908 | - if ($match[1] != '' || $sortby == 'NAME') { |
|
1909 | - $sql_join .= " JOIN `##name` AS {$attr} ON (n_file=i_file AND n_id=i_id)"; |
|
1910 | - // Search the DB only if there is any name supplied |
|
1911 | - if ($match[1] != "") { |
|
1912 | - $names = explode(" ", $match[1]); |
|
1913 | - foreach ($names as $n => $name) { |
|
1914 | - $sql_where .= " AND {$attr}.n_full LIKE CONCAT('%', :{$attr}name{$n}, '%')"; |
|
1915 | - $sql_params[$attr . 'name' . $n] = $name; |
|
1916 | - } |
|
1862 | + case "pending": |
|
1863 | + $rows = Database::prepare( |
|
1864 | + "SELECT xref, CASE new_gedcom WHEN '' THEN old_gedcom ELSE new_gedcom END AS gedcom" . |
|
1865 | + " FROM `##change`" . " WHERE (xref, change_id) IN (" . |
|
1866 | + " SELECT xref, MAX(change_id)" . |
|
1867 | + " FROM `##change`" . |
|
1868 | + " WHERE status = 'pending' AND gedcom_id = :tree_id" . |
|
1869 | + " GROUP BY xref" . |
|
1870 | + " )" |
|
1871 | + )->execute(array( |
|
1872 | + 'tree_id' => $WT_TREE->getTreeId(), |
|
1873 | + ))->fetchAll(); |
|
1874 | + $this->list = array(); |
|
1875 | + foreach ($rows as $row) { |
|
1876 | + $this->list[] = GedcomRecord::getInstance($row->xref, $WT_TREE, $row->gedcom); |
|
1877 | + } |
|
1878 | + break; |
|
1879 | + case 'individual': |
|
1880 | + $sql_select = "SELECT i_id AS xref, i_gedcom AS gedcom FROM `##individuals` "; |
|
1881 | + $sql_join = ""; |
|
1882 | + $sql_where = " WHERE i_file = :tree_id"; |
|
1883 | + $sql_order_by = ""; |
|
1884 | + $sql_params = array('tree_id' => $WT_TREE->getTreeId()); |
|
1885 | + foreach ($attrs as $attr => $value) { |
|
1886 | + if (strpos($attr, 'filter') === 0 && $value) { |
|
1887 | + $value = $this->substituteVars($value, false); |
|
1888 | + // Convert the various filters into SQL |
|
1889 | + if (preg_match('/^(\w+):DATE (LTE|GTE) (.+)$/', $value, $match)) { |
|
1890 | + $sql_join .= " JOIN `##dates` AS {$attr} ON ({$attr}.d_file=i_file AND {$attr}.d_gid=i_id)"; |
|
1891 | + $sql_where .= " AND {$attr}.d_fact = :{$attr}fact"; |
|
1892 | + $sql_params[$attr . 'fact'] = $match[1]; |
|
1893 | + $date = new Date($match[3]); |
|
1894 | + if ($match[2] == "LTE") { |
|
1895 | + $sql_where .= " AND {$attr}.d_julianday2 <= :{$attr}date"; |
|
1896 | + $sql_params[$attr . 'date'] = $date->maximumJulianDay(); |
|
1897 | + } else { |
|
1898 | + $sql_where .= " AND {$attr}.d_julianday1 >= :{$attr}date"; |
|
1899 | + $sql_params[$attr . 'date'] = $date->minimumJulianDay(); |
|
1917 | 1900 | } |
1918 | - // Let the DB do the name sorting even when no name was entered |
|
1919 | - if ($sortby == "NAME") { |
|
1901 | + if ($sortby == $match[1]) { |
|
1920 | 1902 | $sortby = ""; |
1921 | - $sql_order_by .= ($sql_order_by ? ", " : " ORDER BY ") . "{$attr}.n_sort"; |
|
1903 | + $sql_order_by .= ($sql_order_by ? ", " : " ORDER BY ") . "{$attr}.d_julianday1"; |
|
1922 | 1904 | } |
1905 | + unset($attrs[$attr]); // This filter has been fully processed |
|
1906 | + } elseif (preg_match('/^NAME CONTAINS (.*)$/', $value, $match)) { |
|
1907 | + // Do nothing, unless you have to |
|
1908 | + if ($match[1] != '' || $sortby == 'NAME') { |
|
1909 | + $sql_join .= " JOIN `##name` AS {$attr} ON (n_file=i_file AND n_id=i_id)"; |
|
1910 | + // Search the DB only if there is any name supplied |
|
1911 | + if ($match[1] != "") { |
|
1912 | + $names = explode(" ", $match[1]); |
|
1913 | + foreach ($names as $n => $name) { |
|
1914 | + $sql_where .= " AND {$attr}.n_full LIKE CONCAT('%', :{$attr}name{$n}, '%')"; |
|
1915 | + $sql_params[$attr . 'name' . $n] = $name; |
|
1916 | + } |
|
1917 | + } |
|
1918 | + // Let the DB do the name sorting even when no name was entered |
|
1919 | + if ($sortby == "NAME") { |
|
1920 | + $sortby = ""; |
|
1921 | + $sql_order_by .= ($sql_order_by ? ", " : " ORDER BY ") . "{$attr}.n_sort"; |
|
1922 | + } |
|
1923 | + } |
|
1924 | + unset($attrs[$attr]); // This filter has been fully processed |
|
1925 | + } elseif (preg_match('/^REGEXP \/(.+)\//', $value, $match)) { |
|
1926 | + $sql_where .= " AND i_gedcom REGEXP :{$attr}gedcom"; |
|
1927 | + // PDO helpfully escapes backslashes for us, preventing us from matching "\n1 FACT" |
|
1928 | + $sql_params[$attr . 'gedcom'] = str_replace('\n', "\n", $match[1]); |
|
1929 | + unset($attrs[$attr]); // This filter has been fully processed |
|
1930 | + } elseif (preg_match('/^(?:\w+):PLAC CONTAINS (.+)$/', $value, $match)) { |
|
1931 | + $sql_join .= " JOIN `##places` AS {$attr}a ON ({$attr}a.p_file = i_file)"; |
|
1932 | + $sql_join .= " JOIN `##placelinks` AS {$attr}b ON ({$attr}a.p_file = {$attr}b.pl_file AND {$attr}b.pl_p_id = {$attr}a.p_id AND {$attr}b.pl_gid = i_id)"; |
|
1933 | + $sql_where .= " AND {$attr}a.p_place LIKE CONCAT('%', :{$attr}place, '%')"; |
|
1934 | + $sql_params[$attr . 'place'] = $match[1]; |
|
1935 | + // Don't unset this filter. This is just initial filtering |
|
1936 | + } elseif (preg_match('/^(\w*):*(\w*) CONTAINS (.+)$/', $value, $match)) { |
|
1937 | + $sql_where .= " AND i_gedcom LIKE CONCAT('%', :{$attr}contains1, '%', :{$attr}contains2, '%', :{$attr}contains3, '%')"; |
|
1938 | + $sql_params[$attr . 'contains1'] = $match[1]; |
|
1939 | + $sql_params[$attr . 'contains2'] = $match[2]; |
|
1940 | + $sql_params[$attr . 'contains3'] = $match[3]; |
|
1941 | + // Don't unset this filter. This is just initial filtering |
|
1923 | 1942 | } |
1924 | - unset($attrs[$attr]); // This filter has been fully processed |
|
1925 | - } elseif (preg_match('/^REGEXP \/(.+)\//', $value, $match)) { |
|
1926 | - $sql_where .= " AND i_gedcom REGEXP :{$attr}gedcom"; |
|
1927 | - // PDO helpfully escapes backslashes for us, preventing us from matching "\n1 FACT" |
|
1928 | - $sql_params[$attr . 'gedcom'] = str_replace('\n', "\n", $match[1]); |
|
1929 | - unset($attrs[$attr]); // This filter has been fully processed |
|
1930 | - } elseif (preg_match('/^(?:\w+):PLAC CONTAINS (.+)$/', $value, $match)) { |
|
1931 | - $sql_join .= " JOIN `##places` AS {$attr}a ON ({$attr}a.p_file = i_file)"; |
|
1932 | - $sql_join .= " JOIN `##placelinks` AS {$attr}b ON ({$attr}a.p_file = {$attr}b.pl_file AND {$attr}b.pl_p_id = {$attr}a.p_id AND {$attr}b.pl_gid = i_id)"; |
|
1933 | - $sql_where .= " AND {$attr}a.p_place LIKE CONCAT('%', :{$attr}place, '%')"; |
|
1934 | - $sql_params[$attr . 'place'] = $match[1]; |
|
1935 | - // Don't unset this filter. This is just initial filtering |
|
1936 | - } elseif (preg_match('/^(\w*):*(\w*) CONTAINS (.+)$/', $value, $match)) { |
|
1937 | - $sql_where .= " AND i_gedcom LIKE CONCAT('%', :{$attr}contains1, '%', :{$attr}contains2, '%', :{$attr}contains3, '%')"; |
|
1938 | - $sql_params[$attr . 'contains1'] = $match[1]; |
|
1939 | - $sql_params[$attr . 'contains2'] = $match[2]; |
|
1940 | - $sql_params[$attr . 'contains3'] = $match[3]; |
|
1941 | - // Don't unset this filter. This is just initial filtering |
|
1942 | 1943 | } |
1943 | 1944 | } |
1944 | - } |
|
1945 | 1945 | |
1946 | - $this->list = array(); |
|
1947 | - $rows = Database::prepare( |
|
1948 | - $sql_select . $sql_join . $sql_where . $sql_order_by |
|
1949 | - )->execute($sql_params)->fetchAll(); |
|
1950 | - |
|
1951 | - foreach ($rows as $row) { |
|
1952 | - $this->list[$row->xref] = Individual::getInstance($row->xref, $WT_TREE, $row->gedcom); |
|
1953 | - } |
|
1954 | - break; |
|
1955 | - |
|
1956 | - case 'family': |
|
1957 | - $sql_select = "SELECT f_id AS xref, f_gedcom AS gedcom FROM `##families`"; |
|
1958 | - $sql_join = ""; |
|
1959 | - $sql_where = " WHERE f_file = :tree_id"; |
|
1960 | - $sql_order_by = ""; |
|
1961 | - $sql_params = array('tree_id' => $WT_TREE->getTreeId()); |
|
1962 | - foreach ($attrs as $attr => $value) { |
|
1963 | - if (strpos($attr, 'filter') === 0 && $value) { |
|
1964 | - $value = $this->substituteVars($value, false); |
|
1965 | - // Convert the various filters into SQL |
|
1966 | - if (preg_match('/^(\w+):DATE (LTE|GTE) (.+)$/', $value, $match)) { |
|
1967 | - $sql_join .= " JOIN `##dates` AS {$attr} ON ({$attr}.d_file=f_file AND {$attr}.d_gid=f_id)"; |
|
1968 | - $sql_where .= " AND {$attr}.d_fact = :{$attr}fact"; |
|
1969 | - $sql_params[$attr . 'fact'] = $match[1]; |
|
1970 | - $date = new Date($match[3]); |
|
1971 | - if ($match[2] == "LTE") { |
|
1972 | - $sql_where .= " AND {$attr}.d_julianday2 <= :{$attr}date"; |
|
1973 | - $sql_params[$attr . 'date'] = $date->maximumJulianDay(); |
|
1974 | - } else { |
|
1975 | - $sql_where .= " AND {$attr}.d_julianday1 >= :{$attr}date"; |
|
1976 | - $sql_params[$attr . 'date'] = $date->minimumJulianDay(); |
|
1977 | - } |
|
1978 | - if ($sortby == $match[1]) { |
|
1979 | - $sortby = ""; |
|
1980 | - $sql_order_by .= ($sql_order_by ? ", " : " ORDER BY ") . "{$attr}.d_julianday1"; |
|
1981 | - } |
|
1982 | - unset($attrs[$attr]); // This filter has been fully processed |
|
1983 | - } elseif (preg_match('/^REGEXP \/(.+)\//', $value, $match)) { |
|
1984 | - $sql_where .= " AND f_gedcom REGEXP :{$attr}gedcom"; |
|
1985 | - // PDO helpfully escapes backslashes for us, preventing us from matching "\n1 FACT" |
|
1986 | - $sql_params[$attr . 'gedcom'] = str_replace('\n', "\n", $match[1]); |
|
1987 | - unset($attrs[$attr]); // This filter has been fully processed |
|
1988 | - } elseif (preg_match('/^NAME CONTAINS (.+)$/', $value, $match)) { |
|
1989 | - // Do nothing, unless you have to |
|
1990 | - if ($match[1] != '' || $sortby == 'NAME') { |
|
1991 | - $sql_join .= " JOIN `##name` AS {$attr} ON n_file = f_file AND n_id IN (f_husb, f_wife)"; |
|
1992 | - // Search the DB only if there is any name supplied |
|
1993 | - if ($match[1] != "") { |
|
1994 | - $names = explode(" ", $match[1]); |
|
1995 | - foreach ($names as $n => $name) { |
|
1996 | - $sql_where .= " AND {$attr}.n_full LIKE CONCAT('%', :{$attr}name{$n}, '%')"; |
|
1997 | - $sql_params[$attr . 'name' . $n] = $name; |
|
1998 | - } |
|
1946 | + $this->list = array(); |
|
1947 | + $rows = Database::prepare( |
|
1948 | + $sql_select . $sql_join . $sql_where . $sql_order_by |
|
1949 | + )->execute($sql_params)->fetchAll(); |
|
1950 | + |
|
1951 | + foreach ($rows as $row) { |
|
1952 | + $this->list[$row->xref] = Individual::getInstance($row->xref, $WT_TREE, $row->gedcom); |
|
1953 | + } |
|
1954 | + break; |
|
1955 | + |
|
1956 | + case 'family': |
|
1957 | + $sql_select = "SELECT f_id AS xref, f_gedcom AS gedcom FROM `##families`"; |
|
1958 | + $sql_join = ""; |
|
1959 | + $sql_where = " WHERE f_file = :tree_id"; |
|
1960 | + $sql_order_by = ""; |
|
1961 | + $sql_params = array('tree_id' => $WT_TREE->getTreeId()); |
|
1962 | + foreach ($attrs as $attr => $value) { |
|
1963 | + if (strpos($attr, 'filter') === 0 && $value) { |
|
1964 | + $value = $this->substituteVars($value, false); |
|
1965 | + // Convert the various filters into SQL |
|
1966 | + if (preg_match('/^(\w+):DATE (LTE|GTE) (.+)$/', $value, $match)) { |
|
1967 | + $sql_join .= " JOIN `##dates` AS {$attr} ON ({$attr}.d_file=f_file AND {$attr}.d_gid=f_id)"; |
|
1968 | + $sql_where .= " AND {$attr}.d_fact = :{$attr}fact"; |
|
1969 | + $sql_params[$attr . 'fact'] = $match[1]; |
|
1970 | + $date = new Date($match[3]); |
|
1971 | + if ($match[2] == "LTE") { |
|
1972 | + $sql_where .= " AND {$attr}.d_julianday2 <= :{$attr}date"; |
|
1973 | + $sql_params[$attr . 'date'] = $date->maximumJulianDay(); |
|
1974 | + } else { |
|
1975 | + $sql_where .= " AND {$attr}.d_julianday1 >= :{$attr}date"; |
|
1976 | + $sql_params[$attr . 'date'] = $date->minimumJulianDay(); |
|
1999 | 1977 | } |
2000 | - // Let the DB do the name sorting even when no name was entered |
|
2001 | - if ($sortby == "NAME") { |
|
1978 | + if ($sortby == $match[1]) { |
|
2002 | 1979 | $sortby = ""; |
2003 | - $sql_order_by .= ($sql_order_by ? ", " : " ORDER BY ") . "{$attr}.n_sort"; |
|
1980 | + $sql_order_by .= ($sql_order_by ? ", " : " ORDER BY ") . "{$attr}.d_julianday1"; |
|
1981 | + } |
|
1982 | + unset($attrs[$attr]); // This filter has been fully processed |
|
1983 | + } elseif (preg_match('/^REGEXP \/(.+)\//', $value, $match)) { |
|
1984 | + $sql_where .= " AND f_gedcom REGEXP :{$attr}gedcom"; |
|
1985 | + // PDO helpfully escapes backslashes for us, preventing us from matching "\n1 FACT" |
|
1986 | + $sql_params[$attr . 'gedcom'] = str_replace('\n', "\n", $match[1]); |
|
1987 | + unset($attrs[$attr]); // This filter has been fully processed |
|
1988 | + } elseif (preg_match('/^NAME CONTAINS (.+)$/', $value, $match)) { |
|
1989 | + // Do nothing, unless you have to |
|
1990 | + if ($match[1] != '' || $sortby == 'NAME') { |
|
1991 | + $sql_join .= " JOIN `##name` AS {$attr} ON n_file = f_file AND n_id IN (f_husb, f_wife)"; |
|
1992 | + // Search the DB only if there is any name supplied |
|
1993 | + if ($match[1] != "") { |
|
1994 | + $names = explode(" ", $match[1]); |
|
1995 | + foreach ($names as $n => $name) { |
|
1996 | + $sql_where .= " AND {$attr}.n_full LIKE CONCAT('%', :{$attr}name{$n}, '%')"; |
|
1997 | + $sql_params[$attr . 'name' . $n] = $name; |
|
1998 | + } |
|
1999 | + } |
|
2000 | + // Let the DB do the name sorting even when no name was entered |
|
2001 | + if ($sortby == "NAME") { |
|
2002 | + $sortby = ""; |
|
2003 | + $sql_order_by .= ($sql_order_by ? ", " : " ORDER BY ") . "{$attr}.n_sort"; |
|
2004 | + } |
|
2004 | 2005 | } |
2006 | + unset($attrs[$attr]); // This filter has been fully processed |
|
2007 | + |
|
2008 | + } elseif (preg_match('/^(?:\w+):PLAC CONTAINS (.+)$/', $value, $match)) { |
|
2009 | + $sql_join .= " JOIN `##places` AS {$attr}a ON ({$attr}a.p_file=f_file)"; |
|
2010 | + $sql_join .= " JOIN `##placelinks` AS {$attr}b ON ({$attr}a.p_file={$attr}b.pl_file AND {$attr}b.pl_p_id={$attr}a.p_id AND {$attr}b.pl_gid=f_id)"; |
|
2011 | + $sql_where .= " AND {$attr}a.p_place LIKE CONCAT('%', :{$attr}place, '%')"; |
|
2012 | + $sql_params[$attr . 'place'] = $match[1]; |
|
2013 | + // Don't unset this filter. This is just initial filtering |
|
2014 | + } elseif (preg_match('/^(\w*):*(\w*) CONTAINS (.+)$/', $value, $match)) { |
|
2015 | + $sql_where .= " AND f_gedcom LIKE CONCAT('%', :{$attr}contains1, '%', :{$attr}contains2, '%', :{$attr}contains3, '%')"; |
|
2016 | + $sql_params[$attr . 'contains1'] = $match[1]; |
|
2017 | + $sql_params[$attr . 'contains2'] = $match[2]; |
|
2018 | + $sql_params[$attr . 'contains3'] = $match[3]; |
|
2019 | + // Don't unset this filter. This is just initial filtering |
|
2005 | 2020 | } |
2006 | - unset($attrs[$attr]); // This filter has been fully processed |
|
2007 | - |
|
2008 | - } elseif (preg_match('/^(?:\w+):PLAC CONTAINS (.+)$/', $value, $match)) { |
|
2009 | - $sql_join .= " JOIN `##places` AS {$attr}a ON ({$attr}a.p_file=f_file)"; |
|
2010 | - $sql_join .= " JOIN `##placelinks` AS {$attr}b ON ({$attr}a.p_file={$attr}b.pl_file AND {$attr}b.pl_p_id={$attr}a.p_id AND {$attr}b.pl_gid=f_id)"; |
|
2011 | - $sql_where .= " AND {$attr}a.p_place LIKE CONCAT('%', :{$attr}place, '%')"; |
|
2012 | - $sql_params[$attr . 'place'] = $match[1]; |
|
2013 | - // Don't unset this filter. This is just initial filtering |
|
2014 | - } elseif (preg_match('/^(\w*):*(\w*) CONTAINS (.+)$/', $value, $match)) { |
|
2015 | - $sql_where .= " AND f_gedcom LIKE CONCAT('%', :{$attr}contains1, '%', :{$attr}contains2, '%', :{$attr}contains3, '%')"; |
|
2016 | - $sql_params[$attr . 'contains1'] = $match[1]; |
|
2017 | - $sql_params[$attr . 'contains2'] = $match[2]; |
|
2018 | - $sql_params[$attr . 'contains3'] = $match[3]; |
|
2019 | - // Don't unset this filter. This is just initial filtering |
|
2020 | 2021 | } |
2021 | 2022 | } |
2022 | - } |
|
2023 | 2023 | |
2024 | - $this->list = array(); |
|
2025 | - $rows = Database::prepare( |
|
2026 | - $sql_select . $sql_join . $sql_where . $sql_order_by |
|
2027 | - )->execute($sql_params)->fetchAll(); |
|
2024 | + $this->list = array(); |
|
2025 | + $rows = Database::prepare( |
|
2026 | + $sql_select . $sql_join . $sql_where . $sql_order_by |
|
2027 | + )->execute($sql_params)->fetchAll(); |
|
2028 | 2028 | |
2029 | - foreach ($rows as $row) { |
|
2030 | - $this->list[$row->xref] = Family::getInstance($row->xref, $WT_TREE, $row->gedcom); |
|
2031 | - } |
|
2032 | - break; |
|
2029 | + foreach ($rows as $row) { |
|
2030 | + $this->list[$row->xref] = Family::getInstance($row->xref, $WT_TREE, $row->gedcom); |
|
2031 | + } |
|
2032 | + break; |
|
2033 | 2033 | |
2034 | - default: |
|
2035 | - throw new \DomainException('Invalid list name: ' . $listname); |
|
2034 | + default: |
|
2035 | + throw new \DomainException('Invalid list name: ' . $listname); |
|
2036 | 2036 | } |
2037 | 2037 | |
2038 | 2038 | $filters = array(); |
@@ -2093,17 +2093,17 @@ discard block |
||
2093 | 2093 | $searchstr = "1 " . $tag; |
2094 | 2094 | } |
2095 | 2095 | switch ($expr) { |
2096 | - case "CONTAINS": |
|
2097 | - if ($t == "PLAC") { |
|
2098 | - $searchstr .= "[^\n]*[, ]*" . $val; |
|
2099 | - } else { |
|
2100 | - $searchstr .= "[^\n]*" . $val; |
|
2101 | - } |
|
2102 | - $filters[] = $searchstr; |
|
2103 | - break; |
|
2104 | - default: |
|
2105 | - $filters2[] = array("tag" => $tag, "expr" => $expr, "val" => $val); |
|
2106 | - break; |
|
2096 | + case "CONTAINS": |
|
2097 | + if ($t == "PLAC") { |
|
2098 | + $searchstr .= "[^\n]*[, ]*" . $val; |
|
2099 | + } else { |
|
2100 | + $searchstr .= "[^\n]*" . $val; |
|
2101 | + } |
|
2102 | + $filters[] = $searchstr; |
|
2103 | + break; |
|
2104 | + default: |
|
2105 | + $filters2[] = array("tag" => $tag, "expr" => $expr, "val" => $val); |
|
2106 | + break; |
|
2107 | 2107 | } |
2108 | 2108 | } |
2109 | 2109 | } |
@@ -2147,31 +2147,31 @@ discard block |
||
2147 | 2147 | } |
2148 | 2148 | |
2149 | 2149 | switch ($expr) { |
2150 | - case "GTE": |
|
2151 | - if ($t == "DATE") { |
|
2152 | - $date1 = new Date($v); |
|
2153 | - $date2 = new Date($val); |
|
2154 | - $keep = (Date::compare($date1, $date2) >= 0); |
|
2155 | - } elseif ($val >= $v) { |
|
2156 | - $keep = true; |
|
2157 | - } |
|
2158 | - break; |
|
2159 | - case "LTE": |
|
2160 | - if ($t == "DATE") { |
|
2161 | - $date1 = new Date($v); |
|
2162 | - $date2 = new Date($val); |
|
2163 | - $keep = (Date::compare($date1, $date2) <= 0); |
|
2164 | - } elseif ($val >= $v) { |
|
2165 | - $keep = true; |
|
2166 | - } |
|
2167 | - break; |
|
2168 | - default: |
|
2169 | - if ($v == $val) { |
|
2170 | - $keep = true; |
|
2171 | - } else { |
|
2172 | - $keep = false; |
|
2173 | - } |
|
2174 | - break; |
|
2150 | + case "GTE": |
|
2151 | + if ($t == "DATE") { |
|
2152 | + $date1 = new Date($v); |
|
2153 | + $date2 = new Date($val); |
|
2154 | + $keep = (Date::compare($date1, $date2) >= 0); |
|
2155 | + } elseif ($val >= $v) { |
|
2156 | + $keep = true; |
|
2157 | + } |
|
2158 | + break; |
|
2159 | + case "LTE": |
|
2160 | + if ($t == "DATE") { |
|
2161 | + $date1 = new Date($v); |
|
2162 | + $date2 = new Date($val); |
|
2163 | + $keep = (Date::compare($date1, $date2) <= 0); |
|
2164 | + } elseif ($val >= $v) { |
|
2165 | + $keep = true; |
|
2166 | + } |
|
2167 | + break; |
|
2168 | + default: |
|
2169 | + if ($v == $val) { |
|
2170 | + $keep = true; |
|
2171 | + } else { |
|
2172 | + $keep = false; |
|
2173 | + } |
|
2174 | + break; |
|
2175 | 2175 | } |
2176 | 2176 | } |
2177 | 2177 | } |
@@ -2183,26 +2183,26 @@ discard block |
||
2183 | 2183 | } |
2184 | 2184 | |
2185 | 2185 | switch ($sortby) { |
2186 | - case 'NAME': |
|
2187 | - uasort($this->list, '\Fisharebest\Webtrees\GedcomRecord::compare'); |
|
2188 | - break; |
|
2189 | - case 'CHAN': |
|
2190 | - uasort($this->list, function (GedcomRecord $x, GedcomRecord $y) { |
|
2191 | - return $y->lastChangeTimestamp(true) - $x->lastChangeTimestamp(true); |
|
2192 | - }); |
|
2193 | - break; |
|
2194 | - case 'BIRT:DATE': |
|
2195 | - uasort($this->list, '\Fisharebest\Webtrees\Individual::compareBirthDate'); |
|
2196 | - break; |
|
2197 | - case 'DEAT:DATE': |
|
2198 | - uasort($this->list, '\Fisharebest\Webtrees\Individual::compareDeathDate'); |
|
2199 | - break; |
|
2200 | - case 'MARR:DATE': |
|
2201 | - uasort($this->list, '\Fisharebest\Webtrees\Family::compareMarrDate'); |
|
2202 | - break; |
|
2203 | - default: |
|
2204 | - // unsorted or already sorted by SQL |
|
2205 | - break; |
|
2186 | + case 'NAME': |
|
2187 | + uasort($this->list, '\Fisharebest\Webtrees\GedcomRecord::compare'); |
|
2188 | + break; |
|
2189 | + case 'CHAN': |
|
2190 | + uasort($this->list, function (GedcomRecord $x, GedcomRecord $y) { |
|
2191 | + return $y->lastChangeTimestamp(true) - $x->lastChangeTimestamp(true); |
|
2192 | + }); |
|
2193 | + break; |
|
2194 | + case 'BIRT:DATE': |
|
2195 | + uasort($this->list, '\Fisharebest\Webtrees\Individual::compareBirthDate'); |
|
2196 | + break; |
|
2197 | + case 'DEAT:DATE': |
|
2198 | + uasort($this->list, '\Fisharebest\Webtrees\Individual::compareDeathDate'); |
|
2199 | + break; |
|
2200 | + case 'MARR:DATE': |
|
2201 | + uasort($this->list, '\Fisharebest\Webtrees\Family::compareMarrDate'); |
|
2202 | + break; |
|
2203 | + default: |
|
2204 | + // unsorted or already sorted by SQL |
|
2205 | + break; |
|
2206 | 2206 | } |
2207 | 2207 | |
2208 | 2208 | array_push($this->repeats_stack, array($this->repeats, $this->repeat_bytes)); |
@@ -2353,88 +2353,88 @@ discard block |
||
2353 | 2353 | if (!empty($person)) { |
2354 | 2354 | $this->list[$id] = $person; |
2355 | 2355 | switch ($group) { |
2356 | - case "child-family": |
|
2357 | - foreach ($person->getChildFamilies() as $family) { |
|
2358 | - $husband = $family->getHusband(); |
|
2359 | - $wife = $family->getWife(); |
|
2360 | - if (!empty($husband)) { |
|
2361 | - $this->list[$husband->getXref()] = $husband; |
|
2362 | - } |
|
2363 | - if (!empty($wife)) { |
|
2364 | - $this->list[$wife->getXref()] = $wife; |
|
2365 | - } |
|
2366 | - $children = $family->getChildren(); |
|
2367 | - foreach ($children as $child) { |
|
2368 | - if (!empty($child)) { |
|
2369 | - $this->list[$child->getXref()] = $child; |
|
2356 | + case "child-family": |
|
2357 | + foreach ($person->getChildFamilies() as $family) { |
|
2358 | + $husband = $family->getHusband(); |
|
2359 | + $wife = $family->getWife(); |
|
2360 | + if (!empty($husband)) { |
|
2361 | + $this->list[$husband->getXref()] = $husband; |
|
2362 | + } |
|
2363 | + if (!empty($wife)) { |
|
2364 | + $this->list[$wife->getXref()] = $wife; |
|
2365 | + } |
|
2366 | + $children = $family->getChildren(); |
|
2367 | + foreach ($children as $child) { |
|
2368 | + if (!empty($child)) { |
|
2369 | + $this->list[$child->getXref()] = $child; |
|
2370 | + } |
|
2370 | 2371 | } |
2371 | 2372 | } |
2372 | - } |
|
2373 | - break; |
|
2374 | - case "spouse-family": |
|
2375 | - foreach ($person->getSpouseFamilies() as $family) { |
|
2376 | - $husband = $family->getHusband(); |
|
2377 | - $wife = $family->getWife(); |
|
2378 | - if (!empty($husband)) { |
|
2379 | - $this->list[$husband->getXref()] = $husband; |
|
2380 | - } |
|
2381 | - if (!empty($wife)) { |
|
2382 | - $this->list[$wife->getXref()] = $wife; |
|
2383 | - } |
|
2384 | - $children = $family->getChildren(); |
|
2385 | - foreach ($children as $child) { |
|
2386 | - if (!empty($child)) { |
|
2387 | - $this->list[$child->getXref()] = $child; |
|
2373 | + break; |
|
2374 | + case "spouse-family": |
|
2375 | + foreach ($person->getSpouseFamilies() as $family) { |
|
2376 | + $husband = $family->getHusband(); |
|
2377 | + $wife = $family->getWife(); |
|
2378 | + if (!empty($husband)) { |
|
2379 | + $this->list[$husband->getXref()] = $husband; |
|
2380 | + } |
|
2381 | + if (!empty($wife)) { |
|
2382 | + $this->list[$wife->getXref()] = $wife; |
|
2383 | + } |
|
2384 | + $children = $family->getChildren(); |
|
2385 | + foreach ($children as $child) { |
|
2386 | + if (!empty($child)) { |
|
2387 | + $this->list[$child->getXref()] = $child; |
|
2388 | + } |
|
2388 | 2389 | } |
2389 | 2390 | } |
2390 | - } |
|
2391 | - break; |
|
2392 | - case "direct-ancestors": |
|
2393 | - $this->addAncestors($this->list, $id, false, $maxgen); |
|
2394 | - break; |
|
2395 | - case "ancestors": |
|
2396 | - $this->addAncestors($this->list, $id, true, $maxgen); |
|
2397 | - break; |
|
2398 | - case "descendants": |
|
2399 | - $this->list[$id]->generation = 1; |
|
2400 | - $this->addDescendancy($this->list, $id, false, $maxgen); |
|
2401 | - break; |
|
2402 | - case "all": |
|
2403 | - $this->addAncestors($this->list, $id, true, $maxgen); |
|
2404 | - $this->addDescendancy($this->list, $id, true, $maxgen); |
|
2405 | - break; |
|
2391 | + break; |
|
2392 | + case "direct-ancestors": |
|
2393 | + $this->addAncestors($this->list, $id, false, $maxgen); |
|
2394 | + break; |
|
2395 | + case "ancestors": |
|
2396 | + $this->addAncestors($this->list, $id, true, $maxgen); |
|
2397 | + break; |
|
2398 | + case "descendants": |
|
2399 | + $this->list[$id]->generation = 1; |
|
2400 | + $this->addDescendancy($this->list, $id, false, $maxgen); |
|
2401 | + break; |
|
2402 | + case "all": |
|
2403 | + $this->addAncestors($this->list, $id, true, $maxgen); |
|
2404 | + $this->addDescendancy($this->list, $id, true, $maxgen); |
|
2405 | + break; |
|
2406 | 2406 | } |
2407 | 2407 | } |
2408 | 2408 | |
2409 | 2409 | switch ($sortby) { |
2410 | - case 'NAME': |
|
2411 | - uasort($this->list, '\Fisharebest\Webtrees\GedcomRecord::compare'); |
|
2412 | - break; |
|
2413 | - case 'BIRT:DATE': |
|
2414 | - uasort($this->list, '\Fisharebest\Webtrees\Individual::compareBirthDate'); |
|
2415 | - break; |
|
2416 | - case 'DEAT:DATE': |
|
2417 | - uasort($this->list, '\Fisharebest\Webtrees\Individual::compareDeathDate'); |
|
2418 | - break; |
|
2419 | - case 'generation': |
|
2420 | - $newarray = array(); |
|
2421 | - reset($this->list); |
|
2422 | - $genCounter = 1; |
|
2423 | - while (count($newarray) < count($this->list)) { |
|
2424 | - foreach ($this->list as $key => $value) { |
|
2425 | - $this->generation = $value->generation; |
|
2426 | - if ($this->generation == $genCounter) { |
|
2427 | - $newarray[$key] = new \stdClass; |
|
2428 | - $newarray[$key]->generation = $this->generation; |
|
2410 | + case 'NAME': |
|
2411 | + uasort($this->list, '\Fisharebest\Webtrees\GedcomRecord::compare'); |
|
2412 | + break; |
|
2413 | + case 'BIRT:DATE': |
|
2414 | + uasort($this->list, '\Fisharebest\Webtrees\Individual::compareBirthDate'); |
|
2415 | + break; |
|
2416 | + case 'DEAT:DATE': |
|
2417 | + uasort($this->list, '\Fisharebest\Webtrees\Individual::compareDeathDate'); |
|
2418 | + break; |
|
2419 | + case 'generation': |
|
2420 | + $newarray = array(); |
|
2421 | + reset($this->list); |
|
2422 | + $genCounter = 1; |
|
2423 | + while (count($newarray) < count($this->list)) { |
|
2424 | + foreach ($this->list as $key => $value) { |
|
2425 | + $this->generation = $value->generation; |
|
2426 | + if ($this->generation == $genCounter) { |
|
2427 | + $newarray[$key] = new \stdClass; |
|
2428 | + $newarray[$key]->generation = $this->generation; |
|
2429 | + } |
|
2429 | 2430 | } |
2431 | + $genCounter++; |
|
2430 | 2432 | } |
2431 | - $genCounter++; |
|
2432 | - } |
|
2433 | - $this->list = $newarray; |
|
2434 | - break; |
|
2435 | - default: |
|
2436 | - // unsorted |
|
2437 | - break; |
|
2433 | + $this->list = $newarray; |
|
2434 | + break; |
|
2435 | + default: |
|
2436 | + // unsorted |
|
2437 | + break; |
|
2438 | 2438 | } |
2439 | 2439 | array_push($this->repeats_stack, array($this->repeats, $this->repeat_bytes)); |
2440 | 2440 | $this->repeat_bytes = xml_get_current_line_number($this->parser) + 1; |
@@ -57,14 +57,14 @@ |
||
57 | 57 | 'MADRI', 'MANAU', 'MANHA', 'MANIL', 'MANTI', 'MEDFO', 'MELBO', 'MEMPH', |
58 | 58 | 'MERID', 'MEXIC', 'MNTVD', 'MONTE', 'MONTI', 'MONTR', 'MTIMP', 'NASHV', |
59 | 59 | 'NAUV2', 'NAUVO', 'NBEAC', 'NUKUA', 'NYORK', 'NZEAL', 'OAKLA', 'OAXAC', |
60 | - 'OGDEN', 'OKLAH', 'OQUIR', 'ORLAN', 'PALEG', 'PALMY', 'PANAM', 'PAPEE', |
|
61 | - 'PAYSO', 'PERTH', 'PHOEN', 'POFFI', 'PORTL', 'PREST', 'PROCC', 'PROVO', |
|
60 | + 'OGDEN', 'OKLAH', 'OQUIR', 'ORLAN', 'PALEG', 'PALMY', 'PANAM', 'PAPEE', |
|
61 | + 'PAYSO', 'PERTH', 'PHOEN', 'POFFI', 'PORTL', 'PREST', 'PROCC', 'PROVO', |
|
62 | 62 | 'QUETZ', 'RALEI', 'RECIF', 'REDLA', 'REGIN', 'RENO', 'REXBU', 'SACRA', |
63 | - 'SAMOA', 'SANTI', 'SANSA', 'SANTO', 'SDIEG', 'SDOMI', 'SEATT', 'SEOUL', |
|
64 | - 'SGEOR', 'SJOSE', 'SLAKE', 'SLOUI', 'SNOWF','SPAUL', 'SPMIN', 'SPOKA', |
|
63 | + 'SAMOA', 'SANTI', 'SANSA', 'SANTO', 'SDIEG', 'SDOMI', 'SEATT', 'SEOUL', |
|
64 | + 'SGEOR', 'SJOSE', 'SLAKE', 'SLOUI', 'SNOWF', 'SPAUL', 'SPMIN', 'SPOKA', |
|
65 | 65 | 'STOCK', 'SUVA', 'SWISS', 'SYDNE', 'TAIPE', 'TAMPI', 'TEGUC', 'TGUTI', |
66 | - 'TIHUA', 'TOKYO', 'TORNO', 'TRUJI', 'TWINF', 'VANCO', 'VERAC', 'VERNA', |
|
67 | - 'VILLA', 'WASHI', 'WINTE', |
|
66 | + 'TIHUA', 'TOKYO', 'TORNO', 'TRUJI', 'TWINF', 'VANCO', 'VERAC', 'VERNA', |
|
67 | + 'VILLA', 'WASHI', 'WINTE', |
|
68 | 68 | ); |
69 | 69 | } |
70 | 70 |
@@ -77,318 +77,318 @@ |
||
77 | 77 | */ |
78 | 78 | public static function templeName($temple_code) { |
79 | 79 | switch ($temple_code) { |
80 | - case 'ABA': |
|
81 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Aba, Nigeria'); |
|
82 | - case 'ACCRA': |
|
83 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Accra, Ghana'); |
|
84 | - case 'ADELA': |
|
85 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Adelaide, Australia'); |
|
86 | - case 'ALBER': |
|
87 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Cardston, Alberta, Canada'); |
|
88 | - case 'ALBUQ': |
|
89 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Albuquerque, New Mexico, United States'); |
|
90 | - case 'ANCHO': |
|
91 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Anchorage, Alaska, United States'); |
|
92 | - case 'APIA': |
|
93 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Apia, Samoa'); |
|
94 | - case 'ARIZO': |
|
95 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Mesa, Arizona, United States'); |
|
96 | - case 'ASUNC': |
|
97 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Asuncion, Paraguay'); |
|
98 | - case 'ATLAN': |
|
99 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Atlanta, Georgia, United States'); |
|
100 | - case 'BAIRE': |
|
101 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Buenos Aires, Argentina'); |
|
102 | - case 'BILLI': |
|
103 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Billings, Montana, United States'); |
|
104 | - case 'BIRMI': |
|
105 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Birmingham, Alabama, United States'); |
|
106 | - case 'BISMA': |
|
107 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Bismarck, North Dakota, United States'); |
|
108 | - case 'BOGOT': |
|
109 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Bogota, Colombia'); |
|
110 | - case 'BOISE': |
|
111 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Boise, Idaho, United States'); |
|
112 | - case 'BOSTO': |
|
113 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Boston, Massachusetts, United States'); |
|
114 | - case 'BOUNT': |
|
115 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Bountiful, Utah, United States'); |
|
116 | - case 'BRIGH': |
|
117 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Brigham City, Utah, United States'); |
|
118 | - case 'BRISB': |
|
119 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Brisbane, Australia'); |
|
120 | - case 'BROUG': |
|
121 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Baton Rouge, Louisiana, United States'); |
|
122 | - case 'CALGA': |
|
123 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Calgary, Alberta, Canada'); |
|
124 | - case 'CAMPI': |
|
125 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Campinas, Brazil'); |
|
126 | - case 'CARAC': |
|
127 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Caracas, Venezuela'); |
|
128 | - case 'CEBUP': |
|
129 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Cebu City, Philippines'); |
|
130 | - case 'CHICA': |
|
131 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Chicago, Illinois, United States'); |
|
132 | - case 'CIUJU': |
|
133 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Ciudad Juarez, Mexico'); |
|
134 | - case 'COCHA': |
|
135 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Cochabamba, Bolivia'); |
|
136 | - case 'COLJU': |
|
137 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Colonia Juarez, Mexico'); |
|
138 | - case 'COLSC': |
|
139 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Columbia, South Carolina, United States'); |
|
140 | - case 'COLUM': |
|
141 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Columbus, Ohio, United States'); |
|
142 | - case 'COPEN': |
|
143 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Copenhagen, Denmark'); |
|
144 | - case 'CORDO': |
|
145 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Cordoba, Argentina'); |
|
146 | - case 'CRIVE': |
|
147 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Columbia River, Washington, United States'); |
|
148 | - case 'CURIT': |
|
149 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Curitiba, Brazil'); |
|
150 | - case 'DALLA': |
|
151 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Dallas, Texas, United States'); |
|
152 | - case 'DENVE': |
|
153 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Denver, Colorado, United States'); |
|
154 | - case 'DETRO': |
|
155 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Detroit, Michigan, United States'); |
|
156 | - case 'DRAPE': |
|
157 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Draper, Utah, United States'); |
|
158 | - case 'EDMON': |
|
159 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Edmonton, Alberta, Canada'); |
|
160 | - case 'EHOUS': |
|
161 | - return /* I18N: Location of an historic LDS church temple - http://en.wikipedia.org/wiki/Endowment_house */ I18N::translate('Endowment House'); |
|
162 | - case 'FORTL': |
|
163 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Fort Lauderdale, Florida, United States'); |
|
164 | - case 'FRANK': |
|
165 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Frankfurt am Main, Germany'); |
|
166 | - case 'FREIB': |
|
167 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Freiburg, Germany'); |
|
168 | - case 'FRESN': |
|
169 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Fresno, California, United States'); |
|
170 | - case 'FUKUO': |
|
171 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Fukuoka, Japan'); |
|
172 | - case 'GILAV': |
|
173 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Gila Valley, Arizona, United States'); |
|
174 | - case 'GILBE': |
|
175 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Gilbert, Arizona, United States'); |
|
176 | - case 'GUADA': |
|
177 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Guadalajara, Mexico'); |
|
178 | - case 'GUATE': |
|
179 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Guatemala City, Guatemala'); |
|
180 | - case 'GUAYA': |
|
181 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Guayaquil, Ecuador'); |
|
182 | - case 'HAGUE': |
|
183 | - return /* I18N: Location of an LDS church temple */ I18N::translate('The Hague, Netherlands'); |
|
184 | - case 'HALIF': |
|
185 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Halifax, Nova Scotia, Canada'); |
|
186 | - case 'HARTF': |
|
187 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Hartford, Connecticut, United States'); |
|
188 | - case 'HAWAI': |
|
189 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Laie, Hawaii, United States'); |
|
190 | - case 'HELSI': |
|
191 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Helsinki, Finland'); |
|
192 | - case 'HERMO': |
|
193 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Hermosillo, Mexico'); |
|
194 | - case 'HKONG': |
|
195 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Hong Kong'); |
|
196 | - case 'HOUST': |
|
197 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Houston, Texas, United States'); |
|
198 | - case 'IFALL': |
|
199 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Idaho Falls, Idaho, United States'); |
|
200 | - case 'INDIA': |
|
201 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Indianapolis, Indiana, United States'); |
|
202 | - case 'JOHAN': |
|
203 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Johannesburg, South Africa'); |
|
204 | - case 'JRIVE': |
|
205 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Jordan River, Utah, United States'); |
|
206 | - case 'KANSA': |
|
207 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Kansas City, Missouri, United States'); |
|
208 | - case 'KONA': |
|
209 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Kona, Hawaii, United States'); |
|
210 | - case 'KYIV': |
|
211 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Kiev, Ukraine'); |
|
212 | - case 'LANGE': |
|
213 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Los Angeles, California, United States'); |
|
214 | - case 'LIMA': |
|
215 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Lima, Peru'); |
|
216 | - case 'LOGAN': |
|
217 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Logan, Utah, United States'); |
|
218 | - case 'LONDO': |
|
219 | - return /* I18N: Location of an LDS church temple */ I18N::translate('London, England'); |
|
220 | - case 'LOUIS': |
|
221 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Louisville, Kentucky, United States'); |
|
222 | - case 'LUBBO': |
|
223 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Lubbock, Texas, United States'); |
|
224 | - case 'LVEGA': |
|
225 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Las Vegas, Nevada, United States'); |
|
226 | - case 'MADRI': |
|
227 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Madrid, Spain'); |
|
228 | - case 'MANAU': |
|
229 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Manaus, Brazil'); |
|
230 | - case 'MANHA': |
|
231 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Manhattan, New York, United States'); |
|
232 | - case 'MANIL': |
|
233 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Manila, Philippines'); |
|
234 | - case 'MANTI': |
|
235 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Manti, Utah, United States'); |
|
236 | - case 'MEDFO': |
|
237 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Medford, Oregon, United States'); |
|
238 | - case 'MELBO': |
|
239 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Melbourne, Australia'); |
|
240 | - case 'MEMPH': |
|
241 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Memphis, Tennessee, United States'); |
|
242 | - case 'MERID': |
|
243 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Merida, Mexico'); |
|
244 | - case 'MEXIC': |
|
245 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Mexico City, Mexico'); |
|
246 | - case 'MNTVD': |
|
247 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Montevideo, Uruguay'); |
|
248 | - case 'MONTE': |
|
249 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Monterrey, Mexico'); |
|
250 | - case 'MONTI': |
|
251 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Monticello, Utah, United States'); |
|
252 | - case 'MONTR': |
|
253 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Montreal, Quebec, Canada'); |
|
254 | - case 'MTIMP': |
|
255 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Mount Timpanogos, Utah, United States'); |
|
256 | - case 'NASHV': |
|
257 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Nashville, Tennessee, United States'); |
|
258 | - case 'NAUV2': |
|
259 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Nauvoo (new), Illinois, United States'); |
|
260 | - case 'NAUVO': |
|
261 | - return /* I18N: Location of an historic LDS church temple */ I18N::translate('Nauvoo (original), Illinois, United States'); |
|
262 | - case 'NBEAC': |
|
263 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Newport Beach, California, United States'); |
|
264 | - case 'NUKUA': |
|
265 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Nuku’Alofa, Tonga'); |
|
266 | - case 'NYORK': |
|
267 | - return /* I18N: Location of an historic LDS church temple */ I18N::translate('New York, New York, United States'); |
|
268 | - case 'NZEAL': |
|
269 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Hamilton, New Zealand'); |
|
270 | - case 'OAKLA': |
|
271 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Oakland, California, United States'); |
|
272 | - case 'OAXAC': |
|
273 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Oaxaca, Mexico'); |
|
274 | - case 'OGDEN': |
|
275 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Ogden, Utah, United States'); |
|
276 | - case 'OKLAH': |
|
277 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Oklahoma City, Oklahoma, United States'); |
|
278 | - case 'OQUIR': |
|
279 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Oquirrh Mountain, Utah, United States'); |
|
280 | - case 'ORLAN': |
|
281 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Orlando, Florida, United States'); |
|
282 | - case 'PALEG': |
|
283 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Porto Alegre, Brazil'); |
|
284 | - case 'PALMY': |
|
285 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Palmyra, New York, United States'); |
|
286 | - case 'PANAM': |
|
287 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Panama City, Panama'); |
|
288 | - case 'PAPEE': |
|
289 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Papeete, Tahiti'); |
|
290 | - case 'PAYSO': |
|
291 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Payson, Utah, United States'); |
|
292 | - case 'PERTH': |
|
293 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Perth, Australia'); |
|
294 | - case 'PHOEN': |
|
295 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Phoenix, Arizona, United States'); |
|
296 | - case 'POFFI': |
|
297 | - return /* I18N: I18N: Location of an historic LDS church temple - http://en.wikipedia.org/wiki/President_of_the_Church */ I18N::translate('President’s Office'); |
|
298 | - case 'PORTL': |
|
299 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Portland, Oregon, United States'); |
|
300 | - case 'PREST': |
|
301 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Preston, England'); |
|
302 | - case 'PROCC': |
|
303 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Provo City Center, Utah, United States'); |
|
304 | - case 'PROVO': |
|
305 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Provo, Utah, United States'); |
|
306 | - case 'QUETZ': |
|
307 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Quetzaltenango, Guatemala'); |
|
308 | - case 'RALEI': |
|
309 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Raleigh, North Carolina, United States'); |
|
310 | - case 'RECIF': |
|
311 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Recife, Brazil'); |
|
312 | - case 'REDLA': |
|
313 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Redlands, California, United States'); |
|
314 | - case 'REGIN': |
|
315 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Regina, Saskatchewan, Canada'); |
|
316 | - case 'RENO': |
|
317 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Reno, Nevada, United States'); |
|
318 | - case 'REXBU': |
|
319 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Rexburg, Idaho, United States'); |
|
320 | - case 'SACRA': |
|
321 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Sacramento, California, United States'); |
|
322 | - case 'SANSA': |
|
323 | - return /* I18N: Location of an LDS church temple */ I18N::translate('San Salvador, El Salvador'); |
|
324 | - case 'SANTI': |
|
325 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Santiago, Chile'); |
|
326 | - case 'SANTO': |
|
327 | - return /* I18N: Location of an LDS church temple */ I18N::translate('San Antonio, Texas, United States'); |
|
328 | - case 'SDIEG': |
|
329 | - return /* I18N: Location of an LDS church temple */ I18N::translate('San Diego, California, United States'); |
|
330 | - case 'SDOMI': |
|
331 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Santo Domingo, Dominican Republic'); |
|
332 | - case 'SEATT': |
|
333 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Seattle, Washington, United States'); |
|
334 | - case 'SEOUL': |
|
335 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Seoul, Korea'); |
|
336 | - case 'SGEOR': |
|
337 | - return /* I18N: Location of an LDS church temple */ I18N::translate('St. George, Utah, United States'); |
|
338 | - case 'SJOSE': |
|
339 | - return /* I18N: Location of an LDS church temple */ I18N::translate('San Jose, Costa Rica'); |
|
340 | - case 'SLAKE': |
|
341 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Salt Lake City, Utah, United States'); |
|
342 | - case 'SLOUI': |
|
343 | - return /* I18N: Location of an LDS church temple */ I18N::translate('St. Louis, Missouri, United States'); |
|
344 | - case 'SNOWF': |
|
345 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Snowflake, Arizona, United States'); |
|
346 | - case 'SPAUL': |
|
347 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Sao Paulo, Brazil'); |
|
348 | - case 'SPMIN': |
|
349 | - return /* I18N: Location of an LDS church temple */ I18N::translate('St. Paul, Minnesota, United States'); |
|
350 | - case 'SPOKA': |
|
351 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Spokane, Washington, United States'); |
|
352 | - case 'STOCK': |
|
353 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Stockholm, Sweden'); |
|
354 | - case 'SUVA': |
|
355 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Suva, Fiji'); |
|
356 | - case 'SWISS': |
|
357 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Bern, Switzerland'); |
|
358 | - case 'SYDNE': |
|
359 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Sydney, Australia'); |
|
360 | - case 'TAIPE': |
|
361 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Taipei, Taiwan'); |
|
362 | - case 'TAMPI': |
|
363 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Tampico, Mexico'); |
|
364 | - case 'TEGUC': |
|
365 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Tegucigalpa, Honduras'); |
|
366 | - case 'TGUTI': |
|
367 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Tuxtla Gutierrez, Mexico'); |
|
368 | - case 'TIJUA': |
|
369 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Tijuana, Mexico'); |
|
370 | - case 'TOKYO': |
|
371 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Tokyo, Japan'); |
|
372 | - case 'TORNO': |
|
373 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Toronto, Ontario, Canada'); |
|
374 | - case 'TRUJI': |
|
375 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Trujillo, Peru'); |
|
376 | - case 'TWINF': |
|
377 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Twin Falls, Idaho, United States'); |
|
378 | - case 'VANCO': |
|
379 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Vancouver, British Columbia, Canada'); |
|
380 | - case 'VERAC': |
|
381 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Veracruz, Mexico'); |
|
382 | - case 'VERNA': |
|
383 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Vernal, Utah, United States'); |
|
384 | - case 'VILLA': |
|
385 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Villa Hermosa, Mexico'); |
|
386 | - case 'WASHI': |
|
387 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Washington, District of Columbia, United States'); |
|
388 | - case 'WINTE': |
|
389 | - return /* I18N: Location of an LDS church temple */ I18N::translate('Winter Quarters, Nebraska, United States'); |
|
390 | - default: |
|
391 | - return $temple_code; |
|
80 | + case 'ABA': |
|
81 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Aba, Nigeria'); |
|
82 | + case 'ACCRA': |
|
83 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Accra, Ghana'); |
|
84 | + case 'ADELA': |
|
85 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Adelaide, Australia'); |
|
86 | + case 'ALBER': |
|
87 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Cardston, Alberta, Canada'); |
|
88 | + case 'ALBUQ': |
|
89 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Albuquerque, New Mexico, United States'); |
|
90 | + case 'ANCHO': |
|
91 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Anchorage, Alaska, United States'); |
|
92 | + case 'APIA': |
|
93 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Apia, Samoa'); |
|
94 | + case 'ARIZO': |
|
95 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Mesa, Arizona, United States'); |
|
96 | + case 'ASUNC': |
|
97 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Asuncion, Paraguay'); |
|
98 | + case 'ATLAN': |
|
99 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Atlanta, Georgia, United States'); |
|
100 | + case 'BAIRE': |
|
101 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Buenos Aires, Argentina'); |
|
102 | + case 'BILLI': |
|
103 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Billings, Montana, United States'); |
|
104 | + case 'BIRMI': |
|
105 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Birmingham, Alabama, United States'); |
|
106 | + case 'BISMA': |
|
107 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Bismarck, North Dakota, United States'); |
|
108 | + case 'BOGOT': |
|
109 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Bogota, Colombia'); |
|
110 | + case 'BOISE': |
|
111 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Boise, Idaho, United States'); |
|
112 | + case 'BOSTO': |
|
113 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Boston, Massachusetts, United States'); |
|
114 | + case 'BOUNT': |
|
115 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Bountiful, Utah, United States'); |
|
116 | + case 'BRIGH': |
|
117 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Brigham City, Utah, United States'); |
|
118 | + case 'BRISB': |
|
119 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Brisbane, Australia'); |
|
120 | + case 'BROUG': |
|
121 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Baton Rouge, Louisiana, United States'); |
|
122 | + case 'CALGA': |
|
123 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Calgary, Alberta, Canada'); |
|
124 | + case 'CAMPI': |
|
125 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Campinas, Brazil'); |
|
126 | + case 'CARAC': |
|
127 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Caracas, Venezuela'); |
|
128 | + case 'CEBUP': |
|
129 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Cebu City, Philippines'); |
|
130 | + case 'CHICA': |
|
131 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Chicago, Illinois, United States'); |
|
132 | + case 'CIUJU': |
|
133 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Ciudad Juarez, Mexico'); |
|
134 | + case 'COCHA': |
|
135 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Cochabamba, Bolivia'); |
|
136 | + case 'COLJU': |
|
137 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Colonia Juarez, Mexico'); |
|
138 | + case 'COLSC': |
|
139 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Columbia, South Carolina, United States'); |
|
140 | + case 'COLUM': |
|
141 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Columbus, Ohio, United States'); |
|
142 | + case 'COPEN': |
|
143 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Copenhagen, Denmark'); |
|
144 | + case 'CORDO': |
|
145 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Cordoba, Argentina'); |
|
146 | + case 'CRIVE': |
|
147 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Columbia River, Washington, United States'); |
|
148 | + case 'CURIT': |
|
149 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Curitiba, Brazil'); |
|
150 | + case 'DALLA': |
|
151 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Dallas, Texas, United States'); |
|
152 | + case 'DENVE': |
|
153 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Denver, Colorado, United States'); |
|
154 | + case 'DETRO': |
|
155 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Detroit, Michigan, United States'); |
|
156 | + case 'DRAPE': |
|
157 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Draper, Utah, United States'); |
|
158 | + case 'EDMON': |
|
159 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Edmonton, Alberta, Canada'); |
|
160 | + case 'EHOUS': |
|
161 | + return /* I18N: Location of an historic LDS church temple - http://en.wikipedia.org/wiki/Endowment_house */ I18N::translate('Endowment House'); |
|
162 | + case 'FORTL': |
|
163 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Fort Lauderdale, Florida, United States'); |
|
164 | + case 'FRANK': |
|
165 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Frankfurt am Main, Germany'); |
|
166 | + case 'FREIB': |
|
167 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Freiburg, Germany'); |
|
168 | + case 'FRESN': |
|
169 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Fresno, California, United States'); |
|
170 | + case 'FUKUO': |
|
171 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Fukuoka, Japan'); |
|
172 | + case 'GILAV': |
|
173 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Gila Valley, Arizona, United States'); |
|
174 | + case 'GILBE': |
|
175 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Gilbert, Arizona, United States'); |
|
176 | + case 'GUADA': |
|
177 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Guadalajara, Mexico'); |
|
178 | + case 'GUATE': |
|
179 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Guatemala City, Guatemala'); |
|
180 | + case 'GUAYA': |
|
181 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Guayaquil, Ecuador'); |
|
182 | + case 'HAGUE': |
|
183 | + return /* I18N: Location of an LDS church temple */ I18N::translate('The Hague, Netherlands'); |
|
184 | + case 'HALIF': |
|
185 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Halifax, Nova Scotia, Canada'); |
|
186 | + case 'HARTF': |
|
187 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Hartford, Connecticut, United States'); |
|
188 | + case 'HAWAI': |
|
189 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Laie, Hawaii, United States'); |
|
190 | + case 'HELSI': |
|
191 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Helsinki, Finland'); |
|
192 | + case 'HERMO': |
|
193 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Hermosillo, Mexico'); |
|
194 | + case 'HKONG': |
|
195 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Hong Kong'); |
|
196 | + case 'HOUST': |
|
197 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Houston, Texas, United States'); |
|
198 | + case 'IFALL': |
|
199 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Idaho Falls, Idaho, United States'); |
|
200 | + case 'INDIA': |
|
201 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Indianapolis, Indiana, United States'); |
|
202 | + case 'JOHAN': |
|
203 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Johannesburg, South Africa'); |
|
204 | + case 'JRIVE': |
|
205 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Jordan River, Utah, United States'); |
|
206 | + case 'KANSA': |
|
207 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Kansas City, Missouri, United States'); |
|
208 | + case 'KONA': |
|
209 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Kona, Hawaii, United States'); |
|
210 | + case 'KYIV': |
|
211 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Kiev, Ukraine'); |
|
212 | + case 'LANGE': |
|
213 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Los Angeles, California, United States'); |
|
214 | + case 'LIMA': |
|
215 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Lima, Peru'); |
|
216 | + case 'LOGAN': |
|
217 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Logan, Utah, United States'); |
|
218 | + case 'LONDO': |
|
219 | + return /* I18N: Location of an LDS church temple */ I18N::translate('London, England'); |
|
220 | + case 'LOUIS': |
|
221 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Louisville, Kentucky, United States'); |
|
222 | + case 'LUBBO': |
|
223 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Lubbock, Texas, United States'); |
|
224 | + case 'LVEGA': |
|
225 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Las Vegas, Nevada, United States'); |
|
226 | + case 'MADRI': |
|
227 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Madrid, Spain'); |
|
228 | + case 'MANAU': |
|
229 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Manaus, Brazil'); |
|
230 | + case 'MANHA': |
|
231 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Manhattan, New York, United States'); |
|
232 | + case 'MANIL': |
|
233 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Manila, Philippines'); |
|
234 | + case 'MANTI': |
|
235 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Manti, Utah, United States'); |
|
236 | + case 'MEDFO': |
|
237 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Medford, Oregon, United States'); |
|
238 | + case 'MELBO': |
|
239 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Melbourne, Australia'); |
|
240 | + case 'MEMPH': |
|
241 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Memphis, Tennessee, United States'); |
|
242 | + case 'MERID': |
|
243 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Merida, Mexico'); |
|
244 | + case 'MEXIC': |
|
245 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Mexico City, Mexico'); |
|
246 | + case 'MNTVD': |
|
247 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Montevideo, Uruguay'); |
|
248 | + case 'MONTE': |
|
249 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Monterrey, Mexico'); |
|
250 | + case 'MONTI': |
|
251 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Monticello, Utah, United States'); |
|
252 | + case 'MONTR': |
|
253 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Montreal, Quebec, Canada'); |
|
254 | + case 'MTIMP': |
|
255 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Mount Timpanogos, Utah, United States'); |
|
256 | + case 'NASHV': |
|
257 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Nashville, Tennessee, United States'); |
|
258 | + case 'NAUV2': |
|
259 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Nauvoo (new), Illinois, United States'); |
|
260 | + case 'NAUVO': |
|
261 | + return /* I18N: Location of an historic LDS church temple */ I18N::translate('Nauvoo (original), Illinois, United States'); |
|
262 | + case 'NBEAC': |
|
263 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Newport Beach, California, United States'); |
|
264 | + case 'NUKUA': |
|
265 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Nuku’Alofa, Tonga'); |
|
266 | + case 'NYORK': |
|
267 | + return /* I18N: Location of an historic LDS church temple */ I18N::translate('New York, New York, United States'); |
|
268 | + case 'NZEAL': |
|
269 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Hamilton, New Zealand'); |
|
270 | + case 'OAKLA': |
|
271 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Oakland, California, United States'); |
|
272 | + case 'OAXAC': |
|
273 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Oaxaca, Mexico'); |
|
274 | + case 'OGDEN': |
|
275 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Ogden, Utah, United States'); |
|
276 | + case 'OKLAH': |
|
277 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Oklahoma City, Oklahoma, United States'); |
|
278 | + case 'OQUIR': |
|
279 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Oquirrh Mountain, Utah, United States'); |
|
280 | + case 'ORLAN': |
|
281 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Orlando, Florida, United States'); |
|
282 | + case 'PALEG': |
|
283 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Porto Alegre, Brazil'); |
|
284 | + case 'PALMY': |
|
285 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Palmyra, New York, United States'); |
|
286 | + case 'PANAM': |
|
287 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Panama City, Panama'); |
|
288 | + case 'PAPEE': |
|
289 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Papeete, Tahiti'); |
|
290 | + case 'PAYSO': |
|
291 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Payson, Utah, United States'); |
|
292 | + case 'PERTH': |
|
293 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Perth, Australia'); |
|
294 | + case 'PHOEN': |
|
295 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Phoenix, Arizona, United States'); |
|
296 | + case 'POFFI': |
|
297 | + return /* I18N: I18N: Location of an historic LDS church temple - http://en.wikipedia.org/wiki/President_of_the_Church */ I18N::translate('President’s Office'); |
|
298 | + case 'PORTL': |
|
299 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Portland, Oregon, United States'); |
|
300 | + case 'PREST': |
|
301 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Preston, England'); |
|
302 | + case 'PROCC': |
|
303 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Provo City Center, Utah, United States'); |
|
304 | + case 'PROVO': |
|
305 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Provo, Utah, United States'); |
|
306 | + case 'QUETZ': |
|
307 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Quetzaltenango, Guatemala'); |
|
308 | + case 'RALEI': |
|
309 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Raleigh, North Carolina, United States'); |
|
310 | + case 'RECIF': |
|
311 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Recife, Brazil'); |
|
312 | + case 'REDLA': |
|
313 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Redlands, California, United States'); |
|
314 | + case 'REGIN': |
|
315 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Regina, Saskatchewan, Canada'); |
|
316 | + case 'RENO': |
|
317 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Reno, Nevada, United States'); |
|
318 | + case 'REXBU': |
|
319 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Rexburg, Idaho, United States'); |
|
320 | + case 'SACRA': |
|
321 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Sacramento, California, United States'); |
|
322 | + case 'SANSA': |
|
323 | + return /* I18N: Location of an LDS church temple */ I18N::translate('San Salvador, El Salvador'); |
|
324 | + case 'SANTI': |
|
325 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Santiago, Chile'); |
|
326 | + case 'SANTO': |
|
327 | + return /* I18N: Location of an LDS church temple */ I18N::translate('San Antonio, Texas, United States'); |
|
328 | + case 'SDIEG': |
|
329 | + return /* I18N: Location of an LDS church temple */ I18N::translate('San Diego, California, United States'); |
|
330 | + case 'SDOMI': |
|
331 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Santo Domingo, Dominican Republic'); |
|
332 | + case 'SEATT': |
|
333 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Seattle, Washington, United States'); |
|
334 | + case 'SEOUL': |
|
335 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Seoul, Korea'); |
|
336 | + case 'SGEOR': |
|
337 | + return /* I18N: Location of an LDS church temple */ I18N::translate('St. George, Utah, United States'); |
|
338 | + case 'SJOSE': |
|
339 | + return /* I18N: Location of an LDS church temple */ I18N::translate('San Jose, Costa Rica'); |
|
340 | + case 'SLAKE': |
|
341 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Salt Lake City, Utah, United States'); |
|
342 | + case 'SLOUI': |
|
343 | + return /* I18N: Location of an LDS church temple */ I18N::translate('St. Louis, Missouri, United States'); |
|
344 | + case 'SNOWF': |
|
345 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Snowflake, Arizona, United States'); |
|
346 | + case 'SPAUL': |
|
347 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Sao Paulo, Brazil'); |
|
348 | + case 'SPMIN': |
|
349 | + return /* I18N: Location of an LDS church temple */ I18N::translate('St. Paul, Minnesota, United States'); |
|
350 | + case 'SPOKA': |
|
351 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Spokane, Washington, United States'); |
|
352 | + case 'STOCK': |
|
353 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Stockholm, Sweden'); |
|
354 | + case 'SUVA': |
|
355 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Suva, Fiji'); |
|
356 | + case 'SWISS': |
|
357 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Bern, Switzerland'); |
|
358 | + case 'SYDNE': |
|
359 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Sydney, Australia'); |
|
360 | + case 'TAIPE': |
|
361 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Taipei, Taiwan'); |
|
362 | + case 'TAMPI': |
|
363 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Tampico, Mexico'); |
|
364 | + case 'TEGUC': |
|
365 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Tegucigalpa, Honduras'); |
|
366 | + case 'TGUTI': |
|
367 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Tuxtla Gutierrez, Mexico'); |
|
368 | + case 'TIJUA': |
|
369 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Tijuana, Mexico'); |
|
370 | + case 'TOKYO': |
|
371 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Tokyo, Japan'); |
|
372 | + case 'TORNO': |
|
373 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Toronto, Ontario, Canada'); |
|
374 | + case 'TRUJI': |
|
375 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Trujillo, Peru'); |
|
376 | + case 'TWINF': |
|
377 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Twin Falls, Idaho, United States'); |
|
378 | + case 'VANCO': |
|
379 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Vancouver, British Columbia, Canada'); |
|
380 | + case 'VERAC': |
|
381 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Veracruz, Mexico'); |
|
382 | + case 'VERNA': |
|
383 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Vernal, Utah, United States'); |
|
384 | + case 'VILLA': |
|
385 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Villa Hermosa, Mexico'); |
|
386 | + case 'WASHI': |
|
387 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Washington, District of Columbia, United States'); |
|
388 | + case 'WINTE': |
|
389 | + return /* I18N: Location of an LDS church temple */ I18N::translate('Winter Quarters, Nebraska, United States'); |
|
390 | + default: |
|
391 | + return $temple_code; |
|
392 | 392 | } |
393 | 393 | } |
394 | 394 |