Completed
Push — 1.7 ( ce7091...0d97cf )
by Greg
14:14 queued 07:41
created
app/GedcomRecord.php 1 patch
Switch Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -198,27 +198,27 @@  discard block
 block discarded – undo
198 198
 		}
199 199
 
200 200
 		switch ($type) {
201
-		case 'INDI':
202
-			$record = new Individual($xref, $gedcom, $pending, $tree);
203
-			break;
204
-		case 'FAM':
205
-			$record = new Family($xref, $gedcom, $pending, $tree);
206
-			break;
207
-		case 'SOUR':
208
-			$record = new Source($xref, $gedcom, $pending, $tree);
209
-			break;
210
-		case 'OBJE':
211
-			$record = new Media($xref, $gedcom, $pending, $tree);
212
-			break;
213
-		case 'REPO':
214
-			$record = new Repository($xref, $gedcom, $pending, $tree);
215
-			break;
216
-		case 'NOTE':
217
-			$record = new Note($xref, $gedcom, $pending, $tree);
218
-			break;
219
-		default:
220
-			$record = new self($xref, $gedcom, $pending, $tree);
221
-			break;
201
+		    case 'INDI':
202
+			    $record = new Individual($xref, $gedcom, $pending, $tree);
203
+			    break;
204
+		    case 'FAM':
205
+			    $record = new Family($xref, $gedcom, $pending, $tree);
206
+			    break;
207
+		    case 'SOUR':
208
+			    $record = new Source($xref, $gedcom, $pending, $tree);
209
+			    break;
210
+		    case 'OBJE':
211
+			    $record = new Media($xref, $gedcom, $pending, $tree);
212
+			    break;
213
+		    case 'REPO':
214
+			    $record = new Repository($xref, $gedcom, $pending, $tree);
215
+			    break;
216
+		    case 'NOTE':
217
+			    $record = new Note($xref, $gedcom, $pending, $tree);
218
+			    break;
219
+		    default:
220
+			    $record = new self($xref, $gedcom, $pending, $tree);
221
+			    break;
222 222
 		}
223 223
 
224 224
 		// Store it in the cache
@@ -437,31 +437,31 @@  discard block
 block discarded – undo
437 437
 // CACHING: this function can take three different parameters,
438 438
 		// and therefore needs three different caches for the result.
439 439
 		switch ($access_level) {
440
-		case Auth::PRIV_PRIVATE: // visitor
441
-			if ($this->disp_public === null) {
442
-				$this->disp_public = $this->canShowRecord(Auth::PRIV_PRIVATE);
443
-			}
444
-
445
-			return $this->disp_public;
446
-		case Auth::PRIV_USER: // member
447
-			if ($this->disp_user === null) {
448
-				$this->disp_user = $this->canShowRecord(Auth::PRIV_USER);
449
-			}
450
-
451
-			return $this->disp_user;
452
-		case Auth::PRIV_NONE: // admin
453
-			if ($this->disp_none === null) {
454
-				$this->disp_none = $this->canShowRecord(Auth::PRIV_NONE);
455
-			}
456
-
457
-			return $this->disp_none;
458
-		case Auth::PRIV_HIDE: // hidden from admins
459
-			// We use this value to bypass privacy checks. For example,
460
-			// when downloading data or when calculating privacy itself.
461
-			return true;
462
-		default:
463
-			// Should never get here.
464
-			return false;
440
+		    case Auth::PRIV_PRIVATE: // visitor
441
+			    if ($this->disp_public === null) {
442
+				    $this->disp_public = $this->canShowRecord(Auth::PRIV_PRIVATE);
443
+			    }
444
+
445
+			    return $this->disp_public;
446
+		    case Auth::PRIV_USER: // member
447
+			    if ($this->disp_user === null) {
448
+				    $this->disp_user = $this->canShowRecord(Auth::PRIV_USER);
449
+			    }
450
+
451
+			    return $this->disp_user;
452
+		    case Auth::PRIV_NONE: // admin
453
+			    if ($this->disp_none === null) {
454
+				    $this->disp_none = $this->canShowRecord(Auth::PRIV_NONE);
455
+			    }
456
+
457
+			    return $this->disp_none;
458
+		    case Auth::PRIV_HIDE: // hidden from admins
459
+			    // We use this value to bypass privacy checks. For example,
460
+			    // when downloading data or when calculating privacy itself.
461
+			    return true;
462
+		    default:
463
+			    // Should never get here.
464
+			    return false;
465 465
 		}
466 466
 	}
467 467
 
@@ -816,10 +816,10 @@  discard block
 block discarded – undo
816 816
 			}
817 817
 			if ($event->getDate()->isOK() || !$event->getPlace()->isEmpty()) {
818 818
 				switch ($style) {
819
-				case 1:
820
-					return '<br><em>' . $event->getLabel() . ' ' . FunctionsPrint::formatFactDate($event, $this, false, false) . $joiner . FunctionsPrint::formatFactPlace($event) . '</em>';
821
-				case 2:
822
-					return '<dl><dt class="label">' . $event->getLabel() . '</dt><dd class="field">' . FunctionsPrint::formatFactDate($event, $this, false, false) . $joiner . FunctionsPrint::formatFactPlace($event) . '</dd></dl>';
819
+				    case 1:
820
+					    return '<br><em>' . $event->getLabel() . ' ' . FunctionsPrint::formatFactDate($event, $this, false, false) . $joiner . FunctionsPrint::formatFactPlace($event) . '</em>';
821
+				    case 2:
822
+					    return '<dl><dt class="label">' . $event->getLabel() . '</dt><dd class="field">' . FunctionsPrint::formatFactDate($event, $this, false, false) . $joiner . FunctionsPrint::formatFactPlace($event) . '</dd></dl>';
823 823
 				}
824 824
 			}
825 825
 		}
Please login to merge, or discard this patch.
app/SurnameTradition.php 1 patch
Switch Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -39,24 +39,24 @@
 block discarded – undo
39 39
 	 */
40 40
 	public static function create($name) {
41 41
 		switch ($name) {
42
-		case 'paternal':
43
-			return new PaternalSurnameTradition;
44
-		case 'patrilineal':
45
-			return new PatrilinealSurnameTradition;
46
-		case 'matrilineal':
47
-			return new MatrilinealSurnameTradition;
48
-		case 'portuguese':
49
-			return new PortugueseSurnameTradition;
50
-		case 'spanish':
51
-			return new SpanishSurnameTradition;
52
-		case 'polish':
53
-			return new PolishSurnameTradition;
54
-		case 'lithuanian':
55
-			return new LithuanianSurnameTradition;
56
-		case 'icelandic':
57
-			return new IcelandicSurnameTradition;
58
-		default:
59
-			return new DefaultSurnameTradition;
42
+		    case 'paternal':
43
+			    return new PaternalSurnameTradition;
44
+		    case 'patrilineal':
45
+			    return new PatrilinealSurnameTradition;
46
+		    case 'matrilineal':
47
+			    return new MatrilinealSurnameTradition;
48
+		    case 'portuguese':
49
+			    return new PortugueseSurnameTradition;
50
+		    case 'spanish':
51
+			    return new SpanishSurnameTradition;
52
+		    case 'polish':
53
+			    return new PolishSurnameTradition;
54
+		    case 'lithuanian':
55
+			    return new LithuanianSurnameTradition;
56
+		    case 'icelandic':
57
+			    return new IcelandicSurnameTradition;
58
+		    default:
59
+			    return new DefaultSurnameTradition;
60 60
 		}
61 61
 	}
62 62
 
Please login to merge, or discard this patch.
app/GedcomCode/GedcomCodeStat.php 1 patch
Switch Indentation   +70 added lines, -70 removed lines patch added patch discarded remove patch
@@ -30,21 +30,21 @@  discard block
 block discarded – undo
30 30
 	 */
31 31
 	public static function statusCodes($tag) {
32 32
 		switch ($tag) {
33
-		case 'BAPL':
34
-		case 'CONL':
35
-			// LDS_BAPTISM_DATE_STATUS
36
-			return array('CHILD', 'COMPLETED', 'EXCLUDED', 'INFANT', 'PRE-1970', 'STILLBORN', 'SUBMITTED', 'UNCLEARED');
37
-		case 'ENDL':
38
-			// LDS_ENDOWMENT_DATE_STATUS
39
-			return array('CHILD', 'COMPLETED', 'EXCLUDED', 'INFANT', 'PRE-1970', 'STILLBORN', 'SUBMITTED', 'UNCLEARED');
40
-		case 'SLGC':
41
-			// LDS_CHILD_SEALING_DATE_STATUS
42
-			return array('BIC', 'COMPLETED', 'EXCLUDED', 'PRE-1970', 'STILLBORN', 'SUBMITTED', 'UNCLEARED');
43
-		case 'SLGS':
44
-			// LDS_SPOUSE_SEALING_DATE_STATUS
45
-			return array('CANCELED', 'COMPLETED', 'DNS', 'DNS/CAN', 'EXCLUDED', 'PRE-1970', 'SUBMITTED', 'UNCLEARED');
46
-		default:
47
-			throw new \InvalidArgumentException('Internal error - bad argument to GedcomCodeStat::statusCodes("' . $tag . '")');
33
+		    case 'BAPL':
34
+		    case 'CONL':
35
+			    // LDS_BAPTISM_DATE_STATUS
36
+			    return array('CHILD', 'COMPLETED', 'EXCLUDED', 'INFANT', 'PRE-1970', 'STILLBORN', 'SUBMITTED', 'UNCLEARED');
37
+		    case 'ENDL':
38
+			    // LDS_ENDOWMENT_DATE_STATUS
39
+			    return array('CHILD', 'COMPLETED', 'EXCLUDED', 'INFANT', 'PRE-1970', 'STILLBORN', 'SUBMITTED', 'UNCLEARED');
40
+		    case 'SLGC':
41
+			    // LDS_CHILD_SEALING_DATE_STATUS
42
+			    return array('BIC', 'COMPLETED', 'EXCLUDED', 'PRE-1970', 'STILLBORN', 'SUBMITTED', 'UNCLEARED');
43
+		    case 'SLGS':
44
+			    // LDS_SPOUSE_SEALING_DATE_STATUS
45
+			    return array('CANCELED', 'COMPLETED', 'DNS', 'DNS/CAN', 'EXCLUDED', 'PRE-1970', 'SUBMITTED', 'UNCLEARED');
46
+		    default:
47
+			    throw new \InvalidArgumentException('Internal error - bad argument to GedcomCodeStat::statusCodes("' . $tag . '")');
48 48
 		}
49 49
 	}
50 50
 
@@ -57,61 +57,61 @@  discard block
 block discarded – undo
57 57
 	 */
58 58
 	public static function statusName($status_code) {
59 59
 		switch ($status_code) {
60
-		case 'BIC':
61
-			return
62
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
63
-				I18N::translate('Born in the covenant');
64
-		case 'CANCELED':
65
-			return
66
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
67
-				I18N::translate('Sealing canceled (divorce)');
68
-		case 'CHILD':
69
-			return
70
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
71
-				I18N::translate('Died as a child: exempt');
72
-		case 'CLEARED':
73
-			// This status appears in PhpGedView, but not in the GEDCOM 5.5.1 specification.
74
-			return
75
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
76
-				I18N::translate('Cleared but not yet completed');
77
-		case 'COMPLETED':
78
-			return
79
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
80
-				I18N::translate('Completed; date unknown');
81
-		case 'DNS':
82
-			return
83
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
84
-				I18N::translate('Do not seal: unauthorized');
85
-		case 'DNS/CAN':
86
-			return
87
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
88
-				I18N::translate('Do not seal, previous sealing canceled');
89
-		case 'EXCLUDED':
90
-			return
91
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
92
-				I18N::translate('Excluded from this submission');
93
-		case 'INFANT':
94
-			return
95
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
96
-				I18N::translate('Died as an infant: exempt');
97
-		case 'PRE-1970':
98
-			return
99
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
100
-				I18N::translate('Completed before 1970; date not available');
101
-		case 'STILLBORN':
102
-			return
103
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
104
-				I18N::translate('Stillborn: exempt');
105
-		case 'SUBMITTED':
106
-			return
107
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
108
-				I18N::translate('Submitted but not yet cleared');
109
-		case 'UNCLEARED':
110
-			return
111
-				/* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
112
-				I18N::translate('Uncleared: insufficient data');
113
-		default:
114
-			return $status_code;
60
+		    case 'BIC':
61
+			    return
62
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
63
+				    I18N::translate('Born in the covenant');
64
+		    case 'CANCELED':
65
+			    return
66
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
67
+				    I18N::translate('Sealing canceled (divorce)');
68
+		    case 'CHILD':
69
+			    return
70
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
71
+				    I18N::translate('Died as a child: exempt');
72
+		    case 'CLEARED':
73
+			    // This status appears in PhpGedView, but not in the GEDCOM 5.5.1 specification.
74
+			    return
75
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
76
+				    I18N::translate('Cleared but not yet completed');
77
+		    case 'COMPLETED':
78
+			    return
79
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
80
+				    I18N::translate('Completed; date unknown');
81
+		    case 'DNS':
82
+			    return
83
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
84
+				    I18N::translate('Do not seal: unauthorized');
85
+		    case 'DNS/CAN':
86
+			    return
87
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
88
+				    I18N::translate('Do not seal, previous sealing canceled');
89
+		    case 'EXCLUDED':
90
+			    return
91
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
92
+				    I18N::translate('Excluded from this submission');
93
+		    case 'INFANT':
94
+			    return
95
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
96
+				    I18N::translate('Died as an infant: exempt');
97
+		    case 'PRE-1970':
98
+			    return
99
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
100
+				    I18N::translate('Completed before 1970; date not available');
101
+		    case 'STILLBORN':
102
+			    return
103
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
104
+				    I18N::translate('Stillborn: exempt');
105
+		    case 'SUBMITTED':
106
+			    return
107
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
108
+				    I18N::translate('Submitted but not yet cleared');
109
+		    case 'UNCLEARED':
110
+			    return
111
+				    /* I18N: LDS sealing status; see http://en.wikipedia.org/wiki/Sealing_(Latter_Day_Saints) */
112
+				    I18N::translate('Uncleared: insufficient data');
113
+		    default:
114
+			    return $status_code;
115 115
 		}
116 116
 	}
117 117
 
Please login to merge, or discard this patch.
app/GedcomCode/GedcomCodeName.php 1 patch
Switch Indentation   +103 added lines, -103 removed lines patch added patch discarded remove patch
@@ -42,109 +42,109 @@
 block discarded – undo
42 42
 		}
43 43
 
44 44
 		switch ($type) {
45
-		case 'adopted':
46
-			switch ($sex) {
47
-			case 'M':
48
-				/* I18N: The name given to a child by its adoptive parents */
49
-				return I18N::translateContext('MALE', 'adopted name');
50
-			case 'F':
51
-				/* I18N: The name given to a child by its adoptive parents */
52
-				return I18N::translateContext('FEMALE', 'adopted name');
53
-			default:
54
-				/* I18N: The name given to a child by its adoptive parents */
55
-				return I18N::translate('adopted name');
56
-			}
57
-		case 'aka':
58
-			switch ($sex) {
59
-			case 'M':
60
-				/* I18N: The name by which an individual is also known. e.g. a professional name or a stage name */
61
-				return I18N::translateContext('MALE', 'also known as');
62
-			case 'F':
63
-				/* I18N: The name by which an individual is also known. e.g. a professional name or a stage name */
64
-				return I18N::translateContext('FEMALE', 'also known as');
65
-			default:
66
-				/* I18N: The name by which an individual is also known. e.g. a professional name or a stage name */
67
-				return I18N::translate('also known as');
68
-			}
69
-		case 'birth':
70
-			switch ($sex) {
71
-			case 'M':
72
-				/* I18N: The name given to an individual at their birth */
73
-				return I18N::translateContext('MALE', 'birth name');
74
-			case 'F':
75
-				/* I18N: The name given to an individual at their birth */
76
-				return I18N::translateContext('FEMALE', 'birth name');
77
-			default:
78
-				/* I18N: The name given to an individual at their birth */
79
-				return I18N::translate('birth name');
80
-			}
81
-		case 'change':
82
-			switch ($sex) {
83
-			case 'M':
84
-				/* I18N: A name chosen by an individual, to replace their existing name (whether legal or otherwise) */
85
-				return I18N::translateContext('MALE', 'change of name');
86
-			case 'F':
87
-				/* I18N: A name chosen by an individual, to replace their existing name (whether legal or otherwise) */
88
-				return I18N::translateContext('FEMALE', 'change of name');
89
-			default:
90
-				/* I18N: A name chosen by an individual, to replace their existing name (whether legal or otherwise) */
91
-				return I18N::translate('change of name');
92
-			}
93
-		case 'estate':
94
-			switch ($sex) {
95
-			case 'M':
96
-				/* I18N: A name given to an individual, from the farm or estate on which they lived or worked */
97
-				return I18N::translateContext('MALE', 'estate name');
98
-			case 'F':
99
-				/* I18N: A name given to an individual, from the farm or estate on which they lived or worked */
100
-				return I18N::translateContext('FEMALE', 'estate name');
101
-			default:
102
-				/* I18N: A name given to an individual, from the farm or estate on which they lived or worked */
103
-				return I18N::translate('estate name');
104
-			}
105
-		case 'immigrant':
106
-			switch ($sex) {
107
-			case 'M':
108
-				/* I18N: A name taken on immigration - e.g. migrants to the USA frequently anglicized their names */
109
-				return I18N::translateContext('MALE', 'immigration name');
110
-			case 'F':
111
-				/* I18N: A name taken on immigration - e.g. migrants to the USA frequently anglicized their names */
112
-				return I18N::translateContext('FEMALE', 'immigration name');
113
-			default:
114
-				/* I18N: A name taken on immigration - e.g. migrants to the USA frequently anglicized their names */
115
-				return I18N::translate('immigration name');
116
-			}
117
-		case 'maiden':
118
-			// Only women have “maiden” names!
119
-			return
120
-				/* I18N: A woman’s name, before she marries (in cultures where women take their new husband’s name on marriage) */
121
-				I18N::translate('maiden name');
122
-		case 'married':
123
-			switch ($sex) {
124
-			case 'M':
125
-				/* I18N: A name taken on marriage - usually the wife takes the husband’s surname */
126
-				return I18N::translateContext('MALE', 'married name');
127
-			case 'F':
128
-				/* I18N: A name taken on marriage - usually the wife takes the husband’s surname */
129
-				return I18N::translateContext('FEMALE', 'married name');
130
-			default:
131
-				/* I18N: A name taken on marriage - usually the wife takes the husband’s surname */
132
-				return I18N::translate('married name');
133
-			}
134
-		case 'religious':
135
-			switch ($sex) {
136
-			case 'M':
137
-				/* I18N: A name taken when entering a religion or a religious order */
138
-				return I18N::translateContext('MALE', 'religious name');
139
-			case 'F':
140
-				/* I18N: A name taken when entering a religion or a religious order */
141
-				return I18N::translateContext('FEMALE', 'religious name');
142
-			default:
143
-				/* I18N: A name taken when entering a religion or a religious order */
144
-				return I18N::translate('religious name');
145
-			}
146
-		default:
147
-			return $type;
45
+		    case 'adopted':
46
+			    switch ($sex) {
47
+			        case 'M':
48
+				        /* I18N: The name given to a child by its adoptive parents */
49
+				        return I18N::translateContext('MALE', 'adopted name');
50
+			        case 'F':
51
+				        /* I18N: The name given to a child by its adoptive parents */
52
+				        return I18N::translateContext('FEMALE', 'adopted name');
53
+			        default:
54
+				        /* I18N: The name given to a child by its adoptive parents */
55
+				        return I18N::translate('adopted name');
56
+			    }
57
+		    case 'aka':
58
+			    switch ($sex) {
59
+			        case 'M':
60
+				        /* I18N: The name by which an individual is also known. e.g. a professional name or a stage name */
61
+				        return I18N::translateContext('MALE', 'also known as');
62
+			        case 'F':
63
+				        /* I18N: The name by which an individual is also known. e.g. a professional name or a stage name */
64
+				        return I18N::translateContext('FEMALE', 'also known as');
65
+			        default:
66
+				        /* I18N: The name by which an individual is also known. e.g. a professional name or a stage name */
67
+				        return I18N::translate('also known as');
68
+			    }
69
+		    case 'birth':
70
+			    switch ($sex) {
71
+			        case 'M':
72
+				        /* I18N: The name given to an individual at their birth */
73
+				        return I18N::translateContext('MALE', 'birth name');
74
+			        case 'F':
75
+				        /* I18N: The name given to an individual at their birth */
76
+				        return I18N::translateContext('FEMALE', 'birth name');
77
+			        default:
78
+				        /* I18N: The name given to an individual at their birth */
79
+				        return I18N::translate('birth name');
80
+			    }
81
+		    case 'change':
82
+			    switch ($sex) {
83
+			        case 'M':
84
+				        /* I18N: A name chosen by an individual, to replace their existing name (whether legal or otherwise) */
85
+				        return I18N::translateContext('MALE', 'change of name');
86
+			        case 'F':
87
+				        /* I18N: A name chosen by an individual, to replace their existing name (whether legal or otherwise) */
88
+				        return I18N::translateContext('FEMALE', 'change of name');
89
+			        default:
90
+				        /* I18N: A name chosen by an individual, to replace their existing name (whether legal or otherwise) */
91
+				        return I18N::translate('change of name');
92
+			    }
93
+		    case 'estate':
94
+			    switch ($sex) {
95
+			        case 'M':
96
+				        /* I18N: A name given to an individual, from the farm or estate on which they lived or worked */
97
+				        return I18N::translateContext('MALE', 'estate name');
98
+			        case 'F':
99
+				        /* I18N: A name given to an individual, from the farm or estate on which they lived or worked */
100
+				        return I18N::translateContext('FEMALE', 'estate name');
101
+			        default:
102
+				        /* I18N: A name given to an individual, from the farm or estate on which they lived or worked */
103
+				        return I18N::translate('estate name');
104
+			    }
105
+		    case 'immigrant':
106
+			    switch ($sex) {
107
+			        case 'M':
108
+				        /* I18N: A name taken on immigration - e.g. migrants to the USA frequently anglicized their names */
109
+				        return I18N::translateContext('MALE', 'immigration name');
110
+			        case 'F':
111
+				        /* I18N: A name taken on immigration - e.g. migrants to the USA frequently anglicized their names */
112
+				        return I18N::translateContext('FEMALE', 'immigration name');
113
+			        default:
114
+				        /* I18N: A name taken on immigration - e.g. migrants to the USA frequently anglicized their names */
115
+				        return I18N::translate('immigration name');
116
+			    }
117
+		    case 'maiden':
118
+			    // Only women have “maiden” names!
119
+			    return
120
+				    /* I18N: A woman’s name, before she marries (in cultures where women take their new husband’s name on marriage) */
121
+				    I18N::translate('maiden name');
122
+		    case 'married':
123
+			    switch ($sex) {
124
+			        case 'M':
125
+				        /* I18N: A name taken on marriage - usually the wife takes the husband’s surname */
126
+				        return I18N::translateContext('MALE', 'married name');
127
+			        case 'F':
128
+				        /* I18N: A name taken on marriage - usually the wife takes the husband’s surname */
129
+				        return I18N::translateContext('FEMALE', 'married name');
130
+			        default:
131
+				        /* I18N: A name taken on marriage - usually the wife takes the husband’s surname */
132
+				        return I18N::translate('married name');
133
+			    }
134
+		    case 'religious':
135
+			    switch ($sex) {
136
+			        case 'M':
137
+				        /* I18N: A name taken when entering a religion or a religious order */
138
+				        return I18N::translateContext('MALE', 'religious name');
139
+			        case 'F':
140
+				        /* I18N: A name taken when entering a religion or a religious order */
141
+				        return I18N::translateContext('FEMALE', 'religious name');
142
+			        default:
143
+				        /* I18N: A name taken when entering a religion or a religious order */
144
+				        return I18N::translate('religious name');
145
+			    }
146
+		    default:
147
+			    return $type;
148 148
 		}
149 149
 	}
150 150
 
Please login to merge, or discard this patch.
app/GedcomCode/GedcomCodeRela.php 1 patch
Switch Indentation   +215 added lines, -215 removed lines patch added patch discarded remove patch
@@ -52,221 +52,221 @@
 block discarded – undo
52 52
 		}
53 53
 
54 54
 		switch ($type) {
55
-		case 'attendant':
56
-			switch ($sex) {
57
-			case 'M':
58
-				return I18N::translateContext('MALE', 'Attendant');
59
-			case 'F':
60
-				return I18N::translateContext('FEMALE', 'Attendant');
61
-			default:
62
-				return I18N::translate('Attendant');
63
-			}
64
-		case 'attending':
65
-			switch ($sex) {
66
-			case 'M':
67
-				return I18N::translateContext('MALE', 'Attending');
68
-			case 'F':
69
-				return I18N::translateContext('FEMALE', 'Attending');
70
-			default:
71
-				return I18N::translate('Attending');
72
-			}
73
-		case 'best_man':
74
-			// always male
75
-			return I18N::translate('Best man');
76
-		case 'bridesmaid':
77
-			// always female
78
-			return I18N::translate('Bridesmaid');
79
-		case 'buyer':
80
-			switch ($sex) {
81
-			case 'M':
82
-				return I18N::translateContext('MALE', 'Buyer');
83
-			case 'F':
84
-				return I18N::translateContext('FEMALE', 'Buyer');
85
-			default:
86
-				return I18N::translate('Buyer');
87
-			}
88
-		case 'circumciser':
89
-			// always male
90
-			return I18N::translate('Circumciser');
91
-		case 'civil_registrar':
92
-			switch ($sex) {
93
-			case 'M':
94
-				return I18N::translateContext('MALE', 'Civil registrar');
95
-			case 'F':
96
-				return I18N::translateContext('FEMALE', 'Civil registrar');
97
-			default:
98
-				return I18N::translate('Civil registrar');
99
-			}
100
-		case 'employee':
101
-			switch ($sex) {
102
-			case 'M':
103
-				return I18N::translateContext('MALE', 'Employee');
104
-			case 'F':
105
-				return I18N::translateContext('FEMALE', 'Employee');
106
-			default:
107
-				return I18N::translate('Employee');
108
-			}
109
-		case 'employer':
110
-			switch ($sex) {
111
-			case 'M':
112
-				return I18N::translateContext('MALE', 'Employer');
113
-			case 'F':
114
-				return I18N::translateContext('FEMALE', 'Employer');
115
-			default:
116
-				return I18N::translate('Employer');
117
-			}
118
-		case 'foster_child':
119
-			// no sex implied
120
-			return I18N::translate('Foster child');
121
-		case 'foster_father':
122
-			// always male
123
-			return I18N::translate('Foster father');
124
-		case 'foster_mother':
125
-			// always female
126
-			return I18N::translate('Foster mother');
127
-		case 'friend':
128
-			switch ($sex) {
129
-			case 'M':
130
-				return I18N::translateContext('MALE', 'Friend');
131
-			case 'F':
132
-				return I18N::translateContext('FEMALE', 'Friend');
133
-			default:
134
-				return I18N::translate('Friend');
135
-			}
136
-		case 'godfather':
137
-			// always male
138
-			return I18N::translate('Godfather');
139
-		case 'godmother':
140
-			// always female
141
-			return I18N::translate('Godmother');
142
-		case 'godparent':
143
-			switch ($sex) {
144
-			case 'M':
145
-				return I18N::translate('Godfather');
146
-			case 'F':
147
-				return I18N::translate('Godmother');
148
-			default:
149
-				return I18N::translate('Godparent');
150
-			}
151
-		case 'godson':
152
-			// always male
153
-			return I18N::translate('Godson');
154
-		case 'goddaughter':
155
-			// always female
156
-			return I18N::translate('Goddaughter');
157
-		case 'godchild':
158
-			switch ($sex) {
159
-			case 'M':
160
-				return I18N::translate('Godson');
161
-			case 'F':
162
-				return I18N::translate('Goddaughter');
163
-			default:
164
-				return I18N::translate('Godchild');
165
-			}
166
-		case 'guardian':
167
-			switch ($sex) {
168
-			case 'M':
169
-				return I18N::translateContext('MALE', 'Guardian');
170
-			case 'F':
171
-				return I18N::translateContext('FEMALE', 'Guardian');
172
-			default:
173
-				return I18N::translate('Guardian');
174
-			}
175
-		case 'informant':
176
-			switch ($sex) {
177
-			case 'M':
178
-				return I18N::translateContext('MALE', 'Informant');
179
-			case 'F':
180
-				return I18N::translateContext('FEMALE', 'Informant');
181
-			default:
182
-				return I18N::translate('Informant');
183
-			}
184
-		case 'lodger':
185
-			switch ($sex) {
186
-			case 'M':
187
-				return I18N::translateContext('MALE', 'Lodger');
188
-			case 'F':
189
-				return I18N::translateContext('FEMALE', 'Lodger');
190
-			default:
191
-				return I18N::translate('Lodger');
192
-			}
193
-		case 'nanny':
194
-			// no sex implied
195
-			return I18N::translate('Nanny');
196
-		case 'nurse':
197
-			switch ($sex) {
198
-			case 'M':
199
-				return I18N::translateContext('MALE', 'Nurse');
200
-			case 'F':
201
-				return I18N::translateContext('FEMALE', 'Nurse');
202
-			default:
203
-				return I18N::translate('Nurse');
204
-			}
205
-		case 'owner':
206
-			switch ($sex) {
207
-			case 'M':
208
-				return I18N::translateContext('MALE', 'Owner');
209
-			case 'F':
210
-				return I18N::translateContext('FEMALE', 'Owner');
211
-			default:
212
-				return I18N::translate('Owner');
213
-			}
214
-		case 'priest':
215
-			// no sex implied
216
-			return I18N::translate('Priest');
217
-		case 'rabbi':
218
-			// always male
219
-			return I18N::translate('Rabbi');
220
-		case 'registry_officer':
221
-			switch ($sex) {
222
-			case 'M':
223
-				return I18N::translateContext('MALE', 'Registry officer');
224
-			case 'F':
225
-				return I18N::translateContext('FEMALE', 'Registry officer');
226
-			default:
227
-				return I18N::translate('Registry officer');
228
-			}
229
-		case 'seller':
230
-			switch ($sex) {
231
-			case 'M':
232
-				return I18N::translateContext('MALE', 'Seller');
233
-			case 'F':
234
-				return I18N::translateContext('FEMALE', 'Seller');
235
-			default:
236
-				return I18N::translate('Seller');
237
-			}
238
-		case 'servant':
239
-			switch ($sex) {
240
-			case 'M':
241
-				return I18N::translateContext('MALE', 'Servant');
242
-			case 'F':
243
-				return I18N::translateContext('FEMALE', 'Servant');
244
-			default:
245
-				return I18N::translate('Servant');
246
-			}
247
-		case 'slave':
248
-			switch ($sex) {
249
-			case 'M':
250
-				return I18N::translateContext('MALE', 'Slave');
251
-			case 'F':
252
-				return I18N::translateContext('FEMALE', 'Slave');
253
-			default:
254
-				return I18N::translate('Slave');
255
-			}
256
-		case 'ward':
257
-			switch ($sex) {
258
-			case 'M':
259
-				return I18N::translateContext('MALE', 'Ward');
260
-			case 'F':
261
-				return I18N::translateContext('FEMALE', 'Ward');
262
-			default:
263
-				return I18N::translate('Ward');
264
-			}
265
-		case 'witness':
266
-			// Do we need separate male/female translations for this?
267
-			return I18N::translate('Witness');
268
-		default:
269
-			return I18N::translate($type);
55
+		    case 'attendant':
56
+			    switch ($sex) {
57
+			        case 'M':
58
+				        return I18N::translateContext('MALE', 'Attendant');
59
+			        case 'F':
60
+				        return I18N::translateContext('FEMALE', 'Attendant');
61
+			        default:
62
+				        return I18N::translate('Attendant');
63
+			    }
64
+		    case 'attending':
65
+			    switch ($sex) {
66
+			        case 'M':
67
+				        return I18N::translateContext('MALE', 'Attending');
68
+			        case 'F':
69
+				        return I18N::translateContext('FEMALE', 'Attending');
70
+			        default:
71
+				        return I18N::translate('Attending');
72
+			    }
73
+		    case 'best_man':
74
+			    // always male
75
+			    return I18N::translate('Best man');
76
+		    case 'bridesmaid':
77
+			    // always female
78
+			    return I18N::translate('Bridesmaid');
79
+		    case 'buyer':
80
+			    switch ($sex) {
81
+			        case 'M':
82
+				        return I18N::translateContext('MALE', 'Buyer');
83
+			        case 'F':
84
+				        return I18N::translateContext('FEMALE', 'Buyer');
85
+			        default:
86
+				        return I18N::translate('Buyer');
87
+			    }
88
+		    case 'circumciser':
89
+			    // always male
90
+			    return I18N::translate('Circumciser');
91
+		    case 'civil_registrar':
92
+			    switch ($sex) {
93
+			        case 'M':
94
+				        return I18N::translateContext('MALE', 'Civil registrar');
95
+			        case 'F':
96
+				        return I18N::translateContext('FEMALE', 'Civil registrar');
97
+			        default:
98
+				        return I18N::translate('Civil registrar');
99
+			    }
100
+		    case 'employee':
101
+			    switch ($sex) {
102
+			        case 'M':
103
+				        return I18N::translateContext('MALE', 'Employee');
104
+			        case 'F':
105
+				        return I18N::translateContext('FEMALE', 'Employee');
106
+			        default:
107
+				        return I18N::translate('Employee');
108
+			    }
109
+		    case 'employer':
110
+			    switch ($sex) {
111
+			        case 'M':
112
+				        return I18N::translateContext('MALE', 'Employer');
113
+			        case 'F':
114
+				        return I18N::translateContext('FEMALE', 'Employer');
115
+			        default:
116
+				        return I18N::translate('Employer');
117
+			    }
118
+		    case 'foster_child':
119
+			    // no sex implied
120
+			    return I18N::translate('Foster child');
121
+		    case 'foster_father':
122
+			    // always male
123
+			    return I18N::translate('Foster father');
124
+		    case 'foster_mother':
125
+			    // always female
126
+			    return I18N::translate('Foster mother');
127
+		    case 'friend':
128
+			    switch ($sex) {
129
+			        case 'M':
130
+				        return I18N::translateContext('MALE', 'Friend');
131
+			        case 'F':
132
+				        return I18N::translateContext('FEMALE', 'Friend');
133
+			        default:
134
+				        return I18N::translate('Friend');
135
+			    }
136
+		    case 'godfather':
137
+			    // always male
138
+			    return I18N::translate('Godfather');
139
+		    case 'godmother':
140
+			    // always female
141
+			    return I18N::translate('Godmother');
142
+		    case 'godparent':
143
+			    switch ($sex) {
144
+			        case 'M':
145
+				        return I18N::translate('Godfather');
146
+			        case 'F':
147
+				        return I18N::translate('Godmother');
148
+			        default:
149
+				        return I18N::translate('Godparent');
150
+			    }
151
+		    case 'godson':
152
+			    // always male
153
+			    return I18N::translate('Godson');
154
+		    case 'goddaughter':
155
+			    // always female
156
+			    return I18N::translate('Goddaughter');
157
+		    case 'godchild':
158
+			    switch ($sex) {
159
+			        case 'M':
160
+				        return I18N::translate('Godson');
161
+			        case 'F':
162
+				        return I18N::translate('Goddaughter');
163
+			        default:
164
+				        return I18N::translate('Godchild');
165
+			    }
166
+		    case 'guardian':
167
+			    switch ($sex) {
168
+			        case 'M':
169
+				        return I18N::translateContext('MALE', 'Guardian');
170
+			        case 'F':
171
+				        return I18N::translateContext('FEMALE', 'Guardian');
172
+			        default:
173
+				        return I18N::translate('Guardian');
174
+			    }
175
+		    case 'informant':
176
+			    switch ($sex) {
177
+			        case 'M':
178
+				        return I18N::translateContext('MALE', 'Informant');
179
+			        case 'F':
180
+				        return I18N::translateContext('FEMALE', 'Informant');
181
+			        default:
182
+				        return I18N::translate('Informant');
183
+			    }
184
+		    case 'lodger':
185
+			    switch ($sex) {
186
+			        case 'M':
187
+				        return I18N::translateContext('MALE', 'Lodger');
188
+			        case 'F':
189
+				        return I18N::translateContext('FEMALE', 'Lodger');
190
+			        default:
191
+				        return I18N::translate('Lodger');
192
+			    }
193
+		    case 'nanny':
194
+			    // no sex implied
195
+			    return I18N::translate('Nanny');
196
+		    case 'nurse':
197
+			    switch ($sex) {
198
+			        case 'M':
199
+				        return I18N::translateContext('MALE', 'Nurse');
200
+			        case 'F':
201
+				        return I18N::translateContext('FEMALE', 'Nurse');
202
+			        default:
203
+				        return I18N::translate('Nurse');
204
+			    }
205
+		    case 'owner':
206
+			    switch ($sex) {
207
+			        case 'M':
208
+				        return I18N::translateContext('MALE', 'Owner');
209
+			        case 'F':
210
+				        return I18N::translateContext('FEMALE', 'Owner');
211
+			        default:
212
+				        return I18N::translate('Owner');
213
+			    }
214
+		    case 'priest':
215
+			    // no sex implied
216
+			    return I18N::translate('Priest');
217
+		    case 'rabbi':
218
+			    // always male
219
+			    return I18N::translate('Rabbi');
220
+		    case 'registry_officer':
221
+			    switch ($sex) {
222
+			        case 'M':
223
+				        return I18N::translateContext('MALE', 'Registry officer');
224
+			        case 'F':
225
+				        return I18N::translateContext('FEMALE', 'Registry officer');
226
+			        default:
227
+				        return I18N::translate('Registry officer');
228
+			    }
229
+		    case 'seller':
230
+			    switch ($sex) {
231
+			        case 'M':
232
+				        return I18N::translateContext('MALE', 'Seller');
233
+			        case 'F':
234
+				        return I18N::translateContext('FEMALE', 'Seller');
235
+			        default:
236
+				        return I18N::translate('Seller');
237
+			    }
238
+		    case 'servant':
239
+			    switch ($sex) {
240
+			        case 'M':
241
+				        return I18N::translateContext('MALE', 'Servant');
242
+			        case 'F':
243
+				        return I18N::translateContext('FEMALE', 'Servant');
244
+			        default:
245
+				        return I18N::translate('Servant');
246
+			    }
247
+		    case 'slave':
248
+			    switch ($sex) {
249
+			        case 'M':
250
+				        return I18N::translateContext('MALE', 'Slave');
251
+			        case 'F':
252
+				        return I18N::translateContext('FEMALE', 'Slave');
253
+			        default:
254
+				        return I18N::translate('Slave');
255
+			    }
256
+		    case 'ward':
257
+			    switch ($sex) {
258
+			        case 'M':
259
+				        return I18N::translateContext('MALE', 'Ward');
260
+			        case 'F':
261
+				        return I18N::translateContext('FEMALE', 'Ward');
262
+			        default:
263
+				        return I18N::translate('Ward');
264
+			    }
265
+		    case 'witness':
266
+			    // Do we need separate male/female translations for this?
267
+			    return I18N::translate('Witness');
268
+		    default:
269
+			    return I18N::translate($type);
270 270
 		}
271 271
 	}
272 272
 
Please login to merge, or discard this patch.
app/GedcomCode/GedcomCodeTemp.php 1 patch
Switch Indentation   +312 added lines, -312 removed lines patch added patch discarded remove patch
@@ -77,318 +77,318 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/GedcomCode/GedcomCodeQuay.php 1 patch
Switch Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -33,24 +33,24 @@
 block discarded – undo
33 33
 	 */
34 34
 	public static function getValue($type) {
35 35
 		switch ($type) {
36
-		case '3':
37
-			return
38
-				/* I18N: Quality of source information - GEDCOM tag “QUAY 3” */
39
-				I18N::translate('primary evidence');
40
-		case '2':
41
-			return
42
-				/* I18N: Quality of source information - GEDCOM tag “QUAY 2” */
43
-				I18N::translate('secondary evidence');
44
-		case '1':
45
-			return
46
-				/* I18N: Quality of source information - GEDCOM tag “QUAY 1” */
47
-				I18N::translate('questionable evidence');
48
-		case '0':
49
-			return
50
-				/* I18N: Quality of source information - GEDCOM tag “QUAY 0” */
51
-				I18N::translate('unreliable evidence');
52
-		default:
53
-			return $type;
36
+		    case '3':
37
+			    return
38
+				    /* I18N: Quality of source information - GEDCOM tag “QUAY 3” */
39
+				    I18N::translate('primary evidence');
40
+		    case '2':
41
+			    return
42
+				    /* I18N: Quality of source information - GEDCOM tag “QUAY 2” */
43
+				    I18N::translate('secondary evidence');
44
+		    case '1':
45
+			    return
46
+				    /* I18N: Quality of source information - GEDCOM tag “QUAY 1” */
47
+				    I18N::translate('questionable evidence');
48
+		    case '0':
49
+			    return
50
+				    /* I18N: Quality of source information - GEDCOM tag “QUAY 0” */
51
+				    I18N::translate('unreliable evidence');
52
+		    default:
53
+			    return $type;
54 54
 		}
55 55
 	}
56 56
 
Please login to merge, or discard this patch.
app/GedcomCode/GedcomCodeAdop.php 1 patch
Switch Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -42,35 +42,35 @@
 block discarded – undo
42 42
 		}
43 43
 
44 44
 		switch ($type) {
45
-		case 'BOTH':
46
-			switch ($sex) {
47
-			case 'M':
48
-				return I18N::translateContext('MALE', 'Adopted by both parents');
49
-			case 'F':
50
-				return I18N::translateContext('FEMALE', 'Adopted by both parents');
51
-			default:
52
-				return I18N::translate('Adopted by both parents');
53
-			}
54
-		case 'HUSB':
55
-			switch ($sex) {
56
-			case 'M':
57
-				return I18N::translateContext('MALE', 'Adopted by father');
58
-			case 'F':
59
-				return I18N::translateContext('FEMALE', 'Adopted by father');
60
-			default:
61
-				return I18N::translate('Adopted by father');
62
-			}
63
-		case 'WIFE':
64
-			switch ($sex) {
65
-			case 'M':
66
-				return I18N::translateContext('MALE', 'Adopted by mother');
67
-			case 'F':
68
-				return I18N::translateContext('FEMALE', 'Adopted by mother');
69
-			default:
70
-				return I18N::translate('Adopted by mother');
71
-			}
72
-		default:
73
-			return $type;
45
+		    case 'BOTH':
46
+			    switch ($sex) {
47
+			        case 'M':
48
+				        return I18N::translateContext('MALE', 'Adopted by both parents');
49
+			        case 'F':
50
+				        return I18N::translateContext('FEMALE', 'Adopted by both parents');
51
+			        default:
52
+				        return I18N::translate('Adopted by both parents');
53
+			    }
54
+		    case 'HUSB':
55
+			    switch ($sex) {
56
+			        case 'M':
57
+				        return I18N::translateContext('MALE', 'Adopted by father');
58
+			        case 'F':
59
+				        return I18N::translateContext('FEMALE', 'Adopted by father');
60
+			        default:
61
+				        return I18N::translate('Adopted by father');
62
+			    }
63
+		    case 'WIFE':
64
+			    switch ($sex) {
65
+			        case 'M':
66
+				        return I18N::translateContext('MALE', 'Adopted by mother');
67
+			        case 'F':
68
+				        return I18N::translateContext('FEMALE', 'Adopted by mother');
69
+			        default:
70
+				        return I18N::translate('Adopted by mother');
71
+			    }
72
+		    default:
73
+			    return $type;
74 74
 		}
75 75
 	}
76 76
 
Please login to merge, or discard this patch.
app/GedcomCode/GedcomCodePedi.php 1 patch
Switch Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -42,57 +42,57 @@  discard block
 block discarded – undo
42 42
 		}
43 43
 
44 44
 		switch ($type) {
45
-		case 'birth':
46
-			switch ($sex) {
47
-			case 'M':
48
-				return I18N::translateContext('Male pedigree', 'Birth');
49
-			case 'F':
50
-				return I18N::translateContext('Female pedigree', 'Birth');
51
-			default:
52
-				return I18N::translateContext('Pedigree', 'Birth');
53
-			}
54
-		case 'adopted':
55
-			switch ($sex) {
56
-			case 'M':
57
-				return I18N::translateContext('Male pedigree', 'Adopted');
58
-			case 'F':
59
-				return I18N::translateContext('Female pedigree', 'Adopted');
60
-			default:
61
-				return I18N::translateContext('Pedigree', 'Adopted');
62
-			}
63
-		case 'foster':
64
-			switch ($sex) {
65
-			case 'M':
66
-				return I18N::translateContext('Male pedigree', 'Foster');
67
-			case 'F':
68
-				return I18N::translateContext('Female pedigree', 'Foster');
69
-			default:
70
-				return I18N::translateContext('Pedigree', 'Foster');
71
-			}
72
-		case 'sealing':
73
-			switch ($sex) {
74
-			case 'M':
75
-				return
76
-					/* I18N: “sealing” is a ceremony in the Mormon church. */
77
-					I18N::translateContext('Male pedigree', 'Sealing');
78
-			case 'F':
79
-				return
80
-					/* I18N: “sealing” is a ceremony in the Mormon church. */
81
-					I18N::translateContext('Female pedigree', 'Sealing');
82
-			default:
83
-				return
84
-					/* I18N: “sealing” is a ceremony in the Mormon church. */
85
-					I18N::translateContext('Pedigree', 'Sealing');
86
-			}
87
-		case 'rada':
88
-			// Not standard GEDCOM - a webtrees extension
89
-			// This is an arabic word which does not exist in other languages.
90
-			// So, it will not have any inflected forms.
91
-			return
92
-				/* I18N: This is an Arabic word, pronounced “ra DAH”. It is child-to-parent pedigree, established by wet-nursing. */
93
-				I18N::translate('Rada');
94
-		default:
95
-			return $type;
45
+		    case 'birth':
46
+			    switch ($sex) {
47
+			        case 'M':
48
+				        return I18N::translateContext('Male pedigree', 'Birth');
49
+			        case 'F':
50
+				        return I18N::translateContext('Female pedigree', 'Birth');
51
+			        default:
52
+				        return I18N::translateContext('Pedigree', 'Birth');
53
+			    }
54
+		    case 'adopted':
55
+			    switch ($sex) {
56
+			        case 'M':
57
+				        return I18N::translateContext('Male pedigree', 'Adopted');
58
+			        case 'F':
59
+				        return I18N::translateContext('Female pedigree', 'Adopted');
60
+			        default:
61
+				        return I18N::translateContext('Pedigree', 'Adopted');
62
+			    }
63
+		    case 'foster':
64
+			    switch ($sex) {
65
+			        case 'M':
66
+				        return I18N::translateContext('Male pedigree', 'Foster');
67
+			        case 'F':
68
+				        return I18N::translateContext('Female pedigree', 'Foster');
69
+			        default:
70
+				        return I18N::translateContext('Pedigree', 'Foster');
71
+			    }
72
+		    case 'sealing':
73
+			    switch ($sex) {
74
+			        case 'M':
75
+				        return
76
+					        /* I18N: “sealing” is a ceremony in the Mormon church. */
77
+					        I18N::translateContext('Male pedigree', 'Sealing');
78
+			        case 'F':
79
+				        return
80
+					        /* I18N: “sealing” is a ceremony in the Mormon church. */
81
+					        I18N::translateContext('Female pedigree', 'Sealing');
82
+			        default:
83
+				        return
84
+					        /* I18N: “sealing” is a ceremony in the Mormon church. */
85
+					        I18N::translateContext('Pedigree', 'Sealing');
86
+			    }
87
+		    case 'rada':
88
+			    // Not standard GEDCOM - a webtrees extension
89
+			    // This is an arabic word which does not exist in other languages.
90
+			    // So, it will not have any inflected forms.
91
+			    return
92
+				    /* I18N: This is an Arabic word, pronounced “ra DAH”. It is child-to-parent pedigree, established by wet-nursing. */
93
+				    I18N::translate('Rada');
94
+		    default:
95
+			    return $type;
96 96
 		}
97 97
 	}
98 98
 
@@ -122,23 +122,23 @@  discard block
 block discarded – undo
122 122
 	 */
123 123
 	public static function getChildFamilyLabel($pedi) {
124 124
 		switch ($pedi) {
125
-		case '':
126
-		case 'birth':
127
-			return I18N::translate('Family with parents');
128
-		case 'adopted':
129
-			return I18N::translate('Family with adoptive parents');
130
-		case 'foster':
131
-			return I18N::translate('Family with foster parents');
132
-		case 'sealing':
133
-			return
134
-				/* I18N: “sealing” is a Mormon ceremony. */
135
-				I18N::translate('Family with sealing parents');
136
-		case 'rada':
137
-			return
138
-				/* I18N: “rada” is an Arabic word, pronounced “ra DAH”. It is child-to-parent pedigree, established by wet-nursing. */
139
-				I18N::translate('Family with rada parents');
140
-		default:
141
-			return I18N::translate('Family with parents') . ' - ' . $pedi;
125
+		    case '':
126
+		    case 'birth':
127
+			    return I18N::translate('Family with parents');
128
+		    case 'adopted':
129
+			    return I18N::translate('Family with adoptive parents');
130
+		    case 'foster':
131
+			    return I18N::translate('Family with foster parents');
132
+		    case 'sealing':
133
+			    return
134
+				    /* I18N: “sealing” is a Mormon ceremony. */
135
+				    I18N::translate('Family with sealing parents');
136
+		    case 'rada':
137
+			    return
138
+				    /* I18N: “rada” is an Arabic word, pronounced “ra DAH”. It is child-to-parent pedigree, established by wet-nursing. */
139
+				    I18N::translate('Family with rada parents');
140
+		    default:
141
+			    return I18N::translate('Family with parents') . ' - ' . $pedi;
142 142
 		}
143 143
 	}
144 144
 
@@ -152,16 +152,16 @@  discard block
 block discarded – undo
152 152
 	 */
153 153
 	public static function createNewFamcPedi($pedi, $xref) {
154 154
 		switch ($pedi) {
155
-		case '':
156
-			return "1 FAMC @$xref@";
157
-		case 'adopted':
158
-			return "1 FAMC @$xref@\n2 PEDI $pedi\n1 ADOP\n2 FAMC @$xref@\n3 ADOP BOTH";
159
-		case 'sealing':
160
-			return "1 FAMC @$xref@\n2 PEDI $pedi\n1 SLGC\n2 FAMC @$xref@";
161
-		case 'foster':
162
-			return "1 FAMC @$xref@\n2 PEDI $pedi\n1 EVEN\n2 TYPE $pedi";
163
-		default:
164
-			return "1 FAMC @$xref@\n2 PEDI $pedi";
155
+		    case '':
156
+			    return "1 FAMC @$xref@";
157
+		    case 'adopted':
158
+			    return "1 FAMC @$xref@\n2 PEDI $pedi\n1 ADOP\n2 FAMC @$xref@\n3 ADOP BOTH";
159
+		    case 'sealing':
160
+			    return "1 FAMC @$xref@\n2 PEDI $pedi\n1 SLGC\n2 FAMC @$xref@";
161
+		    case 'foster':
162
+			    return "1 FAMC @$xref@\n2 PEDI $pedi\n1 EVEN\n2 TYPE $pedi";
163
+		    default:
164
+			    return "1 FAMC @$xref@\n2 PEDI $pedi";
165 165
 		}
166 166
 	}
167 167
 }
Please login to merge, or discard this patch.