2 && $yrs < 5) || ($yrs < -2 && $yrs > -5)) $label .= $yrs." leta"; // +- 3 in 4 leta else if ($yrs > 4 or $yrs < -4) $label .= $yrs." ".i18n::translate('years'); // x let else if ($gap == 1 || $gap == -1) $label .= $gap." ".i18n::translate('month'); // 1 meses else if (($gap == 2 ) || ($gap == -2 )) $label .= $gap." meseca"; // 2 meseca else if (($gap > 2 && $gap < 5) || ($gap < -2 && $gap > -5)) $label .= $gap." mesece"; // 3-4 mesece else if ($gap != 0) $label .= $gap." ".i18n::translate('months'); // x mesecev } //////////////////////////////////////////////////////////////////////////////// // Localise a number of people. Lokalizacija števila oseb. //Glej lifespan.php //////////////////////////////////////////////////////////////////////////////// function num_people_localisation_sl(&$count) { if ($count == 1) print "
".$count." ".i18n::translate('Individual').""; // 1 oseba else if ($count == 2) print "
".$count." osebi"; // 2 osebi else if ($count > 2 && $count < 5) print "
".$count." osebe"; // 3-4 osebe else print "
".$count." ".i18n::translate('Individuals').""; // x oseb } /////////////////////////////////////////////////////////////////////////////////////////// // Localise the _AKAN, _AKA, ALIA and _INTE facts. Lokalizacja dejstev _AKAN, _AKA, ALIA i _INTE. /////////////////////////////////////////////////////////////////////////////////////////// function fact_AKA_localisation_sl(&$fact, &$pid) { $person = Person::getInstance($pid); $sex = $person->getSex(); if ($fact == "_INTE") { if ($sex == "M") $fact = "Pokopan"; // moški else if ($sex == "F") $fact = "Pokopana"; // ženska } else { if ($sex == "M") $fact = "Znan tudi kot"; // moški else if ($sex == "F") $fact = "Znana tudi kot "; // ženska } } /////////////////////////////////////////////////////////////////////////////////////////// // Localise the _NMR facts. Lokalizacja dejstev _NMR. /////////////////////////////////////////////////////////////////////////////////////////// function fact_NMR_localisation_sl($fact, &$fid) { $family = Family::getInstance($fid); $husb = $family->getHusband(); $wife = $family->getWife(); if ($fact == "_NMR") { if (empty($wife) && !empty($husb)) $fact = "Samski"; // moški else if (empty($husb) && !empty($wife)) $fact = "Samska"; // ženska } else if ($fact == "_NMAR") { if (empty($wife) && !empty($husb)) $fact = "Nikoli poročen"; // moški else if (empty($husb) && !empty($wife)) $fact = "Nikoli poročena"; // ženska } }