Example #1
0
} else {
    echo "<a href=\"calendar.php?cal={$cal}&amp;day={$cal_date->d}&amp;month={$cal_month}&amp;year={$cal_date->y}&amp;filterev={$filterev}&amp;filterof={$filterof}&amp;filtersx={$filtersx}&amp;action=today\">", WT_I18N::translate('View day'), "</a>";
}
if ($action == 'calendar') {
    echo ' | <span class="error">', WT_I18N::translate('View month'), '</span>';
} else {
    echo " | <a href=\"calendar.php?cal={$cal}&amp;day={$cal_date->d}&amp;month={$cal_month}&amp;year={$cal_date->y}&amp;filterev={$filterev}&amp;filterof={$filterof}&amp;filtersx={$filtersx}&amp;action=calendar\">", WT_I18N::translate('View month'), "</a>";
}
if ($action == 'year') {
    echo ' | <span class="error">', WT_I18N::translate('View year'), '</span>';
} else {
    echo " | <a href=\"calendar.php?cal={$cal}&amp;day={$cal_date->d}&amp;month={$cal_month}&amp;year={$cal_date->y}&amp;filterev={$filterev}&amp;filterof={$filterof}&amp;filtersx={$filtersx}&amp;action=year\">", WT_I18N::translate('View year'), "</a>";
}
echo '</td><td class="topbottombar width50">';
$n = 0;
foreach (array('gregorian' => WT_Date_Gregorian::calendarName(), 'julian' => WT_Date_Julian::calendarName(), 'jewish' => WT_Date_Jewish::calendarName(), 'french' => WT_Date_French::calendarName(), 'hijri' => WT_Date_Hijri::calendarName(), 'jalali' => WT_Date_Jalali::calendarName()) as $newcal => $cal_name) {
    $tmp = $cal_date->convertToCalendar($newcal);
    if ($tmp->inValidRange()) {
        if ($n++) {
            echo ' | ';
        }
        if (get_class($tmp) == get_class($cal_date)) {
            echo "<span class=\"error\">{$cal_name}</span>";
        } else {
            $newcalesc = urlencode($tmp->format('%@'));
            $tmpmonth = $tmp->format('%O');
            echo "<a href=\"calendar.php?cal={$newcalesc}&amp;day={$tmp->d}&amp;month={$tmpmonth}&amp;year={$tmp->y}&amp;filterev={$filterev}&amp;filterof={$filterof}&amp;filtersx={$filtersx}&amp;action={$action}\">{$cal_name}</a>";
        }
    }
}
echo "</td></tr>";
Example #2
0
     $title = WT_I18N::translate('Theme dropdown selector for theme changes');
     $text = WT_I18N::translate('Gives users the option of selecting their own theme from a menu.<br><br>Even with this option set, the theme currently in effect may not provide for such a menu.  To be effective, this option requires the <b>Allow users to select their own theme</b> option to be set as well.');
     break;
 case 'ALLOW_USER_THEMES':
     $title = WT_I18N::translate('Allow users to select their own theme');
     $text = WT_I18N::translate('Gives users the option of selecting their own theme.');
     break;
 case 'CALENDAR_FORMAT':
     $d1 = new WT_Date('22 SEP 1792');
     $d1 = $d1->Display(false, null, array());
     $d2 = new WT_Date('31 DEC 1805');
     $d2 = $d2->Display(false, null, array());
     $d3 = new WT_Date('15 OCT 1582');
     $d3 = $d3->Display(false, null, array());
     $title = WT_I18N::translate('Calendar conversion');
     $text = '<p>' . WT_I18N::translate('Different calendar systems are used in different parts of the world, and many other calendar systems have been used in the past.  Where possible, you should enter dates using the calendar in which the event was originally recorded.  You can then specify a conversion, to show these dates in a more familiar calendar.  If you regularly use two calendars, you can specify two conversions and dates will be converted to both the selected calendars.') . '<p>' . WT_I18N::translate('The following calendars are supported:') . '</p><ul>' . '<li>' . WT_Date_Gregorian::calendarName() . '</li>' . '<li>' . WT_Date_Julian::calendarName() . '</li>' . '<li>' . WT_Date_Jewish::calendarName() . '</li>' . '<li>' . WT_Date_French::calendarName() . '</li>' . '<li>' . WT_Date_Hijri::calendarName() . '</li>' . '<li>' . WT_Date_Jalali::calendarName() . '</li>' . '</ul><p>' . WT_I18N::translate('Dates are only converted if they are valid for the calendar.  For example, only dates between %1$s and %2$s will be converted to the French calendar and only dates after %3$s will be converted to the Gregorian calendar.', $d1, $d2, $d3) . '</p><p>' . WT_I18N::translate('In some calendars, days start at midnight.  In other calendars, days start at sunset.  The conversion process does not take account of the time, so for any event that occurs between sunset and midnight, the conversion between these types of calendar will be one day out.') . '</p>';
     break;
 case 'CHART_BOX_TAGS':
     $title = WT_I18N::translate('Other facts to show in charts');
     $text = WT_I18N::translate('This should be a comma or space separated list of facts, in addition to birth and death, that you want to appear in chart boxes such as the pedigree chart.  This list requires you to use fact tags as defined in the GEDCOM 5.5.1 standard.  For example, if you wanted the occupation to show up in the box, you would add “OCCU” to this field.');
     break;
 case 'CHECK_MARRIAGE_RELATIONS':
     $title = WT_I18N::translate('Check relationships by marriage');
     $text = WT_I18N::translate('When calculating relationships, this option controls whether <b>webtrees</b> will include spouses/partners as well as blood relatives.');
     break;
 case 'COMMON_NAMES_ADD':
     $title = WT_I18N::translate('Names to add to common surnames (comma separated)');
     $text = WT_I18N::translate('If the number of times that a certain surname occurs is lower than the threshold, it will not appear in the list.  It can be added here manually.  If more than one surname is entered, they must be separated by a comma.  <b>Surnames are case-sensitive.</b>');
     break;
 case 'COMMON_NAMES_REMOVE':
     $title = WT_I18N::translate('Names to remove from common surnames (comma separated)');
Example #3
0
if (count($CALENDAR_FORMATS) == 1) {
    $CALENDAR_FORMATS[] = 'none';
}
foreach (array('none' => WT_I18N::translate('No calendar conversion'), 'gregorian' => WT_Date_Gregorian::calendarName(), 'julian' => WT_Date_Julian::calendarName(), 'french' => WT_Date_French::calendarName(), 'jewish' => WT_Date_Jewish::calendarName(), 'hijri' => WT_Date_Hijri::calendarName(), 'jalali' => WT_Date_Jalali::calendarName()) as $cal => $name) {
    echo '<option value="', $cal, '"';
    if ($CALENDAR_FORMATS[0] == $cal) {
        echo ' selected="selected"';
    }
    echo '>', $name, '</option>';
}
?>
					</select>

					<select id="NEW_CALENDAR_FORMAT1" name="NEW_CALENDAR_FORMAT1">
						<?php 
foreach (array('none' => WT_I18N::translate('No calendar conversion'), 'gregorian' => WT_Date_Gregorian::calendarName(), 'julian' => WT_Date_Julian::calendarName(), 'french' => WT_Date_French::calendarName(), 'jewish' => WT_Date_Jewish::calendarName(), 'hijri' => WT_Date_Hijri::calendarName(), 'jalali' => WT_Date_Jalali::calendarName()) as $cal => $name) {
    echo '<option value="', $cal, '"';
    if ($CALENDAR_FORMATS[1] == $cal) {
        echo ' selected="selected"';
    }
    echo '>', $name, '</option>';
}
?>
					</select></td>
				</tr>
				<tr>
					<td>
						<?php 
echo WT_I18N::translate('Use RIN number instead of GEDCOM ID'), help_link('USE_RIN');
?>
					</td>