diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-09-07 17:34:06 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-09-07 17:34:06 +0100 |
| commit | fc27fe65d01e43fafcd99e48e67ff33c51b93caf (patch) | |
| tree | a52f1739ab45f2308e8117f06c0aaf97472cd9f9 /library | |
| parent | a9a473c96a911391ddf320e5369b0741d018e686 (diff) | |
| download | webtrees-fc27fe65d01e43fafcd99e48e67ff33c51b93caf.tar.gz webtrees-fc27fe65d01e43fafcd99e48e67ff33c51b93caf.tar.bz2 webtrees-fc27fe65d01e43fafcd99e48e67ff33c51b93caf.zip | |
Add support for NAME.TYPE=estate
Diffstat (limited to 'library')
| -rw-r--r-- | library/WT/Gedcom/Code/Name.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/library/WT/Gedcom/Code/Name.php b/library/WT/Gedcom/Code/Name.php index acc448e640..24a1b483c3 100644 --- a/library/WT/Gedcom/Code/Name.php +++ b/library/WT/Gedcom/Code/Name.php @@ -25,7 +25,7 @@ if (!defined('WT_WEBTREES')) { class WT_Gedcom_Code_Name { - private static $TYPES=array('adopted', 'aka', 'birth', 'change', 'immigrant', 'maiden', 'married', 'religious'); + private static $TYPES=array('adopted', 'aka', 'birth', 'change', 'estate', 'immigrant', 'maiden', 'married', 'religious'); // Translate a code, for an (optional) record public static function getValue($type, $record=null) { @@ -84,6 +84,18 @@ class WT_Gedcom_Code_Name { /* I18N: A name chosen by an individual, to replace their existing name (whether legal or otherwise) */ return WT_I18N::translate('change of name'); } + case 'estate': + switch ($sex) { + case 'M': + /* I18N: A name given to an individual, from the farm or estate on which they lived or worked */ + return WT_I18N::translate_c('MALE', 'estate name'); + case 'F': + /* I18N: A name given to an individual, from the farm or estate on which they lived or worked */ + return WT_I18N::translate_c('FEMALE', 'estate name'); + default: + /* I18N: A name given to an individual, from the farm or estate on which they lived or worked */ + return WT_I18N::translate('estate name'); + } case 'immigrant': switch ($sex) { case 'M': |
