|
@@ 485-535 (lines=51) @@
|
| 482 |
|
*/ |
| 483 |
|
public static function cousinName($n, $sex) { |
| 484 |
|
switch ($sex) { |
| 485 |
|
case 'M': |
| 486 |
|
switch ($n) { |
| 487 |
|
case 1: |
| 488 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 489 |
|
return I18N::translateContext('MALE', 'first cousin'); |
| 490 |
|
case 2: |
| 491 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 492 |
|
return I18N::translateContext('MALE', 'second cousin'); |
| 493 |
|
case 3: |
| 494 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 495 |
|
return I18N::translateContext('MALE', 'third cousin'); |
| 496 |
|
case 4: |
| 497 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 498 |
|
return I18N::translateContext('MALE', 'fourth cousin'); |
| 499 |
|
case 5: |
| 500 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 501 |
|
return I18N::translateContext('MALE', 'fifth cousin'); |
| 502 |
|
case 6: |
| 503 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 504 |
|
return I18N::translateContext('MALE', 'sixth cousin'); |
| 505 |
|
case 7: |
| 506 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 507 |
|
return I18N::translateContext('MALE', 'seventh cousin'); |
| 508 |
|
case 8: |
| 509 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 510 |
|
return I18N::translateContext('MALE', 'eighth cousin'); |
| 511 |
|
case 9: |
| 512 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 513 |
|
return I18N::translateContext('MALE', 'ninth cousin'); |
| 514 |
|
case 10: |
| 515 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 516 |
|
return I18N::translateContext('MALE', 'tenth cousin'); |
| 517 |
|
case 11: |
| 518 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 519 |
|
return I18N::translateContext('MALE', 'eleventh cousin'); |
| 520 |
|
case 12: |
| 521 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 522 |
|
return I18N::translateContext('MALE', 'twelfth cousin'); |
| 523 |
|
case 13: |
| 524 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 525 |
|
return I18N::translateContext('MALE', 'thirteenth cousin'); |
| 526 |
|
case 14: |
| 527 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 528 |
|
return I18N::translateContext('MALE', 'fourteenth cousin'); |
| 529 |
|
case 15: |
| 530 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 531 |
|
return I18N::translateContext('MALE', 'fifteenth cousin'); |
| 532 |
|
default: |
| 533 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 534 |
|
return I18N::translateContext('MALE', '%s × cousin', I18N::number($n)); |
| 535 |
|
} |
| 536 |
|
case 'F': |
| 537 |
|
switch ($n) { |
| 538 |
|
case 1: |
|
@@ 536-570 (lines=35) @@
|
| 533 |
|
/* I18N: Note that for Italian and Polish, “N’th cousins” are different from English “N’th cousins”, and the software has already generated the correct “N” for your language. You only need to translate - you do not need to convert. For other languages, if your cousin rules are different from English, please contact the developers. */ |
| 534 |
|
return I18N::translateContext('MALE', '%s × cousin', I18N::number($n)); |
| 535 |
|
} |
| 536 |
|
case 'F': |
| 537 |
|
switch ($n) { |
| 538 |
|
case 1: |
| 539 |
|
return I18N::translateContext('FEMALE', 'first cousin'); |
| 540 |
|
case 2: |
| 541 |
|
return I18N::translateContext('FEMALE', 'second cousin'); |
| 542 |
|
case 3: |
| 543 |
|
return I18N::translateContext('FEMALE', 'third cousin'); |
| 544 |
|
case 4: |
| 545 |
|
return I18N::translateContext('FEMALE', 'fourth cousin'); |
| 546 |
|
case 5: |
| 547 |
|
return I18N::translateContext('FEMALE', 'fifth cousin'); |
| 548 |
|
case 6: |
| 549 |
|
return I18N::translateContext('FEMALE', 'sixth cousin'); |
| 550 |
|
case 7: |
| 551 |
|
return I18N::translateContext('FEMALE', 'seventh cousin'); |
| 552 |
|
case 8: |
| 553 |
|
return I18N::translateContext('FEMALE', 'eighth cousin'); |
| 554 |
|
case 9: |
| 555 |
|
return I18N::translateContext('FEMALE', 'ninth cousin'); |
| 556 |
|
case 10: |
| 557 |
|
return I18N::translateContext('FEMALE', 'tenth cousin'); |
| 558 |
|
case 11: |
| 559 |
|
return I18N::translateContext('FEMALE', 'eleventh cousin'); |
| 560 |
|
case 12: |
| 561 |
|
return I18N::translateContext('FEMALE', 'twelfth cousin'); |
| 562 |
|
case 13: |
| 563 |
|
return I18N::translateContext('FEMALE', 'thirteenth cousin'); |
| 564 |
|
case 14: |
| 565 |
|
return I18N::translateContext('FEMALE', 'fourteenth cousin'); |
| 566 |
|
case 15: |
| 567 |
|
return I18N::translateContext('FEMALE', 'fifteenth cousin'); |
| 568 |
|
default: |
| 569 |
|
return I18N::translateContext('FEMALE', '%s × cousin', I18N::number($n)); |
| 570 |
|
} |
| 571 |
|
default: |
| 572 |
|
switch ($n) { |
| 573 |
|
case 1: |
|
@@ 571-605 (lines=35) @@
|
| 568 |
|
default: |
| 569 |
|
return I18N::translateContext('FEMALE', '%s × cousin', I18N::number($n)); |
| 570 |
|
} |
| 571 |
|
default: |
| 572 |
|
switch ($n) { |
| 573 |
|
case 1: |
| 574 |
|
return I18N::translateContext('MALE/FEMALE', 'first cousin'); |
| 575 |
|
case 2: |
| 576 |
|
return I18N::translateContext('MALE/FEMALE', 'second cousin'); |
| 577 |
|
case 3: |
| 578 |
|
return I18N::translateContext('MALE/FEMALE', 'third cousin'); |
| 579 |
|
case 4: |
| 580 |
|
return I18N::translateContext('MALE/FEMALE', 'fourth cousin'); |
| 581 |
|
case 5: |
| 582 |
|
return I18N::translateContext('MALE/FEMALE', 'fifth cousin'); |
| 583 |
|
case 6: |
| 584 |
|
return I18N::translateContext('MALE/FEMALE', 'sixth cousin'); |
| 585 |
|
case 7: |
| 586 |
|
return I18N::translateContext('MALE/FEMALE', 'seventh cousin'); |
| 587 |
|
case 8: |
| 588 |
|
return I18N::translateContext('MALE/FEMALE', 'eighth cousin'); |
| 589 |
|
case 9: |
| 590 |
|
return I18N::translateContext('MALE/FEMALE', 'ninth cousin'); |
| 591 |
|
case 10: |
| 592 |
|
return I18N::translateContext('MALE/FEMALE', 'tenth cousin'); |
| 593 |
|
case 11: |
| 594 |
|
return I18N::translateContext('MALE/FEMALE', 'eleventh cousin'); |
| 595 |
|
case 12: |
| 596 |
|
return I18N::translateContext('MALE/FEMALE', 'twelfth cousin'); |
| 597 |
|
case 13: |
| 598 |
|
return I18N::translateContext('MALE/FEMALE', 'thirteenth cousin'); |
| 599 |
|
case 14: |
| 600 |
|
return I18N::translateContext('MALE/FEMALE', 'fourteenth cousin'); |
| 601 |
|
case 15: |
| 602 |
|
return I18N::translateContext('MALE/FEMALE', 'fifteenth cousin'); |
| 603 |
|
default: |
| 604 |
|
return I18N::translateContext('MALE/FEMALE', '%s × cousin', I18N::number($n)); |
| 605 |
|
} |
| 606 |
|
} |
| 607 |
|
} |
| 608 |
|
|