summaryrefslogtreecommitdiff
path: root/includes/extras/functions.pl.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/extras/functions.pl.php')
-rw-r--r--includes/extras/functions.pl.php68
1 files changed, 0 insertions, 68 deletions
diff --git a/includes/extras/functions.pl.php b/includes/extras/functions.pl.php
index 170ad8679c..c647c7bdea 100644
--- a/includes/extras/functions.pl.php
+++ b/includes/extras/functions.pl.php
@@ -32,74 +32,6 @@ if (!defined('WT_WEBTREES')) {
define('WT_FUNCTIONS_PL_PHP', '');
-////////////////////////////////////////////////////////////////////////////////
-// Localise an age. Lokalizacja wieku.
-////////////////////////////////////////////////////////////////////////////////
-function age_localisation_pl(&$agestring, &$show_years) {
- $show_years=true;
- $agestring=preg_replace(
- array(
- '/\bchi(ld)?\b/i',
- '/\binf(ant)?\b/i',
- '/\bsti(llborn)?\b/i',
- '/\b1y/i',
- '/\b2y/i','/\b3y/i','/\b4y/i',
- '/\b22y/i','/\b23y/i','/\b24y/i',
- '/\b32y/i','/\b33y/i','/\b34y/i',
- '/\b42y/i','/\b43y/i','/\b44y/i',
- '/\b52y/i','/\b53y/i','/\b54y/i',
- '/\b62y/i','/\b63y/i','/\b64y/i',
- '/\b72y/i','/\b73y/i','/\b74y/i',
- '/\b82y/i','/\b83y/i','/\b84y/i',
- '/\b92y/i','/\b93y/i','/\b94y/i',
- '/\b102y/i','/\b103y/i','/\b104y/i',
- '/\b122y/i','/\b123y/i','/\b124y/i',
- '/\b132y/i','/\b133y/i','/\b134y/i',
- '/(\d+)y/i',
- '/\b1m/i',
- '/\b2m/i','/\b3m/i','/\b4m/i',
- '/\b22m/i','/\b23m/i','/\b24m/i',
- '/(\d+)m/i',
- '/\b1d/i',
- '/(\d+)d/i',
- '/\b1w/i',
- '/\b2w/i','/\b3w/i','/\b4w/i',
- '/\b22w/i','/\b23w/i','/\b24w/i',
- '/(\d+)w/i'
- ),
- array(
- i18n::translate('Child'),
- i18n::translate('Infant'),
- i18n::translate('Stillborn'),
- $show_years ? '1 '.i18n::translate('year') : '1',
- $show_years ? '2 '.i18n::translate('years') : '2', $show_years ? '3 '.i18n::translate('years') : '3', $show_years ? '4 '.i18n::translate('years') : '4',
- $show_years ? '22 '.i18n::translate('years') : '22', $show_years ? '23 '.i18n::translate('years') : '23', $show_years ? '24 '.i18n::translate('years') : '24',
- $show_years ? '32 '.i18n::translate('years') : '32', $show_years ? '33 '.i18n::translate('years') : '33', $show_years ? '34 '.i18n::translate('years') : '34',
- $show_years ? '42 '.i18n::translate('years') : '42', $show_years ? '43 '.i18n::translate('years') : '43', $show_years ? '44 '.i18n::translate('years') : '44',
- $show_years ? '52 '.i18n::translate('years') : '52', $show_years ? '53 '.i18n::translate('years') : '53', $show_years ? '54 '.i18n::translate('years') : '54',
- $show_years ? '62 '.i18n::translate('years') : '62', $show_years ? '63 '.i18n::translate('years') : '63', $show_years ? '64 '.i18n::translate('years') : '64',
- $show_years ? '72 '.i18n::translate('years') : '72', $show_years ? '73 '.i18n::translate('years') : '73', $show_years ? '74 '.i18n::translate('years') : '74',
- $show_years ? '82 '.i18n::translate('years') : '82', $show_years ? '83 '.i18n::translate('years') : '83', $show_years ? '84 '.i18n::translate('years') : '84',
- $show_years ? '92 '.i18n::translate('years') : '92', $show_years ? '93 '.i18n::translate('years') : '93', $show_years ? '94 '.i18n::translate('years') : '94',
- $show_years ? '102 '.i18n::translate('years') : '102', $show_years ? '103 '.i18n::translate('years') : '103', $show_years ? '104 '.i18n::translate('years') : '104',
- $show_years ? '122 '.i18n::translate('years') : '122', $show_years ? '123 '.i18n::translate('years') : '123', $show_years ? '124 '.i18n::translate('years') : '124',
- $show_years ? '132 '.i18n::translate('years') : '132', $show_years ? '133 '.i18n::translate('years') : '133', $show_years ? '134 '.i18n::translate('years') : '134',
- $show_years ? '$1 '.i18n::translate('years') : '$1',
- '1 '.i18n::translate('month'),
- '2 miesiące', '3 miesiące', '4 miesiące',
- '22 miesiące', '23 miesiące', '24 miesiące',
- '$1 '.i18n::translate('months'),
- '1 '.i18n::translate('day'),
- '$1 '.i18n::translate('days'),
- '1 '.i18n::translate('week'),
- '2 tygodnie', '3 tygodnie', '4 tygodnie',
- '22 tygodnie', '23 tygodnie', '24 tygodnie',
- '$1 '.i18n::translate('weeks')
- ),
- $agestring
- );
-}
-
//-- functions to calculate polish specific genitive names
function getFirstRelationsName_pl($pid) {
// In Polish we want the genitive form of the name