|
@@ 621-635 (lines=15) @@
|
| 618 |
|
*/ |
| 619 |
|
public static function cousinName2($n, $sex, $relation) { |
| 620 |
|
switch ($sex) { |
| 621 |
|
case 'M': |
| 622 |
|
switch ($n) { |
| 623 |
|
case 1: // I18N: A Spanish relationship name, such as third great-nephew |
| 624 |
|
return I18N::translateContext('MALE', 'first %s', $relation); |
| 625 |
|
case 2: |
| 626 |
|
return I18N::translateContext('MALE', 'second %s', $relation); |
| 627 |
|
case 3: |
| 628 |
|
return I18N::translateContext('MALE', 'third %s', $relation); |
| 629 |
|
case 4: |
| 630 |
|
return I18N::translateContext('MALE', 'fourth %s', $relation); |
| 631 |
|
case 5: |
| 632 |
|
return I18N::translateContext('MALE', 'fifth %s', $relation); |
| 633 |
|
default: // I18N: A Spanish relationship name, such as third great-nephew |
| 634 |
|
return I18N::translateContext('MALE', '%1$s × %2$s', I18N::number($n), $relation); |
| 635 |
|
} |
| 636 |
|
case 'F': |
| 637 |
|
switch ($n) { |
| 638 |
|
case 1: // I18N: A Spanish relationship name, such as third great-nephew |
|
@@ 636-650 (lines=15) @@
|
| 633 |
|
default: // I18N: A Spanish relationship name, such as third great-nephew |
| 634 |
|
return I18N::translateContext('MALE', '%1$s × %2$s', I18N::number($n), $relation); |
| 635 |
|
} |
| 636 |
|
case 'F': |
| 637 |
|
switch ($n) { |
| 638 |
|
case 1: // I18N: A Spanish relationship name, such as third great-nephew |
| 639 |
|
return I18N::translateContext('FEMALE', 'first %s', $relation); |
| 640 |
|
case 2: |
| 641 |
|
return I18N::translateContext('FEMALE', 'second %s', $relation); |
| 642 |
|
case 3: |
| 643 |
|
return I18N::translateContext('FEMALE', 'third %s', $relation); |
| 644 |
|
case 4: |
| 645 |
|
return I18N::translateContext('FEMALE', 'fourth %s', $relation); |
| 646 |
|
case 5: |
| 647 |
|
return I18N::translateContext('FEMALE', 'fifth %s', $relation); |
| 648 |
|
default: // I18N: A Spanish relationship name, such as third great-nephew |
| 649 |
|
return I18N::translateContext('FEMALE', '%1$s × %2$s', I18N::number($n), $relation); |
| 650 |
|
} |
| 651 |
|
default: |
| 652 |
|
switch ($n) { |
| 653 |
|
case 1: // I18N: A Spanish relationship name, such as third great-nephew |
|
@@ 651-665 (lines=15) @@
|
| 648 |
|
default: // I18N: A Spanish relationship name, such as third great-nephew |
| 649 |
|
return I18N::translateContext('FEMALE', '%1$s × %2$s', I18N::number($n), $relation); |
| 650 |
|
} |
| 651 |
|
default: |
| 652 |
|
switch ($n) { |
| 653 |
|
case 1: // I18N: A Spanish relationship name, such as third great-nephew |
| 654 |
|
return I18N::translateContext('MALE/FEMALE', 'first %s', $relation); |
| 655 |
|
case 2: |
| 656 |
|
return I18N::translateContext('MALE/FEMALE', 'second %s', $relation); |
| 657 |
|
case 3: |
| 658 |
|
return I18N::translateContext('MALE/FEMALE', 'third %s', $relation); |
| 659 |
|
case 4: |
| 660 |
|
return I18N::translateContext('MALE/FEMALE', 'fourth %s', $relation); |
| 661 |
|
case 5: |
| 662 |
|
return I18N::translateContext('MALE/FEMALE', 'fifth %s', $relation); |
| 663 |
|
default: // I18N: A Spanish relationship name, such as third great-nephew |
| 664 |
|
return I18N::translateContext('MALE/FEMALE', '%1$s × %2$s', I18N::number($n), $relation); |
| 665 |
|
} |
| 666 |
|
} |
| 667 |
|
} |
| 668 |
|
|