diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-12-05 18:54:31 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-12-05 18:54:31 +0000 |
| commit | 0b35263af65d2bb8a86d2ae2ccd9939e5b24a91c (patch) | |
| tree | abf79b2a347d89c0eb476ade7b5debc61d4cf703 /app/Functions/Functions.php | |
| parent | ac47c36f4b6de0d23b734fe543f5ab4feb08b540 (diff) | |
| download | webtrees-0b35263af65d2bb8a86d2ae2ccd9939e5b24a91c.tar.gz webtrees-0b35263af65d2bb8a86d2ae2ccd9939e5b24a91c.tar.bz2 webtrees-0b35263af65d2bb8a86d2ae2ccd9939e5b24a91c.zip | |
Fix: #2822 - Hindi relationship names - great aunt/uncle/nephew/neice
Diffstat (limited to 'app/Functions/Functions.php')
| -rw-r--r-- | app/Functions/Functions.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/Functions/Functions.php b/app/Functions/Functions.php index e228095e99..023e7a2560 100644 --- a/app/Functions/Functions.php +++ b/app/Functions/Functions.php @@ -1717,6 +1717,18 @@ class Functions return I18N::translate('great ×%s aunt/uncle', I18N::number($up - 2)); + case 'hi': // Source: MrQD + if ($sex2 === 'M') { + // I18N: if you need a different number for %s, contact the developers, as a code-change is required + return I18N::translate('great ×%s uncle', I18N::number($up - 2)); + } + + if ($sex2 === 'F') { + return I18N::translate('great ×%s aunt', I18N::number($up - 2)); + } + + return I18N::translate('great ×%s aunt/uncle', I18N::number($up - 2)); + case 'it': // Source: Michele Locati case 'en_AU': case 'en_GB': @@ -1932,6 +1944,18 @@ class Functions return I18N::translate('great ×%s nephew/niece', I18N::number($down - 1)); + case 'hi': // Source: MrQD. + if ($sex2 === 'M') { + // I18N: if you need a different number for %s, contact the developers, as a code-change is required + return I18N::translate('great ×%s nephew', I18N::number($down - 3)); + } + + if ($sex2 === 'F') { + return I18N::translate('great ×%s niece', I18N::number($down - 3)); + } + + return I18N::translate('great ×%s nephew/niece', I18N::number($down - 3)); + case 'it': // Source: Michele Locati. case 'en_AU': case 'en_GB': |
