summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Stevenson2011-01-15 11:55:36 (GMT)
committer Karen Stevenson2011-01-15 11:55:36 (GMT)
commitb13b98520248d2177542cdf0b38ea4c5bf92f402 (patch)
tree17a8db5cd4cfe0d7d91b71bd5dd829c8c8c41ffa
parent8dbf321a2f4a6cdc17bd4ccd09cc321ffed48f68 (diff)
#1014118 and #986616 Complete reorganization of date files to avoid problems with D7 updater code.
-rw-r--r--date/date.devel_generate.inc188
-rw-r--r--date/date.field.inc543
-rw-r--r--date/date.info17
-rw-r--r--date/date.install99
-rw-r--r--date/date.module731
-rw-r--r--date/date.theme329
-rw-r--r--date/date.views.inc6
-rw-r--r--date/date_admin.inc488
-rw-r--r--date/date_elements.inc522
-rw-r--r--date/date_handler_field_multiple.inc177
-rw-r--r--date/date_repeat.inc204
-rw-r--r--date/date_token.inc98
-rw-r--r--date/translations/date.de.po569
-rw-r--r--date/translations/date.es.po563
-rw-r--r--date/translations/date.fr.po564
-rw-r--r--date/translations/date.hu.po446
-rw-r--r--date/translations/date.pot562
17 files changed, 0 insertions, 6106 deletions
diff --git a/date/date.devel_generate.inc b/date/date.devel_generate.inc
deleted file mode 100644
index 0280911..0000000
--- a/date/date.devel_generate.inc
+++ /dev/null
@@ -1,188 +0,0 @@
-<?php
-// $Id$
-/**
- * @file
- * Date Devel Generate code.
- */
-/**
- * Implementation of Devel module's hook_content_generate().
- *
- * Included only when needed.
- */
-function date_devel_generate($node, $field, $instance, $bundle) {
- $node_field = array();
- if (isset($instance['widget']['settings']['year_range'])) {
- $split = explode(':', $instance['widget']['settings']['year_range']);
- $back = str_replace('-', '', $split[0]);
- $forward = str_replace('+', '', $split[1]);
- }
- else {
- $back = 2;
- $forward = 2;
- }
- // Pick a random year within the time range,
- // and a random second within that year.
- $year = date_format(date_now(), 'Y') - $back + mt_rand(0, ($forward + $back));
- $start = new DateObject($year . '-01-01 00:00:00', date_get_timezone_db($field['settings']['tz_handling']));
- $leap = date_format($start, 'L');
- $max_days = $leap ? 366 : 365;
- $seconds = mt_rand(0, ($max_days * 86400));
- date_modify($start, "+$seconds seconds");
- $increment = $instance['widget']['settings']['increment'];
- date_increment_round($start, $increment);
-
- // Modify To date by 1 hour to 3 days, shorter for repeating dates
- // longer for others.
- $start2 = clone($start);
- $max = !empty($field['settings']['repeat']) ? 720 : 4320;
- $max = 240;
- date_modify($start2, '+' . mt_rand(60, $max) . ' minutes');
- date_increment_round($start2, $increment);
-
- if ($field['settings']['tz_handling'] == 'date') {
- // Choose a random timezone.
- // Not all keys exist, so we have to check.
- $timezones = array_keys(date_timezone_names(TRUE));
- $key = mt_rand(0, count($timezones) - 1);
- if (!array_key_exists($key, $timezones)) {
- $timezone = date_default_timezone();
- }
- else {
- $timezone = $timezones[$key];
- }
- }
- else {
- $timezone = date_get_timezone($field['settings']['tz_handling']);
- }
-
- switch ($field['type']) {
- case 'date':
- $format = DATE_FORMAT_ISO;
- break;
- case 'datestamp':
- $format = DATE_FORMAT_UNIX;
- break;
- case 'datetime':
- $format = DATE_FORMAT_DATETIME;
- break;
- }
- $node_field['value'] = date_format($start, $format);
- if ($field['settings']['todate']) {
- $node_field['value2'] = date_format($start2, $format);
- }
- date_timezone_set($start, timezone_open($timezone));
- $node_field['timezone'] = $timezone;
- $node_field['offset'] = date_offset_get($start);
- date_timezone_set($start2, timezone_open($timezone));
- $node_field['offset2'] = date_offset_get($start2);
-
- if (!empty($field['settings']['repeat'])) {
- module_load_include('inc', 'date_repeat', 'date_repeat_calc');
- module_load_include('inc', 'date', 'date_repeat');
- module_load_include('inc', 'date_api', 'date_api_ical');
-
- // Create a repeating date.
- $duration = $start->difference($start2);
- $form_values = array();
-
- // Create the default case more frequently than case 1 or 2.
- $which = mt_rand(0, 10);
- $max_items = 10;
- $intervals = array_keys(INTERVAL_options());
- unset($intervals[0]);
- $interval = $intervals[mt_rand(1, 3)];
- switch ($which) {
- case 1:
- $mo = mt_rand(1, 28);
- $options = array('YEARLY', 'MONTHLY');
- $freq = date_content_generate_key($options);
- $freq = $options[$freq];
- $form_values['FREQ'] = $freq;
- // Make sure we'll find a match in our range.
- if ($freq == 'YEARLY') {
- $interval = 1;
- }
- $form_values['BYMONTHDAY'] = array($mo);
- break;
- case 2:
- $mo = mt_rand(1, 12);
- $options = array('YEARLY', 'MONTHLY');
- $freq = date_content_generate_key($options);
- $freq = $options[$freq];
- $form_values['FREQ'] = $freq;
- // Make sure we'll find a match in our range.
- if ($freq == 'YEARLY') {
- $interval = 1;
- }
- $form_values['BYMONTH'] = array($mo);
- break;
- default:
- $dows = array_keys(date_content_repeat_dow_options());
- $day = date_content_generate_key($dows);
- $dow = $dows[$day];
- $options = array('MONTHLY', 'DAILY', 'WEEKLY');
- $freq = date_content_generate_key($options);
- $freq = $options[$freq];
- $form_values['FREQ'] = $freq;
- $form_values['BYDAY'] = array($dow);
- break;
- }
-
- $form_values['INTERVAL'] = $interval;
-
- switch ($freq) {
- case 'YEARLY':
- $period = 'year';
- break;
- case 'MONTHLY':
- $period = 'month';
- break;
- case 'WEEKLY':
- $period = 'week';
- break;
- default:
- $period = 'day';
- break;
-
- }
- date_modify($start2, '+' . max(1, $forward) . ' years');
- date_increment_round($start2, $increment);
- $until = date_format($start2, 'Y-m-d H:i:s');
- $form_values['UNTIL'] = array('datetime' => $until, 'tz' => 'UTC');
- $form_values['COUNT'] = $max_items;
-
- $rrule = date_api_ical_build_rrule($form_values);
- $values = date_repeat_build_dates($rrule, $form_values, $field, $node_field);
-
- $start = $node_field;
- $node_field = array(0 => $start);
- $node_field[0]['rrule'] = $rrule;
- $node_field += $values;
- }
- return $node_field;
-}
-
-function date_content_generate_key($array) {
- $keys = array_keys($array);
- $min = array_shift($keys);
- $max = array_pop($keys);
- return mt_rand($min, $max);
-}
-
-/**
- * Helper function for BYDAY options.
- *
- * Creates options like -1SU and 2TU
- * Omit options that won't find many matches, like 5th Sunday.
- */
-function date_content_repeat_dow_options() {
- $options = array();
- foreach (date_repeat_dow_count_options() as $count_key => $count_value) {
- foreach (date_repeat_dow_day_options() as $dow_key => $dow_value) {
- if ($count_key != 5 && $count_key != -5) {
- $options[$count_key . $dow_key] = $count_value . ' ' . $dow_value;
- }
- }
- }
- return $options;
-} \ No newline at end of file
diff --git a/date/date.field.inc b/date/date.field.inc
deleted file mode 100644
index c6f8f12..0000000
--- a/date/date.field.inc
+++ /dev/null
@@ -1,543 +0,0 @@
-<?php
-// $Id$
-/**
- * @file
- * Field hooks to implement a date field.
- */
-
-/**
- * Implements hook_field_formatter_info().
- */
-function date_field_formatter_info() {
- $formatters = array(
- 'date_default' => array(
- 'label' => t('Default'),
- 'field types' => array('date', 'datestamp', 'datetime'),
- 'settings' => array(
- 'format_type' => 'long',
- 'show_repeat_rule' => 'show',
- 'multiple_number' => '',
- 'multiple_from' => '',
- 'multiple_to' => '',
- 'fromto' => 'both',
- ),
- ),
- 'format_interval' => array(
- 'label' => t('As Time Ago'),
- 'field types' => array('date', 'datestamp', 'datetime'),
- 'settings' => array(
- 'interval' => 2,
- ),
- ),
- );
- $formats = _system_date_format_types_build();
- foreach ($formats as $format => $value) {
- $formatters['date_' . $format] = $formatters['date_default'];
- $formatters['date_' . $format]['format_type'] = $format;
- $formatters['date_' . $format]['label'] = $value['title'];
- }
- return $formatters;
-}
-
-/**
- * Implements hook_field_formatter_settings_form().
- */
-function date_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
- $display = $instance['display'][$view_mode];
- $formatter = $display['type'];
- module_load_include('inc', 'date', 'date_admin');
- switch ($formatter) {
- case 'format_interval':
- return date_interval_formatter_settings_form($field, $instance, $view_mode, $form, $form_state);
- default:
- return date_default_formatter_settings_form($field, $instance, $view_mode, $form, $form_state);
- }
-}
-
-/**
- * Implements hook_field_formatter_settings_summary().
- */
-function date_field_formatter_settings_summary($field, $instance, $view_mode) {
- $display = $instance['display'][$view_mode];
- $formatter = $display['type'];
- module_load_include('inc', 'date', 'date_admin');
- switch ($formatter) {
- case 'format_interval':
- return date_interval_formatter_settings_summary($field, $instance, $view_mode);
- default:
- return date_default_formatter_settings_summary($field, $instance, $view_mode);
- }
-}
-
-/**
- * Implements hook_field_formatter_view().
- *
- * Useful values:
- *
- * $entity->date_id
- * If set, this will show only an individual date on a field with
- * multiple dates. The value should be a string that contains
- * the following values, separated with colons:
- * - module name of the module adding the item
- * - node nid
- * - field name
- * - delta value of the field to be displayed
- * - other information the module's custom theme might need
- *
- * Used by the calendar module and available for other uses.
- * example: 'date:217:field_date:3:test'
- *
- * $entity->date_repeat_show
- * If true, tells the theme to show all the computed values
- * of a repeating date. If not true or not set, only the
- * start date and the repeat rule will be displayed.
- *
- */
-function date_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
- $element = array();
- $settings = $display['settings'];
- $formatter = $display['type'];
- $vars = array(
- 'entity' => $entity,
- 'entity_type' => $entity_type,
- 'field' => $field,
- 'instance' => $instance,
- 'langcode' => $langcode,
- 'items' => $items,
- 'display' => $display,
- 'dates' => array(),
- );
-
- // See if we are only supposed to display a selected
- // item from multiple value date fields.
- $selected_deltas = array();
- if (!empty($entity->date_id)) {
- foreach ((array) $entity->date_id as $key => $id) {
- list($module, $nid, $field_name, $selected_delta, $other) = explode(':', $id);
- if ($field_name == $field['field_name']) {
- $selected_deltas[] = $selected_delta;
- }
- }
- }
-
- switch ($display['type']) {
- case 'format_interval':
- foreach ($items as $delta => $item) {
- if (!empty($entity->date_id) && !in_array($delta, $selected_deltas)) {
- continue;
- }
- else {
- $vars['delta'] = $delta;
- $vars['item'] = $item;
- $vars['dates'] = date_formatter_process($formatter, $entity_type, $entity, $field, $instance, $langcode, $item, $display);
- $element[$delta] = array('#markup' => theme('date_display_interval', $vars));
- }
- }
- break;
- default:
- foreach ($items as $delta => $item) {
- if (!empty($entity->date_id) && !in_array($delta, $selected_deltas)) {
- continue;
- }
- else {
- $vars['delta'] = $delta;
- $vars['item'] = $item;
- $vars['dates'] = date_formatter_process($formatter, $entity_type, $entity, $field, $instance, $langcode, $item, $display);
- $element[$delta] = array('#markup' => theme('date_display_combination', $vars));
- }
- }
- break;
- }
-
- return $element;
-}
-
-/**
- * Implements hook_field_is_empty().
- */
-function date_field_is_empty($item, $field) {
- // Sometimes a $item is a date object.
- // Coming from repeating dates. Why??
- if (!is_array($item)) {
- return FALSE;
- }
- if (empty($item['value'])) {
- return TRUE;
- }
- elseif ($field['settings']['todate'] == 'required' && empty($item['value2'])) {
- return TRUE;
- }
- return FALSE;
-}
-
-/**
- * Implements hook_field_info().
- */
-function date_field_info() {
- $settings = array(
- 'settings' => array(
- 'todate' => '',
- 'repeat' => 0,
- 'granularity' => drupal_map_assoc(array('year', 'month', 'day', 'hour', 'minute')),
- 'tz_handling' => 'site',
- 'timezone_db' => 'UTC',
- ),
- 'instance_settings' => array(
- 'default_value' => 'now',
- 'default_value_code' => '',
- 'default_value2' => 'blank',
- 'default_value_code2' => '',
- 'default_format' => 'medium',
- ),
- // Integrate with the Entity Metadata module.
- 'property_type' => 'date',
- 'property_callbacks' => array('date_entity_metadata_property_info_alter'),
- );
- return array(
- 'date' => array(
- 'label' => 'Date',
- 'description' => t('Store a date in the database as an ISO date, recommended for historical or partial dates.'),
- 'default_widget' => 'date_select',
- 'default_formatter' => 'date_default',
- ) + $settings,
- 'datestamp' => array(
- 'label' => 'Datestamp',
- 'description' => t('Store a date in the database as a timestamp, deprecated format to suppport legacy data.'),
- 'default_widget' => 'date_select',
- 'default_formatter' => 'date_default',
- ) + $settings,
- 'datetime' => array(
- 'label' => 'Datetime',
- 'description' => t('Store a date in the database as a datetime field, recommended for complete dates and times that may need timezone conversion.'),
- 'default_widget' => 'date_select',
- 'default_formatter' => 'date_default',
- ) + $settings,
- );
-}
-
-/**
- * Implements hook_field_widget_info().
- */
-function date_field_widget_info() {
- $settings = array(
- 'settings' => array(
- 'input_format' => date_default_format('date_select'),
- 'input_format_custom' => '',
- 'increment' => 1,
- 'text_parts' => array(),
- 'year_range' => '-3:+3',
- 'label_position' => 'above',
- 'repeat_collapsed' => 0,
- ),
- 'behaviors' => array(
- 'multiple values' => FIELD_BEHAVIOR_DEFAULT,
- 'default value' => FIELD_BEHAVIOR_CUSTOM,
- ),
- );
-
- // Repeating dates have custom handling
- // for multiple values.
- $repeat_settings = $settings;
- $repeat_settings['behaviors']['multiple values'] = FIELD_BEHAVIOR_CUSTOM;
-
- $info = array(
- 'date_select' => array(
- 'label' => t('Select List'),
- 'field types' => array('date', 'datestamp', 'datetime'),
- ) + $settings,
- 'date_select_repeat' => array(
- 'label' => t('Select List with Repeat options'),
- 'field types' => array('date', 'datestamp', 'datetime'),
- ) + $repeat_settings,
- 'date_text' => array(
- 'label' => t('Text Field with custom input format'),
- 'field types' => array('date', 'datestamp', 'datetime'),
- ) + $settings,
- 'date_text_repeat' => array(
- 'label' => t('Text Field with Repeat options'),
- 'field types' => array('date', 'datestamp', 'datetime'),
- ) + $repeat_settings,
- );
- if (module_exists('date_popup')) {
- $info['date_popup'] = array(
- 'label' => t('Text Field with Date Pop-up calendar'),
- 'field types' => array('date', 'datestamp', 'datetime'),
- ) + $settings;
- $info['date_popup_repeat'] = array(
- 'label' => t('Text Field with Date Pop-up and Repeat options'),
- 'field types' => array('date', 'datestamp', 'datetime'),
- ) + $repeat_settings;
- }
- if (!module_exists('date_repeat')) {
- unset($info['date_select_repeat']);
- unset($info['date_text_repeat']);
- if (isset($info['date_popup_repeat'])) {
- unset($info['date_popup_repeat']);
- }
- }
- return $info;
-}
-
-/**
- * Implements hook_field_load().
- */
-function date_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age) {
- foreach ($entities as $id => $entity) {
- foreach ($items[$id] as $delta => $item) {
- // If the file does not exist, mark the entire item as empty.
- $timezone = isset($item['timezone']) ? $item['timezone'] : '';
- if (is_array($item)) {
- $items[$id][$delta]['timezone'] = date_get_timezone($field['settings']['tz_handling'], $timezone);
- $items[$id][$delta]['timezone_db'] = date_get_timezone_db($field['settings']['tz_handling']);
- $items[$id][$delta]['date_type'] = $field['type'];
- }
- }
- }
-}
-
-/**
- * Implements hook_field_validate().
- */
-function date_field_validate($entity_type, $entity, $field, $instance, $langcode, $items, &$errors) {
- $field_name = $field['field_name'];
- $flexible = 0;
-
- // Don't try to validate if there were any errors before this point
- // since the element won't have been munged back into a date.
- if (!form_get_errors()) {
- foreach ($items as $delta => $item) {
- if (is_array($item)) {
- $process = date_process_values($field, $instance);
- $date1 = new DateObject($item['value'], $item['timezone'], date_type_format($field['type']));
- if (empty($item['value2']) && $item['value2'] !== 0) {
- $date2 = clone($date1);
- }
- else {
- $date2 = new DateObject($item['value2'], $item['timezone'], date_type_format($field['type']));
- }
- $valid1 = $date1->validGranularity($field['settings']['granularity'], $flexible);
- $valid2 = $date2->validGranularity($field['settings']['granularity'], $flexible);
-
- foreach ($process as $processed) {
- if ($processed == 'value' && $field['settings']['todate'] && !$valid1 && $valid2) {
- $errors[$field['field_name']][$langcode][$delta][] = array(
- 'error' => 'value',
- 'message' => t("A 'From date' date is required for field %field #%delta.", array('%delta' => $field['cardinality'] ? intval($delta + 1) : '', '%field' => t($instance['label']))),
- );
- }
- if ($processed == 'value2' && $field['settings']['todate'] == 'required' && ($instance['required'] && $valid1 && !$valid2)) {
- $errors[$field['field_name']][$langcode][$delta][] = array(
- 'error' => 'value2',
- 'message' => t("A 'To date' is required for field %field #%delta.", array('%delta' => $field['cardinality'] ? intval($delta + 1) : '', '%field' => t($instance['label']))),
- );
- }
- }
- }
- }
- }
-
-}
-
-/**
- * Implements hook_field_presave().
- */
-function date_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items) {
- date_field_update($entity_type, $entity, $field, $instance, $langcode, $items);
-}
-
-/**
- * Implements hook_field_insert().
- */
-function date_field_insert($entity_type, $entity, $field, $instance, $langcode, &$items) {
- date_field_update($entity_type, $entity, $field, $instance, $langcode, $items);
-}
-
-/**
- * Implements hook_field_update().
- */
-function date_field_update($entity_type, $entity, $field, $instance, $langcode, &$items) {
- $field_name = $field['field_name'];
-
- if (empty($items)) {
- return;
- }
- // Add some information needed to interpret token values.
- $values = $items;
- foreach ($values as $delta => $item) {
- $timezone = isset($item['timezone']) ? $item['timezone'] : '';
- if (is_array($item)) {
- $items[$delta]['timezone'] = date_get_timezone($field['settings']['tz_handling'], $timezone);
- $items[$delta]['timezone_db'] = date_get_timezone_db($field['settings']['tz_handling']);
- $items[$delta]['date_type'] = $field['type'];
- }
- }
- $entity->{$field['field_name']}[$langcode] = $items;
-
- foreach ($values as $delta => $item) {
- if (is_array($item)) {
- // Special case for ISO dates which may have been given artificial values for
- // some date parts to make them into valid dates.
- // @TODO Decide how to replace the date_limit_value() function.
- if (!empty($item['value']) && $field['type'] == DATE_ISO) {
- //$items[$delta]['value'] = date_limit_value($items[$delta]['value'], date_granularity($field), $field['type']);
- if ($field['settings']['todate']) {
- //$items[$delta]['value2'] = date_limit_value($items[$delta]['value2'], date_granularity($field), $field['type']);
- }
- }
- }
- }
- $entity->{$field['field_name']}[$langcode] = $items;
-}
-
-/**
- * Wrapper functions for date administration, included only when
- * processing field settings.
- */
-function date_field_instance_settings_form($field, $instance) {
- module_load_include('inc', 'date', 'date_admin');
- return _date_field_instance_settings_form($field, $instance);
-}
-
-function date_field_widget_settings_form($field, $instance) {
- module_load_include('inc', 'date', 'date_admin');
- return _date_field_widget_settings_form($field, $instance);
-}
-
-function date_field_settings_form($field, $instance, $has_data) {
- module_load_include('inc', 'date', 'date_admin');
- return _date_field_settings_form($field, $instance, $has_data);
-}
-
-/**
- * Implements hook_content_migrate_field_alter().
- *
- * Use this to tweak the conversion of field settings
- * from the D6 style to the D7 style for specific
- * situations not handled by basic conversion,
- * as when field types or settings are changed.
- *
- * $field_value['widget_type'] is available to
- * see what widget type was originally used.
- */
-function date_content_migrate_field_alter(&$field_value) {
-
- switch ($field_value['module']) {
- case 'date':
-
- // So far, no changes to field except those we have to make
- // later in the instance, to move some values from the
- // field to the widget.
- break;
- }
-}
-
-/**
- * Implements hook_content_migrate_instance_alter().
- *
- * Use this to tweak the conversion of instance or widget settings
- * from the D6 style to the D7 style for specific
- * situations not handled by basic conversion, as when
- * formatter or widget names or settings are changed.
- */
-function date_content_migrate_instance_alter(&$instance_value) {
- switch ($instance_value['module']) {
- case 'date':
-
- $field_value = content_migrate_get_field_values($instance_value['field_name']);
-
- // Some settings have been moved from field to instance.
- $default_format = $field_value['settings']['default_format'];
- unset($field_value['settings']['default_format']);
- $instance_value['settings']['repeat_collapsed'] = $field_value['settings']['repeat_collapsed'];
- unset($field_value['settings']['repeat_collapsed']);
-
- // Some settings have been moved from widget settings to instance settings.
- $instance_value['settings']['default_value'] = $instance_value['default_value'];
- unset($instance_value['default_value']);
- $instance_value['settings']['default_value_code'] = $instance_value['widget']['settings']['default_value_code'];
- unset($instance_value['widget']['settings']['default_value_code']);
- $instance_value['settings']['default_value2'] = $instance_value['widget']['settings']['default_value2'];
- unset($instance_value['widget']['settings']['default_value2']);
- $instance_value['settings']['default_value_code2'] = $instance_value['widget']['settings']['default_value_code2'];
- unset($instance_value['widget']['settings']['default_value_code2']);
- break;
-
- // We need to retrieve formatter settings from the variables and store them in the instance.
- // Some formatter names changed, and system date type names changed.
- $new_type = array(
- 'format_interval' => 'format_interval',
- 'default' => 'date_default',
- 'small' => 'date_short',
- 'large' => 'date_long',
- 'medium' => 'date_medium',
- );
- $new_settings = array(
- 'date_default' => array(
- 'format_type' => $default_format,
- 'show_repeat_rule' => 'show',
- 'multiple_number' => '',
- 'multiple_from' => '',
- 'multiple_to' => '',
- 'fromto' => 'both',
- ),
- 'format_interval' => array(
- 'interval' => 2,
- ),
- 'date_short' => array(
- 'format_type' => 'short',
- 'show_repeat_rule' => 'show',
- 'multiple_number' => '',
- 'multiple_from' => '',
- 'multiple_to' => '',
- 'fromto' => 'both',
- ),
- 'date_long' => array(
- 'format_type' => 'long',
- 'show_repeat_rule' => 'show',
- 'multiple_number' => '',
- 'multiple_from' => '',
- 'multiple_to' => '',
- 'fromto' => 'both',
- ),
- 'date_medium' => array(
- 'format_type' => 'medium',
- 'show_repeat_rule' => 'show',
- 'multiple_number' => '',
- 'multiple_from' => '',
- 'multiple_to' => '',
- 'fromto' => 'both',
- ),
- );
- // Add the custom date format options to the list.
- $formats = array_keys(system_get_date_formats());
- foreach ($formats as $format) {
- if ($format != 'short' && $format != 'long' && $format != 'medium') {
- $new_type['date_' . $format] = $new_format;
- $new_settings['date_' . $format] = $new_settings['date_default'];
- $new_settings['date_' . $format]['format_type'] = $format;
- }
- }
- foreach ($instance_value['display'] as $context => $settings) {
- $instance_value['display'][$context]['type'] = $new_type[$settings['type']];
- $old_settings = date_old_formatter_get_settings($instance['field_name'], $instance['bundle'], $context);
- foreach ($new_settings as $key => $value) {
- $instance_value['display'][$context]['settings'][$key] = !empty($old_settings[$key]) ? $old_settings[$key] : $value;
- }
- }
-
- // We changed some of the field values, save them.
- field_info_update($field_values);
- break;
- }
-}
-
-function date_old_formatter_get_settings($field_name, $type_name, $context) {
- $options = array();
- $value = 'date:'. $type_name .':'. $context .':'. $field_name;
- $options['show_repeat_rule'] = variable_get($value .'_show_repeat_rule', 'show');
- $options['multiple_number'] = variable_get($value .'_multiple_number', '');
- $options['multiple_from'] = variable_get($value .'_multiple_from', '');
- $options['multiple_to'] = variable_get($value .'_multiple_to', '');
- $options['fromto'] = variable_get($value .'_fromto', 'both');
- return $options;
-}
diff --git a/date/date.info b/date/date.info
deleted file mode 100644
index abc3e5b..0000000
--- a/date/date.info
+++ /dev/null
@@ -1,17 +0,0 @@
-; $Id$
-name = Date
-description = Defines CCK date/time fields and widgets.
-dependencies[] = date_api
-package = Date/Time
-core = 7.x
-php = 5.2
-files[] = date_admin.inc
-files[] = date_content_generate.inc
-files[] = date_elements.inc
-files[] = date_handler_field_multiple.inc
-files[] = date_repeat.inc
-files[] = date_token.inc
-files[] = date.install
-files[] = date.module
-files[] = date.theme
-files[] = date.views.inc
diff --git a/date/date.install b/date/date.install
deleted file mode 100644
index 8b8e5ae..0000000
--- a/date/date.install
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-// $Id$
-/**
- * @file
- * Installation code for CCK date module.
- */
-function date_field_schema($field) {
- $db_columns = array();
- switch ($field['type']) {
- case 'datestamp':
- $db_columns['value'] = array(
- 'type' => 'int',
- 'not null' => FALSE,
- 'sortable' => TRUE,
- 'views' => TRUE,
- );
- break;
- case 'datetime':
- $db_columns['value'] = array(
- 'type' => 'datetime',
- 'mysql_type' => 'DATETIME',
- 'pgsql_type' => 'timestamp without time zone',
- 'not null' => FALSE,
- 'sortable' => TRUE,
- 'views' => TRUE,
- );
- break;
- default:
- $db_columns['value'] = array(
- 'type' => 'varchar',
- 'length' => 20,
- 'not null' => FALSE,
- 'sortable' => TRUE,
- 'views' => TRUE,
- );
- break;
- }
-
- // If a second date is needed for 'To date', just make a copy of the first one.
- if (!empty($field['settings']['todate'])) {
- $db_columns['value2'] = $db_columns['value'];
-
- // We don't want CCK to create additional columns, just the first.
- // We modify them our own way in views data.
- $db_columns['value2']['views'] = FALSE;
- }
- // timezone and offset columns are used only if date-specific dates are chosen.
- if (isset($field['settings']['tz_handling']) && $field['settings']['tz_handling'] == 'date') {
- $db_columns['timezone'] = array(
- 'type' => 'varchar',
- 'length' => 50,
- 'not null' => FALSE,
- 'sortable' => TRUE,
- 'views' => FALSE,
- );
- $db_columns['offset'] = array(
- 'type' => 'int',
- 'not null' => FALSE,
- 'sortable' => TRUE,
- 'views' => FALSE,
- );
- if (!empty($field['settings']['todate'])) $db_columns['offset2'] = array('type' => 'int', 'not null' => FALSE, 'sortable' => TRUE, 'views' => FALSE);
- }
- if (isset($field['settings']['repeat']) && $field['settings']['repeat'] == 1) {
- $db_columns['rrule'] = array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'sortable' => FALSE,
- 'views' => FALSE,
- );
- }
- return array('columns' => $db_columns);
-}
-
-
-function date_update_last_removed() {
- return 6005;
-}
-
-/**
- * Move settings that were stored in variables to field formatter settings.
- */
-// TODO, update field formatter settings with the variables, once we know
-// how the field update process will work.
-
-/**
- * A copy of a D6 function we can use to retrive the formatter settings
- * and return them as an option array.
- */
-function date_formatter_get_settings($field_name, $bundle, $context) {
- $options = array();
- $value = 'date:' . $bundle . ':' . $context . ':' . $field_name;
- $options['repeat']['show_repeat_rule'] = variable_get($value . '_show_repeat_rule', 'show');
- $options['multiple']['multiple_number'] = variable_get($value . '_multiple_number', '');
- $options['multiple']['multiple_from'] = variable_get($value . '_multiple_from', '');
- $options['multiple']['multiple_to'] = variable_get($value . '_multiple_to', '');
- $options['fromto']['fromto'] = variable_get($value . '_fromto', 'both');
- return $options;
-}
diff --git a/date/date.module b/date/date.module
deleted file mode 100644
index 389b3f1..0000000
--- a/date/date.module
+++ /dev/null
@@ -1,731 +0,0 @@
-<?php
-// $Id$
-
-/**
- * @file
- * Defines date/time field types for the Content Construction Kit (CCK).
- */
-
-module_load_include('theme', 'date', 'date');
-module_load_include('inc', 'date', '/date.field');
-module_load_include('inc', 'date', '/date_elements');
-
-/**
- * Implements hook_menu().
- */
-function date_menu() {
- $items = array();
- // Repeat dates tab on entity
- if (!module_exists('date_repeat')) {
- return $items;
- }
- $items['node/%node/repeats'] = array(
- 'title' => 'Repeats',
- 'page callback' => 'date_repeat_page',
- 'page arguments' => array(1, 'node'),
- 'access callback' => 'date_repeat_entity',
- 'access arguments' => array(1, 'node'),
- 'type' => MENU_LOCAL_TASK,
- );
-
- return $items;
-}
-
-function date_permission() {
- return array('view date repeats' => array(
- 'title' => t('View Repeating Dates'),
- 'description' => t('Allow user to see a tab with all the times this date repeats.'),
- ));
-}
-
-/**
- * See if the user can access repeat date
- * info on this entity.
- */
-function date_repeat_entity($entity, $entity_type = 'node') {
- if (date_repeat_type($entity, $entity_type = 'node')) {
- return user_access('view date repeats');
- }
- return FALSE;
-}
-
-/**
- * See if there is a date field in this instance.
- *
- * Field type is not in the $field array we get from
- * field_info_instances(), we need to call
- * field_info_field() to find that.
- */
-function date_repeat_type($entity, $entity_type = 'node') {
- $bundle = '';
- switch ($entity_type) {
- case 'node':
- $bundle = $entity->type;
- break;
- }
- $type = field_info_instances($entity_type, $bundle);
- foreach ($type as $field_name => $field) {
- $field = field_info_field($field_name);
- if (in_array($field['type'], array('date', 'datestamp', 'datetime')) && $field['settings']['repeat']) {
- return TRUE;
- }
- }
- return FALSE;
-}
-
-function date_repeat_fields($entity, $entity_type = 'node') {
- $bundle = '';
- switch ($entity_type) {
- case 'node':
- $bundle = $entity->type;
- break;
- }
- $type = field_info_instances($entity_type, $bundle);
- $fields = array();
- foreach ($type as $field_name => $field) {
- $field = field_info_field($field_name);
- if (in_array($field['type'], array('date', 'datestamp', 'datetime')) && $field['settings']['repeat']) {
- $fields[] = $field_name;
- }
- }
- return $fields;
-}
-
-function date_repeat_page($entity, $entity_type = 'node') {
- drupal_set_title($entity->title);
- $entity->date_repeat_show_all = TRUE;
- $entity->content = array();
- $field_names = date_repeat_fields($entity, $entity_type);
- $output = '';
- foreach ($field_names as $field_name) {
- $output .= drupal_render(field_view_field($entity_type, $entity, $field_name, 'full'));
- }
- return $output;
-}
-
-function date_is_repeat_field($field, $instance) {
- $repeat_widgets = array(
- 'date_select_repeat',
- 'date_text_repeat',
- 'date_popup_repeat',
- );
- if (in_array($instance['widget']['type'], $repeat_widgets)) {
- return TRUE;
- }
- elseif (in_array($instance['widget']['type']['#value'], $repeat_widgets)) {
- return TRUE;
- }
- return FALSE;
-}
-
-function date_default_format($type) {
- if (stristr($type, 'date_popup') && module_exists('date_popup')) {
- $formats = date_popup_formats();
- $default_format = array_shift($formats);
- }
- else {
- // example input formats must show all possible date parts, so add seconds.
- $default_format = str_replace('i', 'i:s', variable_get('date_format_short', 'm/d/Y - H:i'));
- }
- return $default_format;
-}
-
-function date_input_date($field, $instance, $element, $input) {
- switch ($instance['widget']['type']) {
- case 'date_text':
- case 'date_text_repeat':
- $function = 'date_text_input_date';
- break;
- case 'date_popup':
- case 'date_popup_repeat':
- $function = 'date_popup_input_date';
- break;
- default:
- $function = 'date_select_input_date';
- }
- return $function($element, $input);
-}
-
-/**
- * Implements hook_theme().
- */
-function date_theme() {
- $path = drupal_get_path('module', 'date');
- module_load_include('theme', 'date', 'date');
-
- $base = array(
- 'file' => 'date.theme',
- 'path' => "$path",
- );
- $themes = array(
- 'date_combo' => $base + array('render element' => 'element'),
- 'date_text_parts' => $base + array('render element' => 'element'),
- 'date' => $base + array('render element' => 'element'),
- 'date_all_day' => $base + array(
- 'variables' => array(
- 'field' => NULL,
- 'instance' => NULL,
- 'which' => NULL,
- 'date1' => NULL,
- 'date2' => NULL,
- 'format' => NULL,
- 'entity_type' => NULL,
- 'entity' => NULL,
- 'view' => NULL
- )
- ),
- 'date_all_day_label' => $base + array('variables' => array()),
- 'date_display_single' => $base + array('variables' => array(
- 'date' => NULL,
- 'timezone' => NULL
- )),
- 'date_display_range' => $base + array(
- 'variables' => array(
- 'date1' => NULL,
- 'date2' => NULL,
- 'timezone' => NULL
- )),
- 'date_repeat_display' => $base + array(
- 'variables' => array(
- 'field' => NULL,
- 'item' => NULL,
- 'entity_type' => NULL,
- 'entity' => NULL,
- 'dates' => NULL
- ),
- 'function' => 'theme_date_repeat_display',
- ),
- 'date_display_combination' => $base + array(
- 'variables' => array(
- 'entity_type' => NULL,
- 'entity' => NULL,
- 'field' => NULL,
- 'instance' => NULL,
- 'langcode' => NULL,
- 'item' => NULL,
- 'delta' => NULL,
- 'display' => NULL,
- 'dates' => NULL,
- ),
- ),
- 'date_display_interval' => $base + array(
- 'variables' => array(
- 'entity_type' => NULL,
- 'entity' => NULL,
- 'field' => NULL,
- 'instance' => NULL,
- 'langcode' => NULL,
- 'item' => NULL,
- 'delta' => NULL,
- 'display' => NULL,
- 'dates' => NULL,
- ),
- ),
- );
-
- return $themes;
-}
-
-/**
- * Implements hook_element_info().
- *
- * date_combo will create a 'from' and optional 'to' date, along with
- * an optional 'timezone' column for date-specific timezones. Each
- * 'from' and 'to' date will be constructed from date_select or date_text.
- */
-function date_element_info() {
- $type = array();
- $type['date_combo'] = array(
- '#input' => TRUE,
- '#delta' => 0,
- '#columns' => array('value', 'value2', 'timezone', 'offset', 'offset2'),
- '#process' => array('date_combo_element_process'),
- '#element_validate' => array('date_combo_validate'),
- '#value_callback' => 'date_combo_value_callback',
- '#theme_wrappers' => array('date_combo'),
- );
- return $type;
-}
-
-/**
- * Helper function for creating formatted date arrays from a formatter.
- *
- * Use the Date API to get an object representation of a date field
- *
- * @param array $field
- * @param array $item - a entity field item, like $entity->myfield[0]
- *
- * @return array that holds the From and To date objects
- * Each date object looks like:
- * date [value] => array (
- * [db] => array ( // the value stored in the database
- * [object] => the datetime object
- * [datetime] => 2007-02-15 20:00:00
- * )
- * [local] => array ( // the local representation of that value
- * [object] => the datetime object
- * [datetime] => 2007-02-15 14:00:00
- * [timezone] => US/Central
- * [offset] => -21600
- * )
- * )
- */
-function date_formatter_process($formatter, $entity_type, $entity, $field, $instance, $langcode, $item, $display) {
- $dates = array();
- $timezone = date_default_timezone();
- if (empty($timezone)) {
- return $dates;
- }
-
- $granularity = date_granularity($field);
- $settings = $display['settings'];
- $field_name = $field['field_name'];
- $format = date_formatter_format($formatter, $settings, $granularity, $langcode);
- $timezone = isset($item['timezone']) ? $item['timezone'] : '';
- $timezone = date_get_timezone($field['settings']['tz_handling'], $timezone);
- $timezone_db = date_get_timezone_db($field['settings']['tz_handling']);
- $process = date_process_values($field);
- foreach ($process as $processed) {
- if (empty($item[$processed])) {
- $dates[$processed] = NULL;
- }
- else {
- // create a date object with a gmt timezone from the database value
- $value = $item[$processed];
- // @TODO Figure out how to replace date_fuzzy_datetime() function.
- if ($field['type'] == DATE_ISO) {
- //$value = str_replace(' ', 'T', date_fuzzy_datetime($value));
- }
- $date = new DateObject($value, $timezone_db);
- $date->limitGranularity($field['settings']['granularity']);
-
- $dates[$processed] = array();
- $dates[$processed]['db']['object'] = $date;
- $dates[$processed]['db']['datetime'] = date_format($date, DATE_FORMAT_DATETIME);
-
- date_timezone_set($date, timezone_open($timezone));
- $dates[$processed]['local']['object'] = $date;
- $dates[$processed]['local']['datetime'] = date_format($date, DATE_FORMAT_DATETIME);
- $dates[$processed]['local']['timezone'] = $timezone;
- $dates[$processed]['local']['offset'] = date_offset_get($date);
-
- //format the date, special casing the 'interval' format which doesn't need to be processed
- $dates[$processed]['formatted'] = '';
- if (is_object($date)) {
- if ($format == 'format_interval') {
- $dates[$processed]['interval'] = date_format_interval($date);
- }
- elseif ($format == 'format_calendar_day') {
- $dates[$processed]['calendar_day'] = date_format_calendar_day($date);
- }
- elseif ($format == 'U') {
- $dates[$processed]['formatted'] = date_format_date($date, 'custom', $format);
- $dates[$processed]['formatted_date'] = date_format_date($date, 'custom', $format);
- $dates[$processed]['formatted_time'] = '';
- $dates[$processed]['formatted_timezone'] = '';
- }
- elseif (!empty($format)) {
- $dates[$processed]['formatted'] = date_format_date($date, 'custom', $format);
- $dates[$processed]['formatted_date'] = date_format_date($date, 'custom', date_limit_format($format, array('year', 'month', 'day')));
- $dates[$processed]['formatted_time'] = date_format_date($date, 'custom', date_limit_format($format, array('hour', 'minute', 'second')));
- $dates[$processed]['formatted_timezone'] = date_format_date($date, 'custom', date_limit_format($format, array('timezone')));
- }
- }
- }
- }
- if (empty($dates['value2'])) {
- $dates['value2'] = $dates['value'];
- }
- $date1 = $dates['value']['local']['object'];
- $date2 = $dates['value2']['local']['object'];
-
- $all_day = '';
- $all_day2 = '';
- if ($format != 'format_interval') {
- $all_day1 = theme('date_all_day', array(
- 'field' => $field,
- 'which' => 'date1',
- 'date1' => $date1,
- 'date2' => $date2,
- 'format' => $format,
- 'entity_type' => $entity_type,
- 'entity' => $entity));
- $all_day2 = theme('date_all_day', array(
- 'field' => $field,
- 'which' => 'date2',
- 'date1' => $date1,
- 'date2' => $date2,
- 'format' => $format,
- 'entity_type' => $entity_type,
- 'entity' => $entity));
- }
- if ((!empty($all_day1) && $all_day1 != $dates['value']['formatted'])
- || (!empty($all_day2) && $all_day2 != $dates['value2']['formatted'])) {
- $dates['value']['formatted_time'] = theme('date_all_day_label');
- $dates['value2']['formatted_time'] = theme('date_all_day_label');
- $dates['value']['formatted'] = $all_day1;
- $dates['value2']['formatted'] = $all_day2;
- }
- $dates['format'] = $format;
- return $dates;
-}
-
-/**
- * $field['settings']['granularity'] will contain an array like ('hour' => 'hour', 'month' => 0)
- * where the values turned on return their own names and the values turned off return a zero
- * need to reconfigure this into a simple array of the turned on values
- */
-function date_granularity($field) {
- if (!is_array($field) || !is_array($field['settings']['granularity'])) {
- $field['settings']['granularity'] = drupal_map_assoc(array('year', 'month', 'day'));
- }
- return array_values(array_filter($field['settings']['granularity']));
-}
-
-/**
- * Helper function to create an array of the date values in a
- * field that need to be processed.
- */
-function date_process_values($field) {
- return $field['settings']['todate'] ? array('value', 'value2') : array('value');
-}
-
-/**
- * Implement hook_help().
- */
-function date_help($path, $arg) {
- switch ($path) {
- case 'admin/help#date':
- return '<p>' . t('Complete documentation for the Date and Date API modules is available at <a href="@link">http://drupal.org/node/92460</a>.', array('@link' => 'http://drupal.org/node/92460')) . '</p>';
- break;
- }
-}
-
-/**
- * Implements hook_form_alter().
- * Make sure date information gets updated.
- */
-function date_form_alter(&$form, &$form_state, $form_id) {
- if ($form_id == 'field_ui_field_edit_form') {
- $field = $form['field'];
- $instance = $form['instance'];
- // If adding a repeat, override the Content module's handling of the multiple values option.
- if (module_exists('date_repeat') && date_is_repeat_field($field, $instance)) {
- $form['field']['cardinality'] = array('#type' => 'hidden', '#value' => FIELD_CARDINALITY_UNLIMITED);
- }
- }
-}
-
-/**
- * Implements hook_field_widget_error().
- */
-function date_field_widget_error($element, $error, $form, &$form_state) {
- form_error($element[$error['error']], $error['message']);
-}
-
-/**
- * Retrieve a date format string from formatter settings.
- */
-function date_formatter_format($formatter, $settings, $granularity = NULL, $langcode = NULL) {
- $default = variable_get('date_format_medium', 'D, m/d/Y - H:i');
- $format_type = !empty($settings['format_type']) ? $settings['format_type'] : 'format_interval';
-
- switch ($formatter) {
- case 'format_interval':
- return 'format_interval';
- break;
- case 'date_default':
- $format = system_date_format_locale($langcode, $format_type);
- if (empty($format)) {
- $format = variable_get('date_format_'. $format_type, $default);
- }
- break;
- default:
- $type = str_replace('date_', '', $formatter);
- $format = system_date_format_locale($langcode, $type);
- if (empty($format)) {
- $format = variable_get('date_format_'. $type, $default);
- }
- break;
- }
-
- // A selected format might include timezone information.
- array_push($granularity, 'timezone');
- return date_limit_format($format, $granularity);
-}
-
-/**
- * Implements hook_views_api().
- */
-function date_views_api() {
- return array(
- 'api' => 2,
- 'path' => drupal_get_path('module', 'date'),
- );
-}
-
-/**
- * Helper function to adapt entity date fields to formatter settings.
- */
-function date_prepare_entity($formatter, $entity_type, $entity, $field, $instance, $langcode, $item, $display) {
-
- // If there are options to limit multiple values,
- // alter the entity values to match.
- $field_name = $field['field_name'];
- $options = $display['settings'];
- $max_count = $options['multiple_number'];
-
- // If no results should be shown, empty the values and return.
- if (is_numeric($max_count) && $max_count == 0) {
- $entity->{$field_name} = array();
- return $entity;
- }
-
- // Otherwise removed values that should not be displayed.
- if (!empty($options['multiple_from']) || !empty($options['multiple_to']) || !empty($max_count)) {
- $format = date_type_format($field['type']);
- include_once(drupal_get_path('module', 'date_api') . '/date_api_sql.inc');
- $date_handler = new date_sql_handler($field);
- $arg0 = !empty($options['multiple_from']) ? $date_handler->arg_replace($options['multiple_from']) : variable_get('date_min_year', 100) . '-01-01T00:00:00';
- $arg1 = !empty($options['multiple_to']) ? $date_handler->arg_replace($options['multiple_to']) : variable_get('date_max_year', 4000) . '-12-31T23:59:59';
- if (!empty($arg0) && !empty($arg1)) {
- $arg = $arg0 . '--' . $arg1;
- }
- elseif (!empty($arg0)) {
- $arg = $arg0;
- }
- elseif (!empty($arg1)) {
- $arg = $arg1;
- }
- if (!empty($arg)) {
- $range = $date_handler->arg_range($arg);
- $start = date_format($range[0], $format);
- $end = date_format($range[1], $format);
- // Empty out values we don't want to see.
- $count = 0;
- foreach ($entity->{$field_name}[$langcode] as $delta => $value) {
- if (!empty($entity->date_repeat_show_all)) {
- break;
- }
- elseif ((!empty($max_count) && is_numeric($max_count) && $count >= $max_count) ||
- (!empty($value['value']) && $value['value'] < $start) ||
- (!empty($value['value2']) && $value['value2'] > $end)) {
- unset($entity->{$field_name}[$langcode][$delta]);
- }
- else {
- $count++;
- }
- }
- }
- }
-
- return $entity;
-}
-
-/**
- * Identify all fields in this view that use the CCK Date handler.
- */
-function date_handler_fields($view) {
- $field_names = array();
- if (empty($view->date_info->date_fields)) {
- $view->date_info->date_fields = array();
- }
- foreach ($view->field as $field) {
- if ($field->definition['handler'] == 'date_handler_field_multiple') {
- $name = $field->field;
- $group = $field->options['multiple'];
- if (substr($name, -7) == '_value2') {
- $field_name = substr($name, 0, strlen($name) - 7);
- }
- elseif (substr($name, -6) == '_value') {
- $field_name = substr($name, 0, strlen($name) - 6);
- }
- else {
- $field_name = '';
- $group = array();
- continue;
- }
- foreach ($view->date_info->date_fields as $date_field) {
- if (strstr($date_field, ' . ' . $field_name)) {
- $delta_field = 'entity_data_' . $field_name . '_delta';
- $field_names[$field_name] = array('options' => $group, 'delta_field' => $delta_field, 'view_field' => clone($field));
- // Get rid of the huge view object in the field handler.
- unset($field_names[$field_name]['view_field']->view);
- }
- }
- }
- }
- return $field_names;
-}
-
-
-/**
- * Generate a DateAPI SQL handler for the given CCK date field.
- *
- * The handler will be set up to make the correct timezone adjustments
- * for the field settings.
- *
- * @param $field
- * - a $field array.
- * @param $compare_tz
- * - the timezone used for comparison values in the SQL.
- */
- function date_field_get_sql_handler($field, $compare_tz = NULL) {
- module_load_include('inc', 'date_api', 'date_api_sql');
-
- $db_info = date_api_database_info($field);
-
- // Create a DateAPI SQL handler class for this field type.
- $handler = new date_sql_handler();
- $handler->construct($field['type']);
-
- // If this date field stores a timezone in the DB, tell the handler about it.
- if ($field['settings']['tz_handling'] == 'date') {
- $handler->db_timezone_field = $db_info['columns']['timezone']['column'];
- }
- else {
- $handler->db_timezone = date_get_timezone_db($field['settings']['tz_handling']);
- }
-
- if (empty($compare_tz)) {
- $compare_tz = date_get_timezone($field['settings']['tz_handling']);
- }
- $handler->local_timezone = $compare_tz;
-
- // Now that the handler is properly initialized, force the DB
- // to use UTC so no timezone conversions get added to things like
- // NOW() or FROM_UNIXTIME().
- $handler->set_db_timezone();
-
- return $handler;
-}
-
-/**
- * Callback to alter the property info of date fields.
- *
- * @see date_field_info()
- */
-function date_entity_metadata_property_info_alter(&$info, $entity_type, $field, $instance, $field_type) {
- $name = $field['field_name'];
- $property = &$info[$entity_type]['bundles'][$instance['bundle']]['properties'][$name];
- if ($field['type'] != 'datestamp' || $field['settings']['timezone_db'] != 'UTC') {
- // Add a getter callback to convert the date into the right format.
- $property['getter callback'] = 'date_entity_metadata_field_getter';
- unset($property['query callback']);
- unset($property['setter callback']);
- }
- if (!empty($field['settings']['todate'])) {
- // Define a simple data structure containing both dates.
- $property['type'] = ($field['cardinality'] != 1) ? 'list<struct>' : 'struct';
- $property['getter callback'] = 'entity_metadata_field_verbatim_get';
- $property['property info'] = array(
- 'value' => array(
- 'type' => 'date',
- 'label' => t('From date'),
- 'getter callback' => 'date_entity_metadata_struct_getter',
- ),
- 'value2' => array(
- 'type' => 'date',
- 'label' => t('To date'),
- 'getter callback' => 'date_entity_metadata_struct_getter',
- ),
- 'duration' => array(
- 'type' => 'duration',
- 'label' => t('Duration'),
- 'desription' => t('The duration of the time period given by the dates.'),
- 'getter callback' => 'date_entity_metadata_duration_getter',
- ),
- );
- unset($property['query callback']);
- unset($property['setter callback']);
- }
-}
-
-/**
- * Getter callback to return date values as datestamp in UTC from the field.
- */
-function date_entity_metadata_field_getter($object, array $options, $name, $obj_type, &$context) {
- $return = entity_metadata_field_verbatim_get($object, $options, $name, $obj_type, $context);
- $items = ($context['field']['cardinality'] == 1) ? array($return) : $return;
- foreach ($items as $key => $item) {
- $items[$key] = date_entity_metadata_struct_getter($item, $options, 'value', 'struct');
- }
- return ($context['field']['cardinality'] == 1) ? $items[0] : $items;
-}
-
-/**
- * Getter callback to return date values as datestamp in UTC.
- */
-function date_entity_metadata_struct_getter($item, array $options, $name, $type) {
- $value = trim($item[$name]);
- $timezone_db = !empty($item['timezone_db']) ? $item['timezone_db'] : 'UTC';
- $date = new DateObject($value, $timezone_db);
- return !empty($date) ? date_format_date($date, 'custom', 'U') : NULL;
-}
-
-/**
- * Getter callback to return the duration of the time period given by the dates.
- */
-function date_entity_metadata_duration_getter($item, array $options, $name, $type) {
- $value = date_entity_metadata_struct_getter($item, $options, 'value', 'struct');
- $value2 = date_entity_metadata_struct_getter($item, $options, 'value2', 'struct');
- if ($value && $value2) {
- return $value2 - $value;
- }
-}
-
-/**
- * Create a Views field for each date column we care about
- * to supplement the generic 'entity_id' and 'revision_id'
- * fields that are automatically created.
- */
-function date_field_views_data_alter(&$result, $field, $module) {
- if ($module == 'date') {
- foreach ($result as $table => $data) {
- $additional = array();
- $key = array_key_exists('entity_id', $data) ? 'entity_id' : 'revision_id';
- foreach ($data as $column => $value) {
- if (array_key_exists('argument', $value)) {
- $result[$table][$column]['argument']['handler'] = 'date_api_argument_handler';
- $additional = $result[$table][$column]['argument']['additional fields'];
- }
- if (array_key_exists('filter', $value)) {
- $result[$table][$column]['filter']['handler'] = 'date_api_filter_handler';
- }
- // Not sure yet if we still need this in D7 now that custom formatters are available.
- // Might still need it to handle grouping of multiple value dates.
- if (array_key_exists($key, $value)) {
- //$result[$table][$column]['field']['handler'] = 'date_handler_field_date';
- }
- }
- // Add additional fields to the field as well as the argument and filter.
- $result[$table][$key]['field']['additional fields'] = array_merge($result[$table][$key]['field']['additional fields'], $additional);
- }
- }
-}
-
-/**
- * Determine if a from/to date combination qualify as 'All day'.
- *
- * @param array $field, the field definition for this date field.
- * @param object $date1, a date/time object for the 'from' date.
- * @param object $date2, a date/time object for the 'to' date.
- * @return TRUE or FALSE.
- */
-function date_field_all_day($field, $instance, $date1, $date2 = NULL) {
- if (empty($date1) || !is_object($date1)) {
- return FALSE;
- }
- elseif (!date_has_time($field['settings']['granularity'])) {
- return FALSE;
- }
- if (empty($date2)) {
- $date2 = $date1;
- }
-
- $granularity = $field['settings']['granularity'];
- $granularity = array_pop($granularity);
- $increment = isset($instance['widget']['increment']) ? $instance['widget']['increment'] : 1;
- return date_is_all_day(date_format($date1, DATE_FORMAT_DATETIME), date_format($date1, DATE_FORMAT_DATETIME), $granularity, $increment);
-
-}
diff --git a/date/date.theme b/date/date.theme
deleted file mode 100644
index b8b9c17..0000000
--- a/date/date.theme
+++ /dev/null
@@ -1,329 +0,0 @@
-<?php
-// $Id$
-/**
- * @file
- * Theme functions.
- */
-/**
- * @addtogroup themeable
- * @{
- *
- * Formatter themes
- */
-/**
- * Theme from/to date combination in the view.
- *
- * $node->date_id
- * If set, this will show only an individual date on a field with
- * multiple dates. The value should be a string that contains
- * the following values, separated with periods:
- * - module name of the module adding the item
- * - node nid
- * - field name
- * - delta value of the field to be displayed
- * - other information the module's custom theme might need
- *
- * Used by the calendar module and available for other uses.
- * example: 'date.217.field_date.3.test'
- *
- * $node->date_repeat_show
- * If true, tells the theme to show all the computed values
- * of a repeating date. If not true or not set, only the
- * start date and the repeat rule will be displayed.
- *
- * $dates['format'] - the format string used on these dates
- * $dates['value']['local']['object'] - the local date object for the From date
- * $dates['value2']['local']['object'] - the local date object for the To date
- * $dates['value']['local']['datetime'] - the datetime value of the From date database (GMT) value
- * $dates['value2']['local']['datetime'] - the datetime value of the To date database (GMT) value
- * $dates['value']['formatted'] = formatted From date, i.e. 'February 15, 2007 2:00 pm';
- * $dates['value']['formatted_date'] - only the date part of the formatted From date
- * $dates['value']['formatted_time'] - only the time part of the formatted From date
- * $dates['value2']['formatted'] = formatted To date, i.e. 'February 15, 2007 6:00 pm';
- * $dates['value2']['formatted_date'] - only the date part of the formatted To date
- * $dates['value2']['formatted_time'] - only the time part of the formatted To date
- */
-function theme_date_display_combination($vars) {
- static $repeating_ids = array();
-
- $entity_type = $vars['entity_type'];
- $entity = $vars['entity'];
- $field = $vars['field'];
- $instance = $vars['instance'];
- $langcode = $vars['langcode'];
- $item = $vars['item'];
- $delta = $vars['delta'];
- $display = $vars['display'];
- $field_name = $field['field_name'];
- $formatter = $display['type'];
- $options = $display['settings'];
- $dates = $vars['dates'];
- $output = '';
-
- // If date_id is set for this field and the delta doesn't match, don't display it.
- if (!empty($node->date_id)) {
- foreach ((array) $node->date_id as $key => $id) {
- list($module, $nid, $field_name, $item_delta, $other) = explode('.', $id);
- if ($field_name == $field['field_name'] && isset($delta) && $item_delta != $delta) {
- return $output;
- }
- }
- }
-
- // Check the formatter settings to see if the repeat rule should be
- // displayed. Show it only with the first multiple value date.
- list($id) = entity_extract_ids($entity_type, $entity);
- if (!in_array($id, $repeating_ids) && module_exists('date_repeat')
- && !empty($item['rrule']) && $options['show_repeat_rule'] == 'show') {
- module_load_include('inc', 'date', 'date_repeat');
- $repeat_vars = array(
- 'field' => $field,
- 'item' => $item,
- 'entity_type' => $entity_type,
- 'entity' => $entity,
- );
- $output .= theme('date_repeat_display', $repeat_vars);
- $repeating_ids[] = $id;
- }
-
-
- // If this is a full node or a pseudo node created by grouping
- // multiple values, see exactly which values are supposed to be visible.
- if (isset($entity->$field_name)) {
- $entity = date_prepare_entity($formatter, $entity_type, $entity, $field, $instance, $langcode, $item, $display);
- // Did the current value get removed by formatter settings?
- if (empty($entity->{$field_name}[$langcode][$delta])) {
- return $output;
- }
- // Adjust the $element values to match the changes.
- $element['#entity'] = $entity;
- }
-
- switch ($options['fromto']) {
- case 'value':
- $date1 = $dates['value']['formatted'];
- $date2 = $date1;
- break;
- case 'value2':
- $date2 = $dates['value2']['formatted'];
- $date1 = $date2;
- break;
- default:
- $date1 = $dates['value']['formatted'];
- $date2 = $dates['value2']['formatted'];
- break;
- }
-
- // Pull the timezone, if any, out of the formatted result and tack it
- // back on at the end, if it is in the current formatted date.
- $timezone = $dates['value']['formatted_timezone'];
- if ($timezone) {
- $timezone = ' ' . $timezone;
- }
- $date1 = str_replace($timezone, '', $date1);
- $date2 = str_replace($timezone, '', $date2);
-
- // No date values, display nothing.
- if (empty($date1) && empty($date2)) {
- $output .= '';
- }
- // From and To dates match or there is no To date, display a complete single date.
- elseif ($date1 == $date2 || empty($date2)) {
- $output .= theme('date_display_single', array(
- 'date' => $date1,
- 'timezone' => $timezone
- ));
- }
- // Same day, different times, don't repeat the date but show both From and To times.
- elseif (date_has_time($field['settings']['granularity']) && $dates['value']['formatted_date'] == $dates['value2']['formatted_date']) {
- // Replace the original time with the from/to time in the formatted start date.
- // Make sure that parentheses or brackets wrapping the time will be retained in the
- // final result.
- $time1 = preg_replace('`^([\(\[])`', '', $dates['value']['formatted_time']);
- $time1 = preg_replace('([\)\]]$)', '', $time1);
- $time2 = preg_replace('`^([\(\[])`', '', $dates['value2']['formatted_time']);
- $time2 = preg_replace('([\)\]]$)', '', $time2);
- $time = theme('date_display_range', array('date1' => $time1, 'date2' => $time2));
- $replaced = str_replace($time1, $time, $date1);
- $output .= theme('date_display_single', array('date' => $replaced, 'timezone' => $timezone));
- }
- // Different days, display both in their entirety.
- else {
- $output .= theme('date_display_range', array('date1' => $date1, 'date2' => $date2, 'timezone' => $timezone));
- }
-
- return $output;
-}
-
-function theme_date_display_single($vars) {
- $date = $vars['date'];
- $timezone = !empty($vars['timezone']) ? $vars['timezone'] : NULL;
- return '<span class="date-display-single">' . $date . $timezone . '</span>';
-}
-
-function theme_date_display_range($vars) {
- $date1 = $vars['date1'];
- $date2 = $vars['date2'];
- $timezone = !empty($vars['timezone']) ? $vars['timezone'] : NULL;
- return '<span class="date-display-start">' . $date1 . '</span>' .
- '<span class="date-display-separator"> - </span>' .
- '<span class="date-display-end">' . $date2 . $timezone. '</span>';
-}
-
-/**
- * Theme a format interval for a date element
- *
- * @param $field = the field settings
- * @param $entity = node information, this is not always available and not
- * always the full node, it depends on what value was provided to the formatter.
- * Only the nid is always guaranteed to be available.
- * @param $dates - an array of date information, see explanation for date_field_object for details.
- * @return a formatted display
- *
- */
-function theme_date_display_interval($vars) {
- $entity_type = $vars['entity_type'];
- $entity = $vars['entity'];
- $field = $vars['field'];
- $instance = $vars['instance'];
- $langcode = $vars['langcode'];
- $item = $vars['item'];
- $delta = $vars['delta'];
- $display = $vars['display'];
- $field_name = $field['field_name'];
- $options = $display['settings'];
- $dates = $vars['dates'];
- $formatter = $display['type'];
-
- // Get the formatter settings, either the default settings for this node
- // type or the View settings stored in $entity->date_info.
- if (!empty($entity->date_info) && !empty($entity->date_info->formatter_settings)) {
- $options = $entity->date_info->formatter_settings;
- }
-
- $time_ago_vars = array(
- 'start_date' => $dates['value']['local']['object'],
- 'end_date' => $dates['value2']['local']['object'],
- 'interval' => $options['interval'],
- );
- return theme('date_time_ago', $time_ago_vars);
-}
-
-/**
- * Theme the human-readable description for a Date Repeat rule.
- *
- * TODO -
- * add in ways to store the description in the date so it isn't regenerated
- * over and over and find a way to allow description to be shown or hidden.
- */
-function theme_date_repeat_display($vars) {
- $field = $vars['field'];
- $item = $vars['item'];
- $entity = !empty($vars['node']) ? $vars['node'] : NULL;
- $output = '';
- if (!empty($item['rrule'])) {
- $output = date_repeat_rrule_description($item['rrule']);
- $output = '<div>' . $output . '</div>';
- }
- return $output;
-}
-
-/**
- * Adjust from/to date format to account for 'all day' .
- *
- * @param array $field, the field definition for this date field.
- * @param string $which, which value to return, 'date1' or 'date2' .
- * @param object $date1, a date/time object for the 'from' date.
- * @param object $date2, a date/time object for the 'to' date.
- * @param string $format
- * @param object $entity, the node this date comes from (may be incomplete, always contains nid).
- * @param object $view, the view this node comes from, if applicable.
- * @return formatted date.
- */
-function theme_date_all_day($vars) {
- $field = $vars['field'];
- $instance = $vars['instance'];
- $which = $vars['which'];
- $date1 = $vars['date1'];
- $date2 = $vars['date2'];
- $format = $vars['format'];
- $entity = $vars['entity'];
- $view = !empty($vars['view']) ? $vars['view'] : NULL;
-
- if (empty($date1) || !is_object($date1) || $format == 'format_interval') {
- return;
- }
- if (empty($date2)) {
- $date2 = $date1;
- }
-
- if (!date_has_time($field['settings']['granularity'])) {
- $format = date_limit_format($format, array('year', 'month', 'day'));
- return date_format_date($$which, 'custom', $format);
- }
-
- if ($all_day = date_field_all_day($field, $instance, $date1, $date2)) {
- $format = date_limit_format($format, array('year', 'month', 'day'));
- return trim(date_format_date($$which, 'custom', $format) .' '. theme('date_all_day_label'));
- }
- else {
- return date_format_date($$which, 'custom', $format);
- }
-
-}
-
-/**
- * Theme the way an 'all day' label will look.
- */
-function theme_date_all_day_label() {
- return '(' . t('All day', array(), array('context' => 'datetime')) .')';
-}
-
-/**
- * Theme from/to date combination on form.
- */
-function theme_date_combo($vars) {
- $element = $vars['element'];
- $field = field_info_field($element['#field_name']);
- $instance = field_info_instance($element['#entity_type'], $element['#field_name'], $element['#bundle']);
- if (!$field['settings']['todate']) {
- return $element['#children'];
- }
-
- // Group from/to items together in fieldset.
- $fieldset = array(
- '#title' => check_plain($instance['label']) . ' ' . ($element['#delta'] > 0 ? intval($element['#delta'] + 1) : ''),
- '#value' => '',
- '#description' => $element['#fieldset_description'],
- '#attributes' => array(),
- '#children' => $element['#children'],
- );
- return theme('fieldset', array('element' => $fieldset));
-}
-
-/**
- * Display the text/select options for date parts in a table
- * for easier readability.
- */
-function theme_date_text_parts($vars) {
- $element = $vars['element'];
- $names = date_granularity_names();
- $rows = array();
- foreach ($names as $key => $part) {
- if ($element[$key]['#type'] == 'hidden') {
- $rows[] = drupal_render($element[$key]);
- }
- else {
- $rows[] = array($names[$key], drupal_render($element[$key][0]), drupal_render($element[$key][1]));
- }
- }
- if ($element['year']['#type'] == 'hidden') {
- return implode($rows) . drupal_render_children($element);
- }
- else {
- $header = array(t('Input Type'), t('Select list'), t('Text field'));
- return theme('table', array('header' => $header, 'rows' => $rows)) . drupal_render_children($element);
- }
-}
-
-/** @} End of addtogroup themeable */ \ No newline at end of file
diff --git a/date/date.views.inc b/date/date.views.inc
deleted file mode 100644
index 5149149..0000000
--- a/date/date.views.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-// $Id$
-/**
- * @file
- * Date Views code.
- */
diff --git a/date/date_admin.inc b/date/date_admin.inc
deleted file mode 100644
index c17bea1..0000000
--- a/date/date_admin.inc
+++ /dev/null
@@ -1,488 +0,0 @@
-<?php
-// $Id$
-/**
- * @file
- * Date administration code.
- * Moved to separate file since there is a lot of code here that is not needed often.
- */
-/**
- * Settings for the default formatter.
- */
-function date_default_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
- $display = $instance['display'][$view_mode];
- $settings = $display['settings'];
- $formatter = $display['type'];
- $form = array();
-
- $form['format_type'] = array(
- '#title' => t('Format:'),
- '#type' => 'select',
- '#options' => date_format_type_options(),
- '#default_value' => $settings['format_type'],
- '#weight' => 0,
- );
-
- $form['fromto'] = array(
- '#title' => t('Display:'),
- '#type' => 'select',
- '#options' => array(
- 'both' => t('Both From and To dates'),
- 'value' => t('From date only'),
- 'value2' => t('To date only'),
- ),
- '#access' => $field['settings']['todate'],
- '#default_value' => $settings['fromto'],
- '#weight' => 1,
- );
-
- // Make the string translatable by keeping it as a whole rather than
- // translating prefix and suffix separately.
- list($prefix, $suffix) = explode('@count', t('Show @count value(s)'));
- $form['multiple_number'] = array(
- '#type' => 'textfield',
- '#title' => t('Multiple values:'),
- '#size' => 5,
- '#field_prefix' => theme('advanced_help_topic', 'date_api', 'date-display') . $prefix,
- '#field_suffix' => $suffix,
- '#default_value' => $settings['multiple_number'],
- '#weight' => 2,
- '#access' => $field['cardinality'] == FIELD_CARDINALITY_UNLIMITED ? 1 : $field['cardinality'],
- '#description' => t('Identify a specific number of values to display, or leave blank to show all values.'),
- );
-
- list($prefix, $suffix) = explode('@isodate', t('starting from @isodate'));
- $form['multiple_from'] = array(
- '#type' => 'textfield',
- '#size' => 15,
- '#field_prefix' => $prefix,
- '#field_suffix' => $suffix,
- '#default_value' => $settings['multiple_from'],
- '#weight' => 3,
- '#access' => $field['cardinality'] == FIELD_CARDINALITY_UNLIMITED ? 1 : $field['cardinality'],
- );
-
- list($prefix, $suffix) = explode('@isodate', t('ending with @isodate'));
- $form['multiple_to'] = array(
- '#type' => 'textfield',
- '#size' => 15,
- '#field_prefix' => $prefix,
- '#field_suffix' => $suffix,
- '#default_value' => $settings['multiple_to'],
- '#weight' => 4,
- '#access' => $field['cardinality'] == FIELD_CARDINALITY_UNLIMITED ? 1 : $field['cardinality'],
- '#description' => t('Identify specific start and/or end dates in the format YYYY-MM-DDTHH:MM:SS, or leave blank for all available dates.'),
- );
-
- $form['show_repeat_rule'] = array(
- '#title' => t('Repeat rule:'),
- '#type' => 'select',
- '#options' => array(
- 'show' => t('Display repeat rule'),
- 'hide' => t('Hide repeat rule')),
- '#default_value' => $settings['show_repeat_rule'],
- '#access' => $field['settings']['repeat'],
- '#weight' => 5,
- );
-
- return $form;
-}
-
-/**
- * Settings for the interval formatter.
- */
-function date_interval_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
- $display = $instance['display'][$view_mode];
- $settings = $display['settings'];
- $form = array();
- $form['interval'] = array(
- '#title' => t('Interval'),
- '#description' => t("How many time units should be shown in the 'time ago' string."),
- '#type' => 'select',
- '#options' => drupal_map_assoc(range(1, 6)),
- '#default_value' => $settings['interval'],
- '#weight' => 0,
- );
- return $form;
-}
-
-/**
- * Settings summary for the default formatter.
- */
-function date_default_formatter_settings_summary($field, $instance, $view_mode) {
- $display = $instance['display'][$view_mode];
- $settings = $display['settings'];
- $formatter = $display['type'];
- $format_types = date_format_type_options();
- $summary = array();
-
- $summary[] = t('Use the @format format type.', array('@format' => $format_types[$settings['format_type']]));
-
- $options = array(
- 'both' => t('Display both From and To dates'),
- 'value' => t('Display From date only'),
- 'value2' => t('Display To date only'),
- );
- $summary[] = $options[$settings['fromto']];
-
- if (!empty($field['cardinality'])) {
- $summary[] = t('Show @count value(s) starting with @date1, ending with @date2', array(
- '@count' => !empty($settings['multiple_number']) ? $settings['multiple_number'] : t('all'),
- '@date1' => !empty($settings['multiple_from']) ? $settings['multiple_from'] : t('earliest'),
- '@date2' => !empty($settings['multiple_to']) ? $settings['multiple_to'] : t('latest'),
- ));
- }
-
- if (!empty($field['repeat'])) {
- if (!empty($settings['show_repeat_rule'])) {
- $summary[] = t('Show repeat rule');
- }
- else {
- $summary[] = t('Do not show repeat rule');
- }
- }
-
- return implode('<br />', $summary);
-}
-
-/**
- * Settings summary for the interval formatter.
- * @TODO Add settings later.
- */
-function date_interval_formatter_settings_summary($field, $instance, $view_mode) {
- $summary = array();
- $display = $instance['display'][$view_mode];
- $settings = $display['settings'];
- $formatter = $display['type'];
- return t('Display time ago, showing @interval units.', array('@interval' => $settings['interval']));
-
-}
-
-function _date_field_instance_settings_form($field, $instance) {
- $widget = $instance['widget'];
- $settings = $instance['settings'];
- $widget_settings = $instance['widget']['settings'];
- $form['default_value'] = array(
- '#type' => 'select', '#title' => t('Default value'),
- '#default_value' => $settings['default_value'],
- '#options' => array('blank' => t('Blank'), 'now' => t('Now'), 'strtotime' => t('Relative')),
- '#description' => t("A default value to use for this field. If you select 'Relative', add details below."),
- '#weight' => 1,
- );
- if (!empty($field['settings']['todate'])) {
- $form['default_value2'] = array(
- '#type' => 'select', '#title' => t('Default value for To date'),
- '#default_value' => $settings['default_value2'],
- '#options' => array('same' => t('Same as From date'), 'blank' => t('Blank'), 'now' => t('Now'), 'strtotime' => t('Relative')),
- '#description' => t("A default value to use for this field. If you select 'Relative', add details below."),
- '#weight' => 2,
- );
- }
- $form['default'] = array(
- '#type' => 'fieldset',
- '#title' => t('Customize Default Value'),
- '#description' => '<p>' . t("The custom value for a Relative default should be something that describes a time by reference to the current day using strtotime, like '+90 days' (90 days from the day the field is created) or '+1 Saturday' (the next Saturday). See !strtotime for more details.", array('!strtotime' => l(t('strtotime'), 'http://www.php.net/manual/en/function.strtotime.php'))) . '</p>',
- '#collapsible' => TRUE,
- '#collapsed' => TRUE,
- '#weight' => 3,
- );
- $form['default']['default_value_code'] = array(
- '#type' => 'textfield', '#title' => t('Custom default value'),
- '#default_value' => $settings['default_value_code'],
- );
- if (!empty($field['settings']['todate'])) {
- $form['default']['default_value_code2'] = array(
- '#type' => 'textfield', '#title' => t('Custom default value for To date'),
- '#default_value' => $settings['default_value_code2'],
- );
- }
-
- $format_types = array();
- foreach (_system_date_format_types_build() as $name => $info) {
- $format_types[$name] = $info['title'];
- }
-
- $form['default_format'] = array(
- '#type' => 'select',
- '#title' => t('Default Display'),
- '#default_value' => $settings['default_format'],
- '#options' => $format_types,
- '#description' => t('Select a default format type to be used for the date display. Visit the <a href="@date-time-page">Date and time date format page</a> to add and edit format types.', array('@date-time-page' => url('admin/config/regional/date-time/formats'))),
- );
- if (module_exists('date_repeat') && date_is_repeat_field($field, $instance)) {
- $form['repeat_collapsed'] = array(
- '#type' => 'radios',
- '#default_value' => $widget_settings['repeat_collapsed'],
- '#options' => array(0 => t('Expanded'), 1 => t('Collapsed')),
- '#title' => t('Repeat display'),
- '#description' => t("Should the repeat options form start out expanded or collapsed? Set to 'Collapsed' to make those options less obtrusive."),
- );
- }
- return $form;
-}
-
-function date_field_instance_settings_form_validate(&$form, &$form_state) {
- $settings = $form_state['values']['instance']['settings'];
- if ($settings['default_value'] == 'strtotime') {
- $is_strtotime = @strtotime($settings['default_value_code']);
- if (!$is_strtotime) {
- form_set_error('instance][settings][default_value_code', t('The Strtotime default value is invalid.'));
- }
- }
- if ($settings['default_value2'] == 'strtotime') {
- $is_strtotime = @strtotime($settings['default_value_code2']);
- if (!$is_strtotime) {
- form_set_error('instance][settings][default_value_code2', t('The Strtotime default value for the To Date is invalid.'));
- }
- }
-}
-
-function _date_field_widget_settings_form($field, $instance) {
- $widget = $instance['widget'];
- $settings = $widget['settings'];
-
- $form = array(
- '#element_validate' => array('date_field_widget_settings_form_validate'),
- );
-
- $options = array();
- if ($widget['type'] == 'date_popup' && module_exists('date_popup')) {
- $formats = date_popup_formats();
- }
- else {
- // example input formats must show all possible date parts, so add seconds.
- $formats = str_replace('i', 'i:s', array_keys(system_get_date_formats('short')));
- $formats = drupal_map_assoc($formats);
- }
- $now = date_example_date();
- foreach ($formats as $f) {
- $options[$f] = date_format_date($now, 'custom', $f);
- }
- $form['input_format'] = array(
- '#type' => 'select', '#title' => t('Input format'),
- '#default_value' => $settings['input_format'],
- '#options' => $options,
- '#description' => t('Set the order and format for the date parts in the input form. The format will be adapted to remove values not in the granularity for this field.'),
- '#weight' => 4,
-
- );
-
- // Only a limited set of formats is available for the Date Popup module
- if ($widget['type'] != 'date_popup') {
- $form['format'] = array(
- '#type' => 'fieldset',
- '#title' => t('Customize Input Format'),
- '#collapsible' => TRUE,
- '#collapsed' => TRUE,
- '#weight' => 5,
- );
- $form['format']['input_format_custom'] = array(
- '#type' => 'textfield',
- '#title' => t('Custom input format'),
- '#default_value' => $settings['input_format_custom'],
- '#description' => t("The custom format, if provided, will override the input format selected above. The custom format, if provided, will override the selected display or input options. Define a php date format string like 'm-d-Y H:i' (see <a href=\"@link\">http://php.net/date</a> for more details).", array('@link' => 'http://php.net/date')),
- );
- }
- else {
- $form['format']['input_format_custom'] = array(
- '#type' => 'hidden',
- '#value' => '',
- );
- }
- if (in_array($widget['type'], array('date_select', 'date_popup', 'date_select_repeat', 'date_popup_repeat'))) {
- $form['year_range'] = array(
- '#type' => 'textfield',
- '#title' => t('Years back and forward'),
- '#default_value' => $settings['year_range'],
- '#size' => 10,
- '#maxsize' => 10,
- '#description' => t('Number of years to go back and forward in the year selection list, default is -3:+3.'),
- '#weight' => 6,
- );
- $form['increment'] = array(
- '#type' => 'select', '#title' => t('Time increment'),
- '#default_value' => $settings['increment'],
- '#options' => array(1 => 1, 5 => 5, 10 => 10, 15 => 15, 30 => 30),
- '#description' => t('Increment the minute and second fields by this amount.'),
- '#weight' => 7,
- );
- }
- else {
- $form['increment'] = array(
- '#type' => 'hidden',
- '#value' => $settings['increment'],
- );
- $form['year_range'] = array(
- '#type' => 'hidden',
- '#value' => $settings['year_range'],
- );
- }
-
- $form['label_position'] = array(
- '#type' => 'value',
- '#value' => $settings['label_position'],
- );
- $form['text_parts'] = array(
- '#type' => 'value',
- '#value' => $settings['text_parts'],
- );
- $form['advanced'] = array(
- '#type' => 'fieldset',
- '#title' => t('Customize Date Parts'),
- '#collapsible' => TRUE,
- '#collapsed' => TRUE,
- '#weight' => 8,
- );
- $form['advanced']['label_position'] = array(
- '#type' => 'radios',
- '#options' => array('above' => t('Above'), 'within' => t('Within'), 'none' => t('None')),
- '#default_value' => $settings['label_position'],
- '#title' => t('Position of date part labels'),
- '#description' => t("The location of date part labels, like 'Year', 'Month', or 'Day' . 'Above' will display them as titles above each date part. 'Within' will insert the label as the first option in the select list and in blank textfields. 'None' will not label any of the date parts. The exact text in the label is controlled by themes like 'date_part_label_year' and 'date_part_label_month' ."),
- );
- $form['advanced']['text_parts'] = array(
- '#theme' => $widget['type'] == 'date_select' ? 'date_text_parts' : '',
- );
- $text_parts = (array) $settings['text_parts'];
- foreach (date_granularity_names() as $key => $value) {
- if ($widget['type'] == 'date_select') {
- $form['advanced']['text_parts'][$key] = array(
- '#type' => 'radios',
- '#default_value' => in_array($key, $text_parts) ? 1 : 0,
- '#options' => array(0 => '', 1 => ''),
- );
- }
- else {
- $form['advanced']['text_parts'][$key] = array(
- '#type' => 'value',
- '#value' => in_array($key, (array) $settings['text_parts']) ? 1 : 0,
- );
- }
- }
- return $form;
-}
-
-function date_field_widget_settings_form_validate(&$form, &$form_state) {
- $widget = $form_state['values']['instance']['widget'];
- if (isset($widget['settings']['advanced']['label_position'])) {
- form_set_value($form['label_position'], $widget['settings']['advanced']['label_position'], $form_state);
- }
- // Munge the table display for text parts back into an array of text parts.
- if (is_array($widget['settings']['advanced']['text_parts'])) {
- form_set_value($form['text_parts'], array_keys(array_filter($widget['settings']['advanced']['text_parts'])), $form_state);
- }
- if (in_array($widget['type'], array('date_select', 'date_popup', 'date_select_repeat', 'date_popup_repeat')) && !date_range_valid($widget['settings']['year_range'])) {
- form_set_error('instance][widget][settings][year_range', t('Years back and forward must be in the format -9:+9.'));
- }
-}
-
-function _date_field_settings_form($field, $instance, $has_data) {
- $settings = $field['settings'];
-
- $form = array(
- '#element_validate' => array('date_field_settings_validate'),
- );
- // Make sure granularity is in the right format and has no empty values.
- if (!empty($settings['granularity']) && is_array($settings['granularity'])) {
- $granularity = array_filter($settings['granularity']);
- }
- $tz_handling = $settings['tz_handling'];
-
- // If adding a repeat, override the Content module's handling of the multiple values option.
- if (module_exists('date_repeat') && date_is_repeat_field($field, $instance)) {
- $form['repeat'] = array('#type' => 'hidden', '#value' => 1);
- }
- else {
- $form['repeat'] = array('#type' => 'hidden', '#value' => 0);
- }
-
- $description = t("Display a matching second date field as a 'To date' . If marked 'Optional' field will be presented but not required. If marked 'Required' the 'To date' will be required if the 'From date' is required or filled in.");
- $form['todate'] = array(
- '#type' => 'select',
- '#title' => t('To Date'),
- '#options' => array('' => t('Never'), 'optional' => t('Optional'), 'required' => t('Required')),
- '#description' => $description,
- '#default_value' => $settings['todate'],
- '#disabled' => $has_data,
- );
- $description = t('Set the date elements to be stored (at least a year is required).');
- $form['granularity'] = array(
- '#type' => 'select',
- '#title' => t('Granularity'),
- '#default_value' => $granularity,
- '#options' => date_granularity_names(),
- '#multiple' => TRUE,
- '#description' => $description,
- '#disabled' => $has_data,
- );
- $description = t('Select the timezone handling method to be used for this date field.');
- $form['tz_handling'] = array(
- '#type' => 'select',
- '#title' => t('Time zone handling'),
- '#default_value' => $tz_handling,
- '#options' => date_timezone_handling_options(),
- '#description' => $description,
- '#disabled' => $has_data,
- );
- // Force this value to hidden because we don't want to allow it to be changed right now,
- // but allow it to be a variable if needed.
- $form['timezone_db'] = array(
- '#type' => 'hidden',
- '#value' => date_get_timezone_db($tz_handling),
- );
-
-
- return $form;
-}
-
-/**
- * Custom field settings manipulation.
- */
-function date_field_settings_validate(&$form, &$form_state) {
- $field = $form_state['values']['field'];
- if ($field['settings']['tz_handling'] == 'none') {
- form_set_value($form['timezone_db'], '', $form_state);
- }
- else {
- form_set_value($form['timezone_db'], date_get_timezone_db($field['settings']['tz_handling']), $form_state);
- }
- if (!in_array('year', $field['settings']['granularity'])) {
- form_set_error('field][settings][granularity', t('Granularity must include a year.'));
- }
- if ($field['settings']['tz_handling'] != 'none' && !in_array('hour', array_filter($field['settings']['granularity']))) {
- form_set_error('field][settings][tz_handling', t('Dates without hours granularity must not use any timezone handling.'));
- }
-}
-
-/**
- * Timezone handling options
- *
- * the 'none' option will do no timezone conversions and will store and display dates exactly as entered
- * useful in locales or situations where timezone conversions are not working reliably,
- * for dates with no times, for historical dates where timezones are irrelevant,
- * or anytime conversion is unnecessary or undesirable
- */
-function date_timezone_handling_options() {
- return array(
- 'site' => t("Site's time zone"),
- 'date' => t("Date's time zone"),
- 'user' => t("User's time zone"),
- 'utc' => 'UTC',
- 'none' => t('No time zone conversion'),
- );
-}
-
-/**
- * Get an example date and make sure the difference between
- * month and day and 12 and 24 hours will be clear.
- */
-function date_example_date() {
- $now = date_now();
- if (date_format($now, 'm') == date_format($now, 'd')) {
- date_modify($now, '+1 day');
- }
- if (date_format($now, 'H') == date_format($now, 'h')) {
- date_modify($now, '+12 hours');
- }
- return $now;
-}
-
diff --git a/date/date_elements.inc b/date/date_elements.inc
deleted file mode 100644
index 1816221..0000000
--- a/date/date_elements.inc
+++ /dev/null
@@ -1,522 +0,0 @@
-<?php
-// $Id$
-/**
- * @file
- * Date forms and form themes and validation.
- *
- * All code used in form editing and processing is in this file,
- * included only during form editing.
- */
-
-/**
- * Private implementation of hook_widget().
- *
- * The widget builds out a complex date element in the following way:
- *
- * - A field is pulled out of the database which is comprised of one or
- * more collections of from/to dates.
- *
- * - The dates in this field are all converted from the UTC values stored
- * in the database back to the local time before passing their values
- * to FAPI.
- *
- * - If values are empty, the field settings rules are used to determine
- * if the default_values should be empty, now, the same, or use strtotime.
- *
- * - Each from/to combination is created using the date_combo element type
- * defined by the date module. If the timezone is date-specific, a
- * timezone selector is added to the first combo element.
- *
- * - If repeating dates are defined, a form to create a repeat rule is
- * added to the field element.
- *
- * - The date combo element creates two individual date elements, one each
- * for the from and to field, using the appropriate individual Date API
- * date elements, like selects, textfields, or popups.
- *
- * - In the individual element validation, the data supplied by the user is
- * used to update the individual date values.
- *
- * - In the combo date validation, the timezone is updated, if necessary,
- * then the user input date values are used with that timezone to create
- * date objects, which are used update combo date timezone and offset values.
- *
- * - In the field's submission processing, the new date values, which are in
- * the local timezone, are converted back to their UTC values and stored.
- *
- */
-function date_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base) {
- $element = $base;
-
- module_load_include('inc', 'date_api', 'date_api_elements');
- $timezone = date_get_timezone($field['settings']['tz_handling'], isset($items[0]['timezone']) ? $items[0]['timezone'] : date_default_timezone());
-
- // TODO see if there's a way to keep the timezone element from ever being
- // nested as array('timezone' => 'timezone' => value)). After struggling
- // with this a while, I can find no way to get it displayed in the form
- // correctly and get it to use the timezone element without ending up
- // with nesting.
- if (is_array($timezone)) {
- $timezone = $timezone['timezone'];
- }
-
- // Convert UTC dates to their local values in DATETIME format,
- // and adjust the default values as specified in the field settings.
-
- // It would seem to make sense to do this conversion when the data
- // is loaded instead of when the form is created, but the loaded
- // field data is cached and we can't cache dates that have been converted
- // to the timezone of an individual user, so we cache the UTC values
- // instead and do our conversion to local dates in the form and
- // in the formatters.
- $process = date_process_values($field, $instance);
- foreach ($process as $processed) {
- if (!isset($items[$delta][$processed])) {
- $items[$delta][$processed] = '';
- }
- $date = date_local_date($form, $form_state, $delta, $items[$delta], $timezone, $field, $instance, $processed);
- $items[$delta][$processed] = is_object($date) ? date_format($date, DATE_FORMAT_DATETIME) : '';
- }
-
- $element += array(
- '#type' => 'date_combo',
- '#theme_wrappers' => array('date_combo'),
- '#weight' => $delta,
- '#default_value' => isset($items[$delta]) ? $items[$delta] : '',
- '#date_timezone' => $timezone,
- '#element_validate' => array('date_combo_validate', 'date_widget_validate'),
- );
-
- if ($field['settings']['tz_handling'] == 'date') {
- $element['timezone'] = array(
- '#type' => 'date_timezone',
- '#delta' => $delta,
- '#default_value' => $timezone,
- '#weight' => $instance['widget']['weight'] + .2,
- );
- }
-
- // Add a date repeat form element, if needed.
- if (module_exists('date_repeat') && $field['settings']['repeat'] == 1) {
- module_load_include('inc', 'date', 'date_repeat');
- _date_repeat_widget($element, $field, $instance, $items, $delta);
- $element['rrule']['#weight'] = $instance['widget']['weight'] + .4;
- }
-
- return $element;
-}
-
-function date_combo_value_callback($element, $input = FALSE, &$form_state) {
- if (!$input) {
- return array();
- }
-}
-
-/**
- * Create local date object.
- *
- * Create a date object set to local time from the field and
- * widget settings and item values, using field settings to
- * determine what to do with empty values.
- */
-function date_local_date($form, $form_state, $delta, $item, $timezone, $field, $instance, $part = 'value') {
- if (!empty($form['nid']['#value'])) {
- $default_value = '';
- $default_value_code = '';
- }
- elseif ($part == 'value') {
- $default_value = $instance['settings']['default_value'];
- $default_value_code = $instance['settings']['default_value_code'];
- }
- else {
- $default_value = $instance['settings']['default_value2'];
- $default_value_code = $instance['settings']['default_value_code2'];
- }
- if (empty($item) || empty($item[$part])) {
- if (empty($default_value) || $default_value == 'blank' || $delta > 0) {
- return NULL;
- }
- elseif ($part == 'value2' && $default_value == 'same') {
- if ($instance['settings']['default_value'] == 'blank' || empty($item['value'])) {
- return NULL;
- }
- else {
- $date = new DateObject($item['value'], $timezone, DATE_FORMAT_DATETIME);
- $date->limitGranularity($field['settings']['granularity']);
- }
- }
- // Special case for 'now' when using dates with no timezone,
- // make sure 'now' isn't adjusted to UTC value of 'now' .
- elseif ($field['settings']['tz_handling'] == 'none') {
- $date = date_now();
- }
- else {
- $date = date_now($timezone);
- }
- }
- else {
- $value = $item[$part];
-
- // @TODO Figure out how to replace date_fuzzy_datetime() function.
- // Special case for ISO dates to create a valid date object for formatting.
- // Is this still needed?
- /*
- if ($field['type'] == DATE_ISO) {
- $value = date_fuzzy_datetime($value);
- }
- else {
- $db_timezone = date_get_timezone_db($field['settings']['tz_handling']);
- $value = date_convert($value, $field['type'], DATE_DATETIME, $db_timezone);
- }
- */
-
- $date = new DateObject($value, date_get_timezone_db($field['settings']['tz_handling']));
- $date->limitGranularity($field['settings']['granularity']);
- if (empty($date)) {
- return NULL;
- }
- date_timezone_set($date, timezone_open($timezone));
- }
- if (is_object($date) && empty($item[$part]) && $default_value == 'strtotime' && !empty($default_value_code)) {
- date_modify($date, $default_value_code);
- }
- return $date;
-}
-
-/**
- * Process an individual date element.
- */
-function date_combo_element_process($element, &$form_state, $form) {
- if (isset($element['#access']) && empty($element['#access'])) {
- return;
- }
-
- $field_name = $element['#field_name'];
- $delta = $element['#delta'];
- $bundle = $element['#bundle'];
- $entity_type = $element['#entity_type'];
- $field = field_widget_field($element, $form_state);
- $instance = field_widget_instance($element, $form_state);
-
- $columns = $element['#columns'];
- if (isset($columns['rrule'])) {
- unset($columns['rrule']);
- }
- $from_field = 'value';
- $to_field = 'value2';
- $tz_field = 'timezone';
- $offset_field = 'offset';
- $offset_field2 = 'offset2';
-
- if ($field['settings']['todate'] != 'required'
- && !empty($element['#default_value'][$to_field])
- && $element['#default_value'][$to_field] == $element['#default_value'][$from_field]) {
- unset($element['#default_value'][$to_field]);
- }
-
- $element[$from_field] = array(
- '#field' => $field,
- '#title' => t($instance['label']),
- '#weight' => $instance['widget']['weight'],
- '#required' => ($instance['required'] && $delta == 0) ? 1 : 0,
- '#default_value' => isset($element['#default_value'][$from_field]) ? $element['#default_value'][$from_field] : '',
- '#field' => $field,
- '#delta' => $delta,
- '#date_timezone' => $element['#date_timezone'],
- '#date_format' => date_limit_format(date_input_format($element, $field, $instance), $field['settings']['granularity']),
- '#date_text_parts' => (array) $instance['widget']['settings']['text_parts'],
- '#date_increment' => $instance['widget']['settings']['increment'],
- '#date_year_range' => $instance['widget']['settings']['year_range'],
- '#date_label_position' => $instance['widget']['settings']['label_position'],
- );
-
- $description = !empty($instance['description']) ? t($instance['description']) : '';
-
- // Give this element the right type, using a Date API
- // or a Date Popup element type.
-
- switch ($instance['widget']['type']) {
- case 'date_select':
- case 'date_select_repeat':
- // From/to selectors with lots of parts will look better if displayed
- // on two rows instead of in a single row.
- if (!empty($field['settings']['todate']) && count($field['settings']['granularity']) > 3) {
- $element[$from_field]['#attributes'] = array('class' => array('date-clear'));
- }
- $element[$from_field]['#type'] = 'date_select';
- $element[$from_field]['#theme_wrappers'] = array('date_select');
- break;
- case 'date_popup':
- case 'date_popup_repeat':
- $element[$from_field]['#type'] = 'date_popup';
- $element[$from_field]['#theme_wrappers'] = array('date_popup');
- break;
- default:
- $element[$from_field]['#type'] = 'date_text';
- $element[$from_field]['#theme_wrappers'] = array('date_text');
- break;
- }
-
- // If this field uses the 'To', add matching element
- // for the 'To' date, and adapt titles to make it clear which
- // is the 'From' and which is the 'To' .
-
- if (!empty($field['settings']['todate'])) {
- $element['#date_float'] = TRUE;
- $element[$from_field]['#title'] = t('From date');
- $element[$to_field] = $element[$from_field];
- $element[$to_field]['#title'] = t('To date');
- $element[$to_field]['#default_value'] = isset($element['#default_value'][$to_field]) ? $element['#default_value'][$to_field] : '';
- $element[$to_field]['#required'] = FALSE;
- $element[$to_field]['#weight'] += .1;
- if ($instance['widget']['type'] == 'date_select') {
- $description .= ' ' . t("Empty 'To date' values will use the 'From date' values.");
- }
- $element['#fieldset_description'] = $description;
- }
- else {
- $element[$from_field]['#description'] = $description;
- }
-
- // Create label for error messages that make sense in multiple values
- // and when the title field is left blank.
- if (!empty($field['cardinality']) && empty($field['settings']['repeat'])) {
- $element[$from_field]['#date_title'] = t('@field_name From date value #@delta', array('@field_name' => $instance['label'], '@delta' => $delta + 1));
- if (!empty($field['settings']['todate'])) {
- $element[$to_field]['#date_title'] = t('@field_name To date value #@delta', array('@field_name' => $instance['label'], '@delta' => $delta + 1));
- }
- }
- elseif (!empty($field['settings']['todate'])) {
- $element[$from_field]['#date_title'] = t('@field_name From date', array('@field_name' => $instance['label']));
- $element[$to_field]['#date_title'] = t('@field_name To date', array('@field_name' => $instance['label']));
- }
- else {
- $element[$from_field]['#date_title'] = $instance['label'];
- }
-
- // Make sure field info will be available to the validator which
- // does not get the values in $form.
- $form_state['#field_info'][$field['field_name']] = $field;
-
- return $element;
-}
-
-function date_element_empty($element, &$form_state) {
- $item = array();
- $item['value'] = NULL;
- $item['value2'] = NULL;
- $item['timezone'] = NULL;
- $item['offset'] = NULL;
- $item['offset2'] = NULL;
- $item['rrule'] = NULL;
- form_set_value($element, $item, $form_state);
- return $item;
-}
-
-/**
- * Validate and update a combo element.
- * Don't try this if there were errors before reaching this point.
- */
-function date_combo_validate($element, &$form_state) {
-
- $form_values = $form_state['values'];
- $field_name = $element['#field_name'];
- $delta = $element['#delta'];
- $langcode = $element['#language'];
-
- // If the whole field is empty and that's OK, stop now.
- if (empty($form_state['input'][$field_name]) && !$element['#required']) {
- return;
- }
-
- // Repeating dates have a different form structure, so get the
- // right item values.
- $item = isset($form_values[$field_name][$langcode]['rrule']) ? $form_values[$field_name][$langcode] : $form_values[$field_name][$langcode][$delta];
- $posted = isset($form_values[$field_name][$langcode]['rrule']) ? $form_state['input'][$field_name][$langcode] : $form_state['input'][$field_name][$langcode][$delta];
-
- $field = field_widget_field($element, $form_state);
- $instance = field_widget_instance($element, $form_state);
-
- $from_field = 'value';
- $to_field = 'value2';
- $tz_field = 'timezone';
- $offset_field = 'offset';
- $offset_field2 = 'offset2';
-
- // Unfortunately, due to the fact that much of the processing is already
- // done by the time we get here, it is not possible highlight the field
- // with an error, we just try to explain which element is creating the
- // problem in the error message.
- $parent = $element['#parents'];
- $error_field = array_pop($parent);
- $errors = array();
-
- // Check for empty 'From date', which could either be an empty
- // value or an array of empty values, depending on the widget.
- $empty = TRUE;
- if (!empty($item[$from_field])) {
- if (!is_array($item[$from_field])) {
- $empty = FALSE;
- }
- else {
- foreach ($item[$from_field] as $key => $value) {
- if (!empty($value)) {
- $empty = FALSE;
- break;
- }
- }
- }
- }
-
- // A 'To' date without a 'From' date is a validation error.
- if ($empty && !empty($item[$to_field])) {
- if (!is_array($item[$to_field])) {
- form_set_error($error_field, t("A 'From date' date is required if a 'To date' is supplied for field %field #%delta.", array('%delta' => $field['cardinality'] ? intval($delta + 1) : '', '%field' => t($instance['label']))));
- $empty = FALSE;
- }
- else {
- foreach ($item[$to_field] as $key => $value) {
- if (!empty($value)) {
- form_set_error($error_field, t("A 'From date' date is required if a 'To date' is supplied for field %field #%delta.", array('%delta' => $field['cardinality'] ? intval($delta + 1) : '', '%field' => t($instance['label']))));
- $empty = FALSE;
- break;
- }
- }
- }
- }
-
- if ($empty) {
- $item = date_element_empty($element, $form_state);
- if (!$element['#required']) {
- return;
- }
- }
- // Don't look for further errors if errors are already flagged
- // because otherwise we'll show errors on the nested elements
- // more than once.
- elseif (!form_get_errors()) {
-
- // Check todate input for blank values and substitute in fromdate
- // values where needed, then re-compute the todate with those values.
- if ($field['settings']['todate']) {
- $merged_date = array();
- $to_date_empty = TRUE;
- foreach ($posted[$to_field] as $part => $value) {
- $to_date_empty = $to_date_empty && empty($value) && !is_numeric($value);
- $merged_date[$part] = empty($value) && !is_numeric($value) ? $posted[$from_field][$part] : $value;
- if ($part == 'ampm' && $merged_date['ampm'] == 'pm' && $merged_date['hour'] < 12) {
- $merged_date['hour'] += 12;
- }
- elseif ($part == 'ampm' && $merged_date['ampm'] == 'am' && $merged_date['hour'] == 12) {
- $merged_date['hour'] -= 12;
- }
- }
-
- // If all date values were empty and a date is required, throw
- // an error on the first element. We don't want to create
- // duplicate messages on every date part, so the error will
- // only go on the first.
- if ($to_date_empty && $field['settings']['todate'] == 'required') {
- $errors[] = t('Some value must be entered in the To date.');
- }
-
- $element[$to_field]['#value'] = $merged_date;
-
- // Call the right function to turn this altered user input into
- // a new value for the todate.
- $item[$to_field] = $merged_date;
- }
- else {
- $item[$to_field] = $item[$from_field];
- }
-
- $from_date = date_input_date($field, $instance, $element[$from_field], $posted[$from_field]);
-
- if (!empty($field['settings']['todate'])) {
- $to_date = date_input_date($field, $instance, $element[$to_field], $merged_date);
- }
- else {
- $to_date = $from_date;
- }
-
-
- // Neither the from date nor the to date should be empty at this point
- // unless they held values that couldn't be evaluated.
- if (!$instance['required'] && (empty($from_date) || empty($to_date))) {
- $item = date_element_empty($element, $form_state);
- $errors[] = t('The dates are invalid.');
- }
- elseif (!empty($field['settings']['todate']) && $from_date > $to_date) {
- form_set_value($element[$to_field], $to_date, $form_state);
- $errors[] = t('The To date must be greater than the From date.');
- }
- else {
- // Convert input dates back to their UTC values and re-format to ISO
- // or UNIX instead of the DATETIME format used in element processing.
- $timezone = !empty($item[$tz_field]) ? $item[$tz_field] : $element['#date_timezone'];
- $timezone_db = date_get_timezone_db($field['settings']['tz_handling']);
- $item[$tz_field] = $timezone;
-
- $item[$offset_field] = date_offset_get($from_date);
-
- $test_from = date_format($from_date, 'r');
- $test_to = date_format($to_date, 'r');
-
- $item[$offset_field2] = date_offset_get($to_date);
- date_timezone_set($from_date, timezone_open($timezone_db));
- date_timezone_set($to_date, timezone_open($timezone_db));
- $item[$from_field] = date_format($from_date, date_type_format($field['type']));
- $item[$to_field] = date_format($to_date, date_type_format($field['type']));
- if (isset($form_values[$field_name]['rrule'])) {
- $item['rrule'] = $form_values[$field['field_name']]['rrule'];
- }
-
- // Test a roundtrip back to the original timezone to catch
- // invalid dates, like 2AM on the day that spring daylight savings
- // time begins in the US.
- date_timezone_set($from_date, timezone_open($timezone));
- date_timezone_set($to_date, timezone_open($timezone));
- if ($test_from != date_format($from_date, 'r')) {
- $errors[] = t('The From date is invalid.');
- }
- if ($test_to != date_format($to_date, 'r')) {
- $errors[] = t('The To date is invalid.');
- }
- if (empty($errors)) {
- form_set_value($element, $item, $form_state);
- }
- }
- }
- if (!empty($errors)) {
- if ($field['cardinality']) {
- form_set_error($error_field, t('There are errors in @field_name value #@delta:', array('@field_name' => $instance['label'], '@delta' => $delta + 1)) . theme('item_list', array('items' => $errors)));
- }
- else {
- form_set_error($error_field, t('There are errors in @field_name:', array('@field_name' => $instance['label'])) . theme('item_list', array('items' => $errors)));
- }
- }
-}
-
-/**
- * Handle widget processing.
- */
-function date_widget_validate($element, &$form_state) {
- $field = field_widget_field($element, $form_state);
- if (module_exists('date_repeat') && $field['settings']['repeat']) {
- module_load_include('inc', 'date', 'date_repeat');
- return _date_repeat_widget_validate($element, $form_state);
- }
-}
-
-/**
- * Determine the input format for this element.
- */
-function date_input_format($element, $field, $instance) {
- if (!empty($instance['widget']['settings']['input_format_custom'])) {
- return $instance['widget']['settings']['input_format_custom'];
- }
- elseif (!empty($instance['widget']['settings']['input_format']) && $instance['widget']['settings']['input_format'] != 'site-wide') {
- return $instance['widget']['settings']['input_format'];
- }
- return variable_get('date_format_short', 'm/d/Y - H:i');
-} \ No newline at end of file
diff --git a/date/date_handler_field_multiple.inc b/date/date_handler_field_multiple.inc
deleted file mode 100644
index 08e4c03..0000000
--- a/date/date_handler_field_multiple.inc
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-// $Id$
-
-/**
- * @file
- * An extended subclass for field handling that adds multiple field grouping.
- *
- * Fields that want multiple value grouping options in addition to basic
- * field and formatter handling can extend this class.
- */
-class date_handler_field_multiple extends views_handler_field_field {
-
- function option_definition() {
- $options = parent::option_definition();
- $options['repeat'] = array(
- 'contains' => array(
- 'show_repeat_rule' => array('default' => ''),
- )
- );
- $options['multiple'] = array(
- 'contains' => array(
- 'multiple_to' => array('default' => ''),
- )
- );
- $options['fromto'] = array(
- 'contains' => array(
- 'fromto' => array('default' => 'both'),
- )
- );
-
- return $options;
- }
-
- /**
- * Provide 'group multiple values' option,
- * adapted to the needs of the Date module.
- */
- function options_form(&$form, &$form_state) {
- parent::options_form($form, $form_state);
- unset($form['multiple']);
-
- $field_name = $this->content_field_name;
- $field = field_info_field($field_name);
- $options = $this->options;
-
- //$form += date_formatter_settings($form_state, $field, $options, TRUE);
- $form['multiple']['#weight'] = 1;
- $form['multiple']['group'] = array(
- '#title' => t('Group multiple values'),
- '#type' => 'checkbox',
- '#default_value' => $options['multiple']['group'],
- '#description' => t('If unchecked, each item in the field will create a new row, which may appear to cause duplicates. This setting is not compatible with click-sorting in table displays.'),
- );
- }
-
- function pre_render($values) {
-
- // If there are no values to render (displaying a summary, or query returned no results),
- // or if this is not a grouped field, do nothing specific.
- if (isset($this->view->build_info['summary']) || empty($values) || !$this->defer_query) {
- return parent::pre_render($values);
- }
-
- $field_name = $this->content_field_name;
- $field = field_info_field($field_name);
- $db_info = date_api_database_info($field);
- $options = $this->options;
- $this->view->date_info->date_handler_fields = date_handler_fields($this->view);
-
- // Build the list of vids to retrieve.
- // TODO: try fetching from cache_content first ??
- $vids = array();
- $this->field_values = array();
- foreach ($values as $result) {
- if (isset($result->{$this->field_alias})) {
- $vids[] = $result->{$this->field_alias};
- }
- }
-
- // List columns to retrieve.
- $alias = content_views_tablename($field);
- // Prefix aliases with '_' to avoid clashing with field columns names.
- $query_columns = array(
- 'node.vid AS _vid',
- "$alias.delta as _delta",
- // nid is needed to generate the links for 'link to node' option.
- 'node.nid AS _nid',
- );
- // The actual field columns.
- foreach ($db_info['columns'] as $column => $attributes) {
- $query_columns[] = "$alias.$attributes[column] AS $column";
- $query_fields[] = "$alias.$attributes[column]";
- }
- // Retrieve all values, we limit them in date_prepare_node(),
- // a function that is used both by the handler and by the
- // node theme to take advantage of formatter settings.
- $where = array('1');
- $query = 'SELECT ' . implode(', ', $query_columns) .
- ' FROM {' . $db_info['table'] . "} $alias" .
- " LEFT JOIN {node} node ON node.vid = $alias.vid" .
- " WHERE node.vid IN (" . implode(',', $vids) . ') AND ' . implode(' OR ', $where) .
- " ORDER BY node.nid ASC, $alias.delta ASC";
- $result = db_query($query);
-
- while ($item = db_fetch_array($result)) {
- // Clean up the $item from vid and delta. We keep nid for now.
- $vid = $item['_vid'];
- unset($item['_vid']);
- $delta = !empty($item['_delta']) ? $item['_delta'] : 0;
- $item['#delta'] = $item['_delta'];
- unset($item['_delta']);
- $this->field_values[$vid][$delta] = $item;
- }
- }
-
- function render($values) {
-
- // By this time $values is a pseudo node that will be passed
- // to the theme. Add view information to it.
- $values->date_info = !empty($this->view->date_info) ? $this->view->date_info : new stdClass();
- $values->date_info->date_handler_fields = date_handler_fields($this->view);
-
- // Add the formatter settings to the pseudo node.
- $values->date_info->formatter_settings = $this->options;
- $values->date_info->aliases = $this->aliases;
-
- // If this is not a grouped field, use content_handler_field::render().
- if (!$this->defer_query) {
- return parent::render($values);
- }
-
- $field_name = $this->content_field_name;
- $field = field_info_field($field_name);
- $options = $this->options;
-
- $vid = $values->{$this->field_alias};
- if (isset($this->field_values[$vid])) {
- // Build a pseudo-node from the retrieved values.
- $node = clone($values);
- // content_format and formatters will need a 'type' .
- $node->type = $values->{$this->aliases['type']};
- $node->nid = $values->{$this->aliases['nid']};
- $node->vid = $values->{$this->aliases['vid']};
- $items = $this->field_values[$vid];
- $node->$field_name = $items;
-
- // Some formatters need to behave differently depending on the build_mode
- // (for instance: preview), so we provide one.
- // TODO This has changed in D7.
- $node->build_mode = NODE_BUILD_NORMAL;
-
- // Render items.
- $formatter_name = $options['format'];
- if ($items && ($formatter = _content_get_formatter($formatter_name, $field['type']))) {
- $rendered = array();
-
- // Multiple values formatter.
- $output = content_format($field, $items, $formatter_name, $values);
- if (!empty($output)) {
- $rendered[] = $this->render_link($output, (object) array('nid' => $this->aliases['nid']));
- }
- }
-
- if (count($rendered) > 1) {
- // TODO: could we use generic field display ?
- return theme('field_view_multiple_field', $rendered, $field, $values);
- }
- elseif ($rendered) {
- return $rendered[0];
- }
- }
-
- return '';
-
- }
-
-} \ No newline at end of file
diff --git a/date/date_repeat.inc b/date/date_repeat.inc
deleted file mode 100644
index 5a526b1..0000000
--- a/date/date_repeat.inc
+++ /dev/null
@@ -1,204 +0,0 @@
-<?php
-// $Id$
-/**
- * @file
- * Implementation of Date Repeat API calculations for the CCK Date field.
- *
- * Consolidated here so the code isn't parsed if repeats aren't being used
- * or processed, and to make it easier to maintain.
- *
- * The current implementation adds a repeat form to the date field so the user
- * can select the repeat rules. That selection is built into an RRULE
- * which is stored in the zero position of the field values. During widget
- * validation, the rule is parsed to see what dates it will create,
- * and multiple values are added to the field, one for each repeat date.
- * That update only happens when the rule, the from date, or the to date
- * change, no need to waste processing cycles for other changes to the node
- * values.
- *
- * Lots of possible TODOs, the biggest one is figuring out the best
- * way to handle dates with no UNTIL date since we can't add an infinite
- * number of values to the field. For now, we require the UNTIL date.
- */
-
-/**
- * Widget processing for date repeat form element.
- *
- * Create the RRULE as a top-level element rather than a delta level
- * element, we'll compute the repeat sequence in the widget validation
- * to create the element delta values.
- */
-function _date_repeat_widget(&$element, $field, $instance, $items, $delta) {
- $element['rrule'] = array(
- '#type' => 'date_repeat_rrule',
- '#theme_wrappers' => array('date_repeat_rrule'),
- '#default_value' => isset($items[0]['rrule']) ? $items[0]['rrule'] : '',
- '#date_timezone' => $element['#date_timezone'],
- '#date_format' => date_limit_format(date_input_format($element, $field, $instance), $field['settings']['granularity']),
- '#date_text_parts' => (array) $instance['widget']['settings']['text_parts'],
- '#date_increment' => $instance['widget']['settings']['increment'],
- '#date_year_range' => $instance['widget']['settings']['year_range'],
- '#date_label_position' => $instance['widget']['settings']['label_position'],
- '#prev_value' => isset($items[0]['value']) ? $items[0]['value'] : '',
- '#prev_value2' => isset($items[0]['value2']) ? $items[0]['value2'] : '',
- '#prev_rrule' => isset($items[0]['rrule']) ? $items[0]['rrule'] : '',
- '#date_repeat_widget' => str_replace('_repeat', '', $instance['widget']['type']),
- '#date_repeat_collapsed' => $instance['settings']['repeat_collapsed'],
- );
- return $element;
-}
-/**
- * Validation for date repeat form element.
- *
- * Create multiple values from the RRULE results.
- * Lots more work needed here.
- */
-function _date_repeat_widget_validate($element, &$form_state) {
- module_load_include('inc', 'date_repeat', 'date_repeat_form');
- $field_name = $element['#field_name'];
- $field = field_widget_field($element, $form_state);
- $instance = field_widget_instance($element, $form_state);
-
- $form_values = $form_state['values'];
- $item = $form_values;
- $input = $form_state['input'];
- foreach ($element['#parents'] as $key) {
- $item = $item[$key];
- $input = $input[$key];
- }
- $rrule_values = date_repeat_merge($input['rrule'], $element['rrule']);
-
- // If no start date was set, clean up the form and return.
- // If no repeats are set, clean up the form and return.
- if (empty($item['value']) || $rrule_values['FREQ'] == 'NONE') {
- $item['rrule'] = NULL;
- form_set_value($element, array($item), $form_state);
- return;
- }
-
- // Require the UNTIL date for now.
- // The RRULE has already been created by this point, so go back
- // to the posted values to see if this was filled out.
- $error_field = implode('][', $element['#parents']) . '][rrule][UNTIL][datetime][date';
- if (empty($rrule_values['UNTIL']['datetime'])) {
- form_set_error($error_field, t('The UNTIL value is required for repeating dates.'));
- }
- if (form_get_errors()) {
- return;
- }
-
- // If the rule, the start date, or the end date have changed, re-calculate
- // the repeating dates, wipe out the previous values, and populate the
- // field with the new values.
-
- // TODO
- // Is it right to not do anything unless there are changes? Will that
- // confuse anyone? Commenting that out for now...
- $rrule = $item['rrule'];
-
- if (!empty($rrule)
- //&& ($rrule != $element['rrule']['#prev_rrule']
- //|| $item['value'] != $element['rrule']['#prev_value']
- //|| $item['value2'] != $element['rrule']['#prev_value2'])
- ) {
-
- // Avoid undefined index problems on dates that don't have all parts.
- $possible_items = array('value', 'value2', 'timezone', 'offset', 'offset2');
- foreach ($possible_items as $key) {
- if (empty($item[$key])) {
- $item[$key] = '';
- }
- }
- $value = date_repeat_build_dates($rrule, $rrule_values, $field, $item);
- form_set_value($element, $value, $form_state);
- }
- else {
- // If no changes are needed, move the RRULE back to the zero value
- // item of the field.
- form_set_value(array('#parents' => array($field_name, $element['#language'], 0, 'rrule')), $rrule, $form_state);
- form_set_value($element, NULL, $form_state);
- }
-}
-
-/**
- * Helper function to build repeating dates from a $node_field.
- *
- * Pass in either the RRULE or the $form_values array for the RRULE,
- * whichever is missing will be created when needed.
- */
-function date_repeat_build_dates($rrule = NULL, $rrule_values = NULL, $field, $item) {
- include_once(DRUPAL_ROOT . '/' . drupal_get_path('module', 'date_api') . '/date_api_ical.inc');
- $field_name = $field['field_name'];
-
- if (empty($rrule)) {
- $rrule = date_api_ical_build_rrule($rrule_values);
- }
- elseif (empty($rrule_values)) {
- $rrule_values = date_ical_parse($rrule);
- }
-
- // By the time we get here, the start and end dates have been
- // adjusted back to UTC, but we want localtime dates to do
- // things like '+1 Tuesday', so adjust back to localtime.
- $timezone = date_get_timezone($field['settings']['tz_handling'], $item['timezone']);
- $timezone_db = date_get_timezone_db($field['settings']['tz_handling']);
- $start = new DateObject($item['value'], $timezone_db, date_type_format($field['type']));
- $start->limitGranularity($field['settings']['granularity']);
- if ($timezone != $timezone_db) {
- date_timezone_set($start, timezone_open($timezone));
- }
- if (!empty($item['value2']) && $item['value2'] != $item['value']) {
- $end = new DateObject($item['value2'], date_get_timezone_db($field['settings']['tz_handling']), date_type_format($field['type']));
- $end->limitGranularity($field['settings']['granularity']);
- date_timezone_set($end, timezone_open($timezone));
- }
- else {
- $end = $start;
- }
- $duration = $start->difference($end);
- $start_datetime = date_format($start, DATE_FORMAT_DATETIME);
-
- if (!empty($rrule_values['UNTIL']['datetime'])) {
- $end = date_ical_date($rrule_values['UNTIL'], $timezone);
- }
- $end_datetime = date_format($end, DATE_FORMAT_DATETIME);
-
- // Split the RRULE into RRULE, EXDATE, and RDATE parts.
- $parts = date_repeat_split_rrule($rrule);
- $parsed_exceptions = (array) $parts[1];
- $exceptions = array();
- foreach ($parsed_exceptions as $exception) {
- $date = date_ical_date($exception);
- $exceptions[] = date_format($date, 'Y-m-d');
- }
-
- $parsed_rdates = (array) $parts[2];
- $additions = array();
- foreach ($parsed_rdates as $rdate) {
- $additions[] = date_ical_date($rdate);
- }
-
- $dates = date_repeat_calc($rrule, $start_datetime, $end_datetime, $exceptions, $timezone, $additions);
-
-
- $value = array();
- foreach ($dates as $delta => $date) {
- // date_repeat_calc always returns DATE_DATETIME dates, which is
- // not necessarily $field['type'] dates.
- // Convert returned dates back to db timezone before storing.
- $date_start = new DateObject($date, $timezone, DATE_FORMAT_DATETIME);
- $date_start->limitGranularity($field['settings']['granularity']);
- date_timezone_set($date_start, timezone_open($timezone_db));
- $date_end = clone($date_start);
- date_modify($date_end, '+' . $duration . ' seconds');
- $value[$delta] = array(
- 'value' => date_format($date_start, date_type_format($field['type'])),
- 'value2' => date_format($date_end, date_type_format($field['type'])),
- 'offset' => date_offset_get($date_start),
- 'offset2' => date_offset_get($date_end),
- 'timezone' => $timezone,
- 'rrule' => $rrule,
- );
- }
- return $value;
-} \ No newline at end of file
diff --git a/date/date_token.inc b/date/date_token.inc
deleted file mode 100644
index c51b3cf..0000000
--- a/date/date_token.inc
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-// $Id$
-/**
- * @file
- * Token module integration.
- */
-
-function date_token_list($type = 'all') {
- if ($type == 'field' || $type == 'all') {
- $tokens = array();
-
- $tokens['date']['value'] = t("The raw date value.");
- $tokens['date']['view'] = t("The formatted date.");
- $tokens['date']['timestamp'] = t("The raw date timestamp.");
- $tokens['date']['yyyy'] = t("Date year (four digit)");
- $tokens['date']['yy'] = t("Date year (two digit)");
- $tokens['date']['month'] = t("Date month (full word)");
- $tokens['date']['mon'] = t("Date month (abbreviated)");
- $tokens['date']['mm'] = t("Date month (two digit, zero padded)");
- $tokens['date']['m'] = t("Date month (one or two digit)");
- $tokens['date']['ww'] = t("Date week (two digit)");
- $tokens['date']['date'] = t("Date date (YYYY-MM-DD)");
- $tokens['date']['datetime'] = t("Date datetime (YYYY-MM-DDTHH:MM:SS)");
- $tokens['date']['day'] = t("Date day (full word)");
- $tokens['date']['ddd'] = t("Date day (abbreviation)");
- $tokens['date']['dd'] = t("Date day (two digit, zero-padded)");
- $tokens['date']['d'] = t("Date day (one or two digit)");
- $tokens['date']['dS'] = t("Date day (one or two digit) with ordinal suffix (st, nd, rd or th)");
- $tokens['date']['time'] = t("Time H:i");
-
- $tokens['date']['to-????'] = t("If the field has a to-date defined, the same tokens exist in the form: [to-????], where ???? is the normal token.");
-
- return $tokens;
- }
-}
-
-function date_token_values($type, $object = NULL) {
- if ($type == 'field') {
- $item = $object[0];
- $item['value'] = trim($item['value']);
- $item_type = isset($item['date_type']) ? $item['date_type'] : (is_numeric($item['value']) ? DATE_UNIX : DATE_ISO);
- $timezone = !empty($item['timezone']) ? $item['timezone'] : date_default_timezone();
- $timezone_db = !empty($item['timezone_db']) ? $item['timezone_db'] : 'UTC';
- $date = new DateObject($item['value'], $timezone_db, date_type_format($item_type));
- if (!empty($date) && $timezone_db != $timezone) {
- date_timezone_set($date, timezone_open($timezone));
- }
-
- $tokens['value'] = $item['value'];
- $tokens['view'] = $item['view'];
- $tokens['timestamp'] = !empty($date) ? date_format_date($date, 'custom', 'U') : '';
- $tokens['yyyy'] = !empty($date) ? date_format_date($date, 'custom', 'Y') : '';
- $tokens['yy'] = !empty($date) ? date_format_date($date, 'custom', 'y') : '';
- $tokens['month'] = !empty($date) ? date_format_date($date, 'custom', 'F') : '';
- $tokens['mon'] = !empty($date) ? date_format_date($date, 'custom', 'M') : '';
- $tokens['mm'] = !empty($date) ? date_format_date($date, 'custom', 'm') : '';
- $tokens['m'] = !empty($date) ? date_format_date($date, 'custom', 'n') : '';
- $tokens['ww'] = !empty($date) ? date_format_date($date, 'custom', 'W') : '';
- $tokens['date'] = !empty($date) ? date_format_date($date, 'custom', DATE_FORMAT_DATE) : '';
- $tokens['datetime'] = !empty($date) ? date_format_date($date, 'custom', DATE_FORMAT_ISO) : '';
- $tokens['day'] = !empty($date) ? date_format_date($date, 'custom', 'l') : '';
- $tokens['ddd'] = !empty($date) ? date_format_date($date, 'custom', 'D') : '';
- $tokens['dd'] = !empty($date) ? date_format_date($date, 'custom', 'd') : '';
- $tokens['d'] = !empty($date) ? date_format_date($date, 'custom', 'j') : '';
- $tokens['dS'] = !empty($date) ? date_format_date($date, 'custom', 'jS') : '';
- $tokens['time'] = !empty($date) ? date_format_date($date, 'custom', 'H:i') : '';
-
- if (!empty($item['value2'])) {
-
- $item['value2'] = trim($item['value2']);
- $date = new DateObject($item['value2'], $timezone_db, date_type_format($item_type));
- if ($timezone_db != $timezone) {
- date_timezone_set($date, timezone_open($timezone));
- }
-
- $tokens['to-value'] = $item['value2'];
- $tokens['to-view'] = $item['view'];
- $tokens['to-timestamp'] = !empty($date) ? date_format_date($date, 'custom', 'U') : '';
- $tokens['to-yyyy'] = !empty($date) ? date_format_date($date, 'custom', 'Y') : '';
- $tokens['to-yy'] = !empty($date) ? date_format_date($date, 'custom', 'y') : '';
- $tokens['to-month'] = !empty($date) ? date_format_date($date, 'custom', 'F') : '';
- $tokens['to-mon'] = !empty($date) ? date_format_date($date, 'custom', 'M') : '';
- $tokens['to-mm'] = !empty($date) ? date_format_date($date, 'custom', 'm') : '';
- $tokens['to-m'] = !empty($date) ? date_format_date($date, 'custom', 'n') : '';
- $tokens['to-ww'] = !empty($date) ? date_format_date($date, 'custom', 'W') : '';
- $tokens['to-date'] = !empty($date) ? date_format_date($date, 'custom', DATE_FORMAT_DATE) : '';
- $tokens['to-datetime'] = !empty($date) ? date_format_date($date, 'custom', DATE_FORMAT_ISO) : '';
- $tokens['to-day'] = !empty($date) ? date_format_date($date, 'custom', 'l') : '';
- $tokens['to-ddd'] = !empty($date) ? date_format_date($date, 'custom', 'D') : '';
- $tokens['to-dd'] = !empty($date) ? date_format_date($date, 'custom', 'd') : '';
- $tokens['to-d'] = !empty($date) ? date_format_date($date, 'custom', 'j') : '';
- $tokens['to-dS'] = !empty($date) ? date_format_date($date, 'custom', 'jS') : '';
- $tokens['to-time'] = !empty($date) ? date_format_date($date, 'custom', 'H:i') : '';
-
- }
- return $tokens;
- }
-}
diff --git a/date/translations/date.de.po b/date/translations/date.de.po
deleted file mode 100644
index 3a8e6b3..0000000
--- a/date/translations/date.de.po
+++ /dev/null
@@ -1,569 +0,0 @@
-# $Id$
-#
-# LANGUAGE translation of Drupal (general)
-# Copyright YEAR NAME <EMAIL@ADDRESS>
-# Generated from files:
-# date_admin.inc,v 1.40.2.3.2.13 2008/08/24 06:39:38 karens
-# date.module,v 1.61.2.4.2.19 2008/09/04 14:55:31 karens
-# date_elements.inc,v 1.46.2.2.2.22 2008/08/30 13:57:39 karens
-# date_repeat.inc,v 1.22.2.1.2.10 2008/08/19 13:39:23 karens
-# date_token.inc,v 1.2.2.1.2.2 2008/09/01 12:05:12 karens
-# date.theme,v 1.6.4.20 2008/09/03 14:20:26 karens
-# date.install,v 1.37.2.5.2.13 2008/09/06 10:29:04 karens
-# date.info,v 1.3 2008/02/18 19:32:28 karens
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"POT-Creation-Date: 2009-03-07 19:12+0100\n"
-"PO-Revision-Date: 2009-03-07 19:38+0100\n"
-"Last-Translator: Alexander Haß\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-"X-Poedit-Language: German\n"
-"X-Poedit-Country: GERMANY\n"
-
-#: date/date_admin.inc:25
-msgid "The Strtotime default value is invalid."
-msgstr "Der standardmäßige Wert für „Strtotime“ ist ungültig."
-
-#: date/date_admin.inc:31
-msgid "The Strtotime default value for the To Date is invalid."
-msgstr "Der standardmäßige Wert für das „Bis“-Datum ist ungültig."
-
-#: date/date_admin.inc:35
-msgid "Years back and forward must be in the format -9:+9."
-msgstr "Die Jahre rückwärts und vorwärts müssen dem Format -9:+9 entsprechen."
-
-#: date/date_admin.inc:70
-msgid "Default value"
-msgstr "Standardwert"
-
-#: date/date_admin.inc:72;78
-msgid "Blank"
-msgstr "Leer"
-
-#: date/date_admin.inc:72;78
-msgid "Relative"
-msgstr "Relativ"
-
-#: date/date_admin.inc:73;79
-#, fuzzy
-msgid "A default value to use for this field. If you select 'Relative', add details below."
-msgstr "Der standardmäßig zu verwendende Wert für dieses Feld. If you select 'Relative', add details below."
-
-#: date/date_admin.inc:76
-msgid "Default value for To date"
-msgstr "Standardwert für „Bis“-Datum"
-
-#: date/date_admin.inc:78
-msgid "Same as From date"
-msgstr "Dasselbe wie „Von“-Datum"
-
-#: date/date_admin.inc:83
-msgid "Customize Default Value"
-msgstr "Standardmäßigen Wert anpassen"
-
-#: date/date_admin.inc:84
-msgid "The custom value for a Relative default should be something that describes a time by reference to the current day using strtotime, like '+90 days' (90 days from the day the field is created) or '+1 Saturday' (the next Saturday). See !strtotime for more details."
-msgstr ""
-
-#: date/date_admin.inc:84
-msgid "strtotime"
-msgstr "strtotime"
-
-#: date/date_admin.inc:89
-msgid "Custom value for From date"
-msgstr "Benutzerdefinierter Wert für „Von“-Datum"
-
-#: date/date_admin.inc:94
-msgid "Custom value for To date"
-msgstr "Benutzerdefinierter Wert für das „Bis“-Datum"
-
-#: date/date_admin.inc:114
-msgid "Input format"
-msgstr "Eingabeformat"
-
-#: date/date_admin.inc:117
-msgid "Set the order and format for the date parts in the input form. The format will be adapted to remove values not in the granularity for this field."
-msgstr ""
-
-#: date/date_admin.inc:123
-msgid "Custom input format"
-msgstr "Benutzerdefiniertes Eingabeformat"
-
-#: date/date_admin.inc:125
-msgid "The custom format, if provided, will override the input format selected above. The custom format, if provided, will override the selected display or input options. Define a php date format string like 'm-d-Y H:i' (see <a href=\"@link\">http://php.net/date</a> for more details)."
-msgstr ""
-
-#: date/date_admin.inc:137
-msgid "Years back and forward"
-msgstr "Jahre rückwärts und vorwärts"
-
-#: date/date_admin.inc:141
-msgid "Number of years to go back and forward in the year selection list, default is -3:+3."
-msgstr ""
-
-#: date/date_admin.inc:144
-#, fuzzy
-msgid "Time increment"
-msgstr "Zeiterhöhung"
-
-# Erhöhung oder Schrittweite
-#: date/date_admin.inc:147
-#, fuzzy
-msgid "Increment the minute and second fields by this amount."
-msgstr "Die Minuten- und Sekundenfelder um diesen Betrag erhöhen."
-
-#: date/date_admin.inc:172
-msgid "Customize Date Parts"
-msgstr "Datumsbestandteile anpassen"
-
-#: date/date_admin.inc:178
-msgid "Above"
-msgstr "Oberhalb"
-
-#: date/date_admin.inc:178
-msgid "Within"
-msgstr "Innerhalb"
-
-#: date/date_admin.inc:178
-msgid "None"
-msgstr "Keine"
-
-#: date/date_admin.inc:180
-msgid "Position of date part labels"
-msgstr "Position der Beschriftungen von Datumsbestandteilen"
-
-#: date/date_admin.inc:181
-msgid "The location of date part labels, like 'Year', 'Month', or 'Day'. 'Above' will display them as titles above each date part. 'Within' will insert the label as the first option in the select list and in blank textfields. 'None' will not label any of the date parts. The exact text in the label is controlled by themes like 'date_part_label_year' and 'date_part_label_month'."
-msgstr ""
-
-#: date/date_admin.inc:224
-msgid "Input Type"
-msgstr "Eingabetyp"
-
-#: date/date_admin.inc:224
-msgid "Select list"
-msgstr "Auswahlliste"
-
-#: date/date_admin.inc:224
-msgid "Text field"
-msgstr "Textfeld"
-
-#: date/date_admin.inc:239
-msgid "Granularity must include a year."
-msgstr "Die Granularität muss ein Jahr enthalten."
-
-#: date/date_admin.inc:242
-msgid "Dates without hours granularity must not use any timezone handling."
-msgstr ""
-
-#: date/date_admin.inc:347
-msgid "Display a matching second date field as a 'To date'. If marked 'Optional' field will be presented but not required. If marked 'Required' the 'To date' will be required if the 'From date' is required or filled in."
-msgstr ""
-
-#: date/date_admin.inc:350
-msgid "To Date"
-msgstr "„Bis“-Datum"
-
-#: date/date_admin.inc:351
-msgid "Never"
-msgstr "Nie"
-
-#: date/date_admin.inc:351
-msgid "Optional"
-msgstr "Optional"
-
-#: date/date_admin.inc:351
-msgid "Required"
-msgstr "Erforderlich"
-
-#: date/date_admin.inc:360
-msgid "Set the date elements to be stored (at least a year is required)."
-msgstr ""
-
-#: date/date_admin.inc:368
-msgid "Default Display"
-msgstr "Standardmäßige Anzeige"
-
-#: date/date_admin.inc:371
-msgid "Select a default format type to be used for the date display. Visit the <a href=\"@date-time-page\">Date and time date format page</a> to add and edit format types."
-msgstr ""
-
-#: date/date_admin.inc:374
-msgid "Select the timezone handling method to be used for this date field."
-msgstr ""
-
-#: date/date_admin.inc:378
-msgid "Time zone handling"
-msgstr "Zeitzonenbehandlung"
-
-#: date/date_admin.inc:394
-#, fuzzy
-msgid "Expanded"
-msgstr "Geöffnet"
-
-#: date/date_admin.inc:394
-msgid "Collapsed"
-msgstr "Zusammengeklappt"
-
-#: date/date_admin.inc:395
-msgid "Repeat display"
-msgstr "Terminserienanzeige"
-
-#: date/date_admin.inc:396
-msgid "Should the repeat options form start out expanded or collapsed? Set to 'Collapsed' to make those options less obtrusive."
-msgstr ""
-
-#: date/date_admin.inc:419
-msgid "Changing the %name setting after data has been created could result in the loss of data!"
-msgstr ""
-
-#: date/date_admin.inc:432
-msgid "Site's time zone"
-msgstr "Zeitzone der Website"
-
-# What the heck is this?
-#: date/date_admin.inc:433
-msgid "Date's time zone"
-msgstr "Zeitzone des Datums"
-
-#: date/date_admin.inc:434
-msgid "User's time zone"
-msgstr "Zeitzone des Benutzers"
-
-#: date/date_admin.inc:436
-msgid "No time zone conversion"
-msgstr "Keine Umstellung der Zeitzone"
-
-#: date/date_admin.inc:601
-msgid "Display From and To dates"
-msgstr "Das „Von“ und „Bis“-Datum anzeigen"
-
-#: date/date_admin.inc:602
-msgid "Display From date only"
-msgstr "Nur das „Von“-Datum anzeigen"
-
-#: date/date_admin.inc:603
-msgid "Display To date only"
-msgstr "Nur das „Bis“-Datum anzeigen"
-
-#: date/date_admin.inc:622
-msgid "Show @count value(s)"
-msgstr ""
-
-#: date/date_admin.inc:644
-msgid "starting from @count"
-msgstr ""
-
-#: date/date_admin.inc:666
-msgid "ending on @count"
-msgstr ""
-
-#: date/date_admin.inc:695
-msgid "Display repeat rule"
-msgstr "Wiederholungsregel anzeigen"
-
-#: date/date_admin.inc:696
-msgid "Hide repeat rule"
-msgstr "Wiederholungsregel verstecken"
-
-#: date/date_elements.inc:28
-msgid "A 'From date' date is required for field %field %delta."
-msgstr "Ein „Von“-Datum ist für %field %delta erforderlich."
-
-#: date/date_elements.inc:34
-msgid "A 'To date' is required for field %field %delta."
-msgstr "Ein „Bis“-Datum ist für %field %delta erforderlich."
-
-#: date/date_elements.inc:331
-msgid "Empty 'To date' values will use the 'From date' values."
-msgstr "Ein leerer „Bis“-Datumswert wird den „Von“-Datumswert verwenden."
-
-#: date/date_elements.inc:342
-msgid "@field_name From date value #@delta"
-msgstr ""
-
-#: date/date_elements.inc:344
-msgid "@field_name To date value #@delta"
-msgstr ""
-
-#: date/date_elements.inc:348
-msgid "@field_name From date"
-msgstr ""
-
-#: date/date_elements.inc:349
-msgid "@field_name To date"
-msgstr ""
-
-#: date/date_elements.inc:425
-msgid "Some value must be entered in the To date."
-msgstr ""
-
-#: date/date_elements.inc:442
-msgid "The To date must be greater than the From date."
-msgstr ""
-
-#: date/date_elements.inc:477
-msgid "The From date is invalid."
-msgstr "Das „Von“-Datum ist ungültig."
-
-#: date/date_elements.inc:480
-msgid "The To date is invalid."
-msgstr "Das „Bis“-Datum ist ungültig."
-
-#: date/date_elements.inc:489
-msgid "There are errors in @field_name value #@delta:"
-msgstr ""
-
-#: date/date_elements.inc:492
-msgid "There are errors in @field_name:"
-msgstr ""
-
-#: date/date_handler_field_multiple.inc:36
-msgid "Group multiple values"
-msgstr "Mehrere Werte gruppieren"
-
-#: date/date_handler_field_multiple.inc:39
-msgid "If unchecked, each item in the field will create a new row, which may appear to cause duplicates. This setting is not compatible with click-sorting in table displays."
-msgstr ""
-
-#: date/date_repeat.inc:77
-msgid "The UNTIL value is required for repeating dates."
-msgstr "Der BIS-Wert ist für Terminserien erforderlich."
-
-#: date/date_token.inc:12
-msgid "The raw date value."
-msgstr "Der unbearbeitete Datumswert."
-
-#: date/date_token.inc:13
-msgid "The formatted date."
-msgstr "Das formatierte Datum."
-
-#: date/date_token.inc:14
-msgid "The raw date timestamp."
-msgstr "Der unbearbeitete Zeitstempel."
-
-#: date/date_token.inc:15
-msgid "Date year (four digit)"
-msgstr "Datum: Jahr (vierstellig)"
-
-#: date/date_token.inc:16
-msgid "Date year (two digit)"
-msgstr "Datum: Jahr (zweistellig)"
-
-#: date/date_token.inc:17
-msgid "Date month (full word)"
-msgstr "Datum: Monat (vollständiges Wort)"
-
-#: date/date_token.inc:18
-msgid "Date month (abbreviated)"
-msgstr "Datum: Monat (abgekürzt)"
-
-#: date/date_token.inc:19
-msgid "Date month (two digit, zero padded)"
-msgstr "Datum: Monat (zweistellig, mit 0 aufgefüllt)"
-
-#: date/date_token.inc:20
-msgid "Date month (one or two digit)"
-msgstr "Datum: Monat (ein- oder zweistellig)"
-
-#: date/date_token.inc:21
-msgid "Date week (two digit)"
-msgstr "Datum: Woche (zweistellig)"
-
-#: date/date_token.inc:22
-msgid "Date date (YYYY-MM-DD)"
-msgstr ""
-
-#: date/date_token.inc:23
-msgid "Date day (full word)"
-msgstr "Datum: Tag (vollständiges Wort)"
-
-#: date/date_token.inc:24
-msgid "Date day (abbreviation)"
-msgstr "Datum: Tag (abgekürzt)"
-
-#: date/date_token.inc:25
-msgid "Date day (two digit, zero-padded)"
-msgstr "Datum: Tag (zweistellig, mit 0 aufgefüllt)"
-
-#: date/date_token.inc:26
-msgid "Date day (one or two digit)"
-msgstr "Datum: Tag (ein- oder zweistellig)"
-
-#: date/date_token.inc:28
-msgid "If the field has a to-date defined, the same tokens exist in the form: [to-????], where ???? is the normal token."
-msgstr ""
-
-#: date/date.module:121
-msgid "Store a date in the database as an ISO date, recommended for historical or partial dates."
-msgstr ""
-
-#: date/date.module:125
-msgid "Store a date in the database as a timestamp, deprecated format to suppport legacy data."
-msgstr ""
-
-#: date/date.module:129
-msgid "Store a date in the database as a datetime field, recommended for complete dates and times that may need timezone conversion."
-msgstr ""
-
-#: date/date.module:140
-msgid "Select List"
-msgstr "Auswahlliste"
-
-#: date/date.module:148
-msgid "Select List with Repeat options"
-msgstr "Auswahlliste mit Terminserienoptionen"
-
-#: date/date.module:156
-msgid "Text Field with custom input format"
-msgstr "Textfeld mit benutzerdefiniertem Eingabeformat"
-
-#: date/date.module:164
-msgid "Text Field with Repeat options"
-msgstr "Textfeld mit Terminserien"
-
-#: date/date.module:174
-msgid "Text Field with Date Pop-up calendar"
-msgstr "Textfeld mit Kalender"
-
-#: date/date.module:182
-msgid "Text Field with Date Pop-up and Repeat options"
-msgstr "Textfeld mit Kalender & Terminserienoptionen"
-
-#: date/date.module:221
-msgid "Default"
-msgstr "Standard"
-
-#: date/date.module:224
-msgid "As Time Ago"
-msgstr ""
-
-#: date/date.module:420
-msgid "Complete documentation for the Date and Date API modules is available at <a href=\"@link\">http://drupal.org/node/92460</a>."
-msgstr ""
-
-#: date/date.module:716
-msgid "Add format type"
-msgstr "Formattyp hinzufügen"
-
-#: date/date.module:720
-msgid "Name"
-msgstr "Name"
-
-#: date/date.module:721
-msgid "The human-readable name for this format type."
-msgstr ""
-
-#: date/date.module:728
-msgid "Type"
-msgstr "Typ"
-
-#: date/date.module:729
-msgid "The machine-readable name of this format type. <br>This name must contain only lowercase letters, numbers, and underscores and must be unique."
-msgstr ""
-
-#: date/date.module:747
-msgid "The format type must contain only alphanumeric characters and underscores."
-msgstr ""
-
-#: date/date.module:751
-msgid "This format type already exists. Please enter a unique type."
-msgstr ""
-
-#: date/date.module:40
-msgid "view date repeats"
-msgstr ""
-
-#: date/date.module:28
-msgid "Repeats"
-msgstr "Wiederholungen"
-
-#: date/date.module:0
-#: date/date.theme:0
-msgid "date"
-msgstr "Datum"
-
-#: date/date.theme:223
-msgid "!time from now"
-msgstr "!time ab jetzt"
-
-#: date/date.theme:228
-msgid "ongoing"
-msgstr ""
-
-#: date/date.install:448
-msgid "All date fields using the jscalendar widget have been changed to use the text widget instead, since the jscalendar widget is no longer supported. Enable the Date Popup module to make a jQuery popup calendar available and edit the field settings to select it."
-msgstr ""
-
-#: date/date.install:485
-msgid "All repeating date fields have been updated to use the new repeating widgets."
-msgstr ""
-
-#: date/date.install:530
-msgid "The database has been updated to correct the stored timezone for fields using timezone 'none'."
-msgstr ""
-
-#: date/date.install:545
-msgid "Some updates are still pending. Please return to <a href=\"@update-php\">update.php</a> and run the remaining updates."
-msgstr ""
-
-#: date/date.install:546
-msgid "Some updates are still pending.<br/>Please re-run the update script."
-msgstr ""
-
-#: date/date.install:565
-msgid "Time"
-msgstr "Zeit"
-
-#: date/date.install:566
-msgid "Time with timezone"
-msgstr "Zeit mit Zeitzone"
-
-#: date/date.install:567
-msgid "iCal"
-msgstr "iCal"
-
-#: date/date.install:568
-msgid "Timestamp"
-msgstr "Zeitstempel"
-
-#: date/date.install:569
-msgid "Feed"
-msgstr "Newsfeed"
-
-#: date/date.install:570
-msgid "ISO"
-msgstr "ISO"
-
-#: date/date.install:651
-msgid "Field %field formats were converted to custom formats."
-msgstr ""
-
-#: date/date.install:654
-msgid "The old format type %from_format for field %field was converted to the new format type %to_format."
-msgstr ""
-
-#: date/date.install:680
-msgid "The display settings for field %field in content type %type_name were updated."
-msgstr ""
-
-#: date/date.install:709
-msgid "Date display formats are now included with the system date and time settings. Please visit <a href=\"@date-time-page\">the Date and time format page</a> to see the new format types."
-msgstr ""
-
-#: date/date.info:0
-#: date_tools/date_tools.module:114;133;409
-#: includes/date_api.views.inc:127;128;137;138
-msgid "Date"
-msgstr "Datum"
-
-#: date/date.info:0
-msgid "Defines CCK date/time fields and widgets."
-msgstr ""
-
diff --git a/date/translations/date.es.po b/date/translations/date.es.po
deleted file mode 100644
index 6ca49b6..0000000
--- a/date/translations/date.es.po
+++ /dev/null
@@ -1,563 +0,0 @@
-# translation of date.po to
-# $Id$
-# LANGUAGE translation of Drupal (date)
-# Copyright YEAR NAME <EMAIL@ADDRESS>
-# Generated from files:
-# date_admin.inc,v 1.40.2.3.2.38 2009/03/03 15:16:54 karens
-# date_elements.inc,v 1.46.2.2.2.52 2009/02/27 15:47:39 karens
-# date_handler_field_multiple.inc,v 1.1.2.12 2009/02/27 14:48:34 karens
-# date_repeat.inc,v 1.22.2.1.2.22 2009/02/21 12:53:25 karens
-# date_token.inc,v 1.2.2.1.2.5 2009/01/06 22:48:31 karens
-# date.module,v 1.61.2.4.2.52 2009/02/27 17:05:20 karens
-# date.theme,v 1.6.4.42 2009/03/01 22:35:22 karens
-# date.install,v 1.37.2.5.2.26 2009/02/15 11:32:48 karens
-# date.info,v 1.3 2008/02/18 19:32:28 karens
-# date_tools.module,v 1.1.2.10 2009/02/27 15:04:28 karens
-# date_api.views.inc,v 1.1.2.6 2008/11/30 13:58:27 karens
-#
-# Ricardo Sanz Ante <rsante@eresmas.net>, 2009.
-msgid ""
-msgstr ""
-"Project-Id-Version: date\n"
-"POT-Creation-Date: 2009-03-07 19:12+0100\n"
-"PO-Revision-Date: 2009-04-05 21:39+0200\n"
-"Last-Translator: Ricardo Sanz Ante <rsante@eresmas.net>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: date/date_admin.inc:25
-msgid "The Strtotime default value is invalid."
-msgstr "El valor por defecto de Srttotime es inválido"
-
-#: date/date_admin.inc:31
-msgid "The Strtotime default value for the To Date is invalid."
-msgstr "El valor por defecto de Srttotime para la fecha \"Hasta\" es inválido"
-
-#: date/date_admin.inc:35
-msgid "Years back and forward must be in the format -9:+9."
-msgstr "Los años hacia atrás y hacia deltante deben especificarse mediante el formato -9:+9"
-
-#: date/date_admin.inc:70
-msgid "Default value"
-msgstr "Valor por defecto"
-
-#: date/date_admin.inc:72;78
-msgid "Blank"
-msgstr "Vacío"
-
-#: date/date_admin.inc:72;78
-msgid "Relative"
-msgstr "Relativo"
-
-#: date/date_admin.inc:73;79
-msgid "A default value to use for this field. If you select 'Relative', add details below."
-msgstr "Valor por defecto a usar para este campo. Si selecciona 'Relativo' añada los detalles más abajo"
-
-#: date/date_admin.inc:76
-msgid "Default value for To date"
-msgstr "Valor por defecto para la fecha \"Hasta\""
-
-#: date/date_admin.inc:78
-msgid "Same as From date"
-msgstr "Lo mismo que la fecha \"Desde\""
-
-#: date/date_admin.inc:83
-msgid "Customize Default Value"
-msgstr "Personalizar valor por defecto"
-
-#: date/date_admin.inc:84
-msgid "The custom value for a Relative default should be something that describes a time by reference to the current day using strtotime, like '+90 days' (90 days from the day the field is created) or '+1 Saturday' (the next Saturday). See !strtotime for more details."
-msgstr "El valor personalizado para un valor relativo por defecto debe describir un tiempo mediante una referencia al día actualusando srttotime, similar a '+90 dias' (90 días a partir del día en el que el campo se crea) o '+1 domingo)'. Vease !srttotime para más detalles"
-
-#: date/date_admin.inc:84
-msgid "strtotime"
-msgstr "srttotime"
-
-#: date/date_admin.inc:89
-msgid "Custom value for From date"
-msgstr "Valor personalizado para la fecha \"Desde\""
-
-#: date/date_admin.inc:94
-msgid "Custom value for To date"
-msgstr "Valor personalizado para la fecha \"Hasta\""
-
-#: date/date_admin.inc:114
-msgid "Input format"
-msgstr "Formato de entrada"
-
-#: date/date_admin.inc:117
-msgid "Set the order and format for the date parts in the input form. The format will be adapted to remove values not in the granularity for this field."
-msgstr "Establezca el orden y el formato de los datos de fecha en el formulario de entrada. El formato se adaptará para quitar las partes de la fecha que no se deban incluir debido a la granularidad del campo"
-
-#: date/date_admin.inc:123
-msgid "Custom input format"
-msgstr "Formato de entrada personalizado "
-
-#: date/date_admin.inc:125
-msgid "The custom format, if provided, will override the input format selected above. The custom format, if provided, will override the selected display or input options. Define a php date format string like 'm-d-Y H:i' (see <a href=\"@link\">http://php.net/date</a> for more details)."
-msgstr "El formato personalizado, si se proporciona, prevalecerá sobre las opciones de visualización o de entrada seleccioandas. Defina una cadena de formato de fecha PHP como 'm-d-Y H' (para más detalles véase <a href=\"@link\">http://php.net/date</a>)"
-
-#: date/date_admin.inc:137
-msgid "Years back and forward"
-msgstr "Años atrás y adelante"
-
-#: date/date_admin.inc:141
-msgid "Number of years to go back and forward in the year selection list, default is -3:+3."
-msgstr "Número de años a ir hacia atrás y hacia adelante en la lista de selección de año; por defecto es -3:+3"
-
-#: date/date_admin.inc:144
-msgid "Time increment"
-msgstr "Incremento de tiempo"
-
-#: date/date_admin.inc:147
-msgid "Increment the minute and second fields by this amount."
-msgstr "Esta cantidad incrementa "
-
-#: date/date_admin.inc:172
-msgid "Customize Date Parts"
-msgstr "Personalizar las partes de Date"
-
-#: date/date_admin.inc:178
-msgid "Above"
-msgstr "Encima"
-
-#: date/date_admin.inc:178
-msgid "Within"
-msgstr "Dentro"
-
-#: date/date_admin.inc:178
-msgid "None"
-msgstr "Ninguna"
-
-#: date/date_admin.inc:180
-msgid "Position of date part labels"
-msgstr "Posición de las partes de la fecha"
-
-#: date/date_admin.inc:181
-msgid "The location of date part labels, like 'Year', 'Month', or 'Day'. 'Above' will display them as titles above each date part. 'Within' will insert the label as the first option in the select list and in blank textfields. 'None' will not label any of the date parts. The exact text in the label is controlled by themes like 'date_part_label_year' and 'date_part_label_month'."
-msgstr "La colocación de las etiquetas de las partes de la fecha tales como \"Año\", Mes o \"Día\". \"Encima\" las mostrará como títulos encima de cada parte de la fecha. \"Dentro\" insertará la etiqueta como la primera opción en listas desplegables y en campos de texto. \"Ninguna\" no etiquetará ninguna de las partes de la fecha. El texto exacto de las etiquetas está controlado por themes como date_part_label_year' and 'date_part_label_month'."
-
-#: date/date_admin.inc:224
-msgid "Input Type"
-msgstr "Tipo de entrada"
-
-#: date/date_admin.inc:224
-msgid "Select list"
-msgstr "Lista desplegable"
-
-#: date/date_admin.inc:224
-msgid "Text field"
-msgstr "Campo de texto"
-
-#: date/date_admin.inc:239
-msgid "Granularity must include a year."
-msgstr "La granularidad debe incluir el año."
-
-#: date/date_admin.inc:242
-msgid "Dates without hours granularity must not use any timezone handling."
-msgstr "Las fechas sin granularidad de horas no deben usar ninguna gestión de zona horaria."
-
-#: date/date_admin.inc:347
-msgid "Display a matching second date field as a 'To date'. If marked 'Optional' field will be presented but not required. If marked 'Required' the 'To date' will be required if the 'From date' is required or filled in."
-msgstr "Mostrar un segundo campo de fecha a juego como fecha \"Hasta\". Si se marca \"Opcional\", el campo se presentará pero no será requerido. Si se marca \"Requerido\" el campo fecha \"Hasta\" será requerido si la fecha \"Desde\" es requerida o es rellena."
-
-#: date/date_admin.inc:350
-msgid "To Date"
-msgstr "Fecha \"Hasta\""
-
-#: date/date_admin.inc:351
-msgid "Never"
-msgstr "Nunca"
-
-#: date/date_admin.inc:351
-msgid "Optional"
-msgstr "Opcional"
-
-#: date/date_admin.inc:351
-msgid "Required"
-msgstr "Requerido"
-
-#: date/date_admin.inc:360
-msgid "Set the date elements to be stored (at least a year is required)."
-msgstr "Establecer los elementos de la fecha que se guardarán (se requeire al menos el año)."
-
-#: date/date_admin.inc:368
-msgid "Default Display"
-msgstr "Visualización por defecto"
-
-#: date/date_admin.inc:371
-msgid "Select a default format type to be used for the date display. Visit the <a href=\"@date-time-page\">Date and time date format page</a> to add and edit format types."
-msgstr "Seleccione un tipo de formato por defecto para ser usado en la visualizacuión de la fecha. Visite la <a href=\"@date-time-page\">página de formatos de fecha y hora</a> para añadir y editar los tipos de formato."
-
-#: date/date_admin.inc:374
-msgid "Select the timezone handling method to be used for this date field."
-msgstr "Seleccione la gestión de zona horaria a ser usada para este campo de fecha."
-
-#: date/date_admin.inc:378
-msgid "Time zone handling"
-msgstr "Gestión de zona horaria"
-
-#: date/date_admin.inc:394
-msgid "Expanded"
-msgstr "Expandido"
-
-#: date/date_admin.inc:394
-msgid "Collapsed"
-msgstr "Colapsado"
-
-#: date/date_admin.inc:395
-msgid "Repeat display"
-msgstr "Repetir visualización"
-
-#: date/date_admin.inc:396
-msgid "Should the repeat options form start out expanded or collapsed? Set to 'Collapsed' to make those options less obtrusive."
-msgstr "¿El formulario de opciones de repetición deberá estar inicialmente expandido o colapsado? Seleccione \"Colapsado\" para que estas opciones sean menos llamativas."
-
-#: date/date_admin.inc:419
-msgid "Changing the %name setting after data has been created could result in the loss of data!"
-msgstr "¡Cambiar la configuración de %name después de que se haya creado información puede producir pérdida de datos!"
-
-#: date/date_admin.inc:432
-msgid "Site's time zone"
-msgstr "Zona horaria del sitio"
-
-#: date/date_admin.inc:433
-msgid "Date's time zone"
-msgstr "Zona horaria de Date."
-
-#: date/date_admin.inc:434
-msgid "User's time zone"
-msgstr "Zona horaria del usuario"
-
-#: date/date_admin.inc:436
-msgid "No time zone conversion"
-msgstr "Sin conversión horaria"
-
-#: date/date_admin.inc:601
-msgid "Display From and To dates"
-msgstr "Mostrar fechas \"Desde\" y \"Hasta\"."
-
-#: date/date_admin.inc:602
-msgid "Display From date only"
-msgstr "Mostrar solo la fecha \"Desde\""
-
-#: date/date_admin.inc:603
-msgid "Display To date only"
-msgstr "Mostrar solo la fecha \"Hasta\""
-
-#: date/date_admin.inc:622
-msgid "Show @count value(s)"
-msgstr "Mostrar @count valor(es)"
-
-#: date/date_admin.inc:644
-msgid "starting from @count"
-msgstr "empezando desde @count"
-
-#: date/date_admin.inc:666
-msgid "ending on @count"
-msgstr "terminando en @count"
-
-#: date/date_admin.inc:695
-msgid "Display repeat rule"
-msgstr "Mostrar regla de repetición"
-
-#: date/date_admin.inc:696
-msgid "Hide repeat rule"
-msgstr "Ocultar regla de repetición"
-
-#: date/date_elements.inc:28
-msgid "A 'From date' date is required for field %field %delta."
-msgstr "Se requiere la fecha \"Desde\" para el campo %field %delta."
-
-#: date/date_elements.inc:34
-msgid "A 'To date' is required for field %field %delta."
-msgstr "Se requiere la fecha \"Hasta\" para el campo %field %delta."
-
-#: date/date_elements.inc:331
-msgid "Empty 'To date' values will use the 'From date' values."
-msgstr "Valores vacíos de la fecha \"Hasta\" usarán los valores de la fecha \"Desde\"."
-
-#: date/date_elements.inc:342
-msgid "@field_name From date value #@delta"
-msgstr "@field_name valor de fecha \"Desde\" #@delta"
-
-#: date/date_elements.inc:344
-msgid "@field_name To date value #@delta"
-msgstr "@field_name valor de fecha \"Hasta\" #@delta"
-
-#: date/date_elements.inc:348
-msgid "@field_name From date"
-msgstr "@field_name valor de fecha \"Desde\""
-
-#: date/date_elements.inc:349
-msgid "@field_name To date"
-msgstr "@field_name valor de fecha \"Hasta\""
-
-#: date/date_elements.inc:425
-msgid "Some value must be entered in the To date."
-msgstr "Se debe introducir algún valor en la feche \"Hasta\"."
-
-#: date/date_elements.inc:442
-msgid "The To date must be greater than the From date."
-msgstr "La fecha \"Hasta\" debe ser mayor que la fecha \"Desde\"."
-
-#: date/date_elements.inc:477
-msgid "The From date is invalid."
-msgstr "La fecha \"Desde\" es inválida."
-
-#: date/date_elements.inc:480
-msgid "The To date is invalid."
-msgstr "La fecha \"Hasta\" es inválida."
-
-#: date/date_elements.inc:489
-msgid "There are errors in @field_name value #@delta:"
-msgstr "Hay errores en el valor de @field_name #@delta:"
-
-#: date/date_elements.inc:492
-msgid "There are errors in @field_name:"
-msgstr "Hay errores en el valor de @field_name:"
-
-#: date/date_handler_field_multiple.inc:36
-msgid "Group multiple values"
-msgstr "Agrupar múltiples valores"
-
-#: date/date_handler_field_multiple.inc:39
-msgid "If unchecked, each item in the field will create a new row, which may appear to cause duplicates. This setting is not compatible with click-sorting in table displays."
-msgstr "Si no es marcado, cada item en el campo creará una nueva fila, lo que podría causar duplicados. Esta configuración no es compatible con el ordenado mediante click en las visualizaciones de tablas."
-
-#: date/date_repeat.inc:77
-msgid "The UNTIL value is required for repeating dates."
-msgstr "El valor \"HASTA\" es necesario para fechas que se repiten."
-
-#: date/date_token.inc:12
-msgid "The raw date value."
-msgstr "El valor en bruto de fecha."
-
-#: date/date_token.inc:13
-msgid "The formatted date."
-msgstr "La fecha formateada."
-
-#: date/date_token.inc:14
-msgid "The raw date timestamp."
-msgstr "La marca de tiempo en bruto."
-
-#: date/date_token.inc:15
-msgid "Date year (four digit)"
-msgstr "Año de la fecha (cuatro dígitos)"
-
-#: date/date_token.inc:16
-msgid "Date year (two digit)"
-msgstr "Año de la fecha (dos dígitos)"
-
-#: date/date_token.inc:17
-msgid "Date month (full word)"
-msgstr "Mes de la fecha (nombre completo)"
-
-#: date/date_token.inc:18
-msgid "Date month (abbreviated)"
-msgstr "Mes de la fecha (abreviado)"
-
-#: date/date_token.inc:19
-msgid "Date month (two digit, zero padded)"
-msgstr "Mes de la fecha (dos dígitos, rellenado con cero)"
-
-#: date/date_token.inc:20
-msgid "Date month (one or two digit)"
-msgstr "Mes de la fecha (uno o dos dígitos)"
-
-#: date/date_token.inc:21
-msgid "Date week (two digit)"
-msgstr "Semana de la fecha (dos dígitos)"
-
-#: date/date_token.inc:22
-msgid "Date date (YYYY-MM-DD)"
-msgstr "Fecha de la fecha (AAAA-MM-DD)"
-
-#: date/date_token.inc:23
-msgid "Date day (full word)"
-msgstr "Dia de la fecha (nombre completo)"
-
-#: date/date_token.inc:24
-msgid "Date day (abbreviation)"
-msgstr "Dia de la fecha (abreviado)"
-
-#: date/date_token.inc:25
-msgid "Date day (two digit, zero-padded)"
-msgstr "Dia de la fecha (dos dígitos, relleno con cero)"
-
-#: date/date_token.inc:26
-msgid "Date day (one or two digit)"
-msgstr "Dia de la fecha (uno o dos dígitos)"
-
-#: date/date_token.inc:28
-msgid "If the field has a to-date defined, the same tokens exist in the form: [to-????], where ???? is the normal token."
-msgstr "Si el campo tiene la fecha \"Hasta\" definida, el mismo token existe en la forma: [to-????], donde ???? es el token normal."
-
-#: date/date.module:121
-msgid "Store a date in the database as an ISO date, recommended for historical or partial dates."
-msgstr "Almacenar la fecha en la base de datos como una fecha ISO; recomendado para fechas históricas o parciales."
-
-#: date/date.module:125
-msgid "Store a date in the database as a timestamp, deprecated format to suppport legacy data."
-msgstr "Almacenar la fecha en la base de datos como una marca de tiempo; formato depreciado para admitir datos legados (legacy)."
-
-#: date/date.module:129
-msgid "Store a date in the database as a datetime field, recommended for complete dates and times that may need timezone conversion."
-msgstr "Almacenar la fecha en la base de datos como un campo datetime; recomendado para fechas y horas completas que podrían necesitar conversiones horarias."
-
-#: date/date.module:140
-msgid "Select List"
-msgstr "Lista desplegable"
-
-#: date/date.module:148
-msgid "Select List with Repeat options"
-msgstr "Lista desplegable con opciones de repetición"
-
-#: date/date.module:156
-msgid "Text Field with custom input format"
-msgstr "Campo de texto con formato de entrada personalizado"
-
-#: date/date.module:164
-msgid "Text Field with Repeat options"
-msgstr "Campo de texto con opciones de repetición"
-
-#: date/date.module:174
-msgid "Text Field with Date Pop-up calendar"
-msgstr "Campo de texto con calendario emergente"
-
-#: date/date.module:182
-msgid "Text Field with Date Pop-up and Repeat options"
-msgstr "Campo de texto con calendario emergente y opciones de repetición"
-
-#: date/date.module:221
-msgid "Default"
-msgstr "Por defecto"
-
-#: date/date.module:224
-msgid "As Time Ago"
-msgstr "Como tiempo transcurrido"
-
-#: date/date.module:420
-msgid "Complete documentation for the Date and Date API modules is available at <a href=\"@link\">http://drupal.org/node/92460</a>."
-msgstr "La documentación completa de los módulos Date y Date API está disponible en <a href=\"@link\">http://drupal.org/node/92460</a>."
-
-#: date/date.module:716
-msgid "Add format type"
-msgstr "Añadir tipo de formato"
-
-#: date/date.module:720
-msgid "Name"
-msgstr "Nombre"
-
-#: date/date.module:721
-msgid "The human-readable name for this format type."
-msgstr "El nombre legible por humanos para este tipo de formato."
-
-#: date/date.module:728
-msgid "Type"
-msgstr "Tipo"
-
-#: date/date.module:729
-msgid "The machine-readable name of this format type. <br>This name must contain only lowercase letters, numbers, and underscores and must be unique."
-msgstr "El nombre legible por máquinas para este tipo de formato. <br>Este nombre deberá contener únicamente letras en minúscula, números y guiones bajos, y debe ser único."
-
-#: date/date.module:747
-msgid "The format type must contain only alphanumeric characters and underscores."
-msgstr "El tipo de formato debe contener únicamente caracteres alfanuméricos y guines bajos."
-
-#: date/date.module:751
-msgid "This format type already exists. Please enter a unique type."
-msgstr "Este tipo de formato ya existe. Por favor introduzca un tipo único."
-
-#: date/date.module:40
-msgid "view date repeats"
-msgstr "Repeticiones de vista de fecha"
-
-#: date/date.module:28
-msgid "Repeats"
-msgstr "Repeticiones"
-
-#: date/date.module:0 date/date.theme:0
-msgid "date"
-msgstr "fecha"
-
-#: date/date.theme:223
-msgid "!time from now"
-msgstr "!time desde la actualidad"
-
-#: date/date.theme:228
-msgid "ongoing"
-msgstr "en curso"
-
-#: date/date.install:448
-msgid "All date fields using the jscalendar widget have been changed to use the text widget instead, since the jscalendar widget is no longer supported. Enable the Date Popup module to make a jQuery popup calendar available and edit the field settings to select it."
-msgstr "Dado que el control jscalendar yo no es soportado todos los campos de fecha que usan el control jscalendar han sido modificados para usar en su lugar entrada de texto. Active el módulo Date Popup para hacer disponible un calendario emergente jQuery y edite la configuración del campo para seleccionarlo."
-
-#: date/date.install:485
-msgid "All repeating date fields have been updated to use the new repeating widgets."
-msgstr "Todos los campos de fecha repetida han sido actualizados para usar el nuevo control de repetición."
-
-#: date/date.install:530
-msgid "The database has been updated to correct the stored timezone for fields using timezone 'none'."
-msgstr "La base de datos ha sido actualizada para corregir las zonas horarias guardadas de los campos usando zona horaria 'ninguna'."
-
-#: date/date.install:545
-msgid "Some updates are still pending. Please return to <a href=\"@update-php\">update.php</a> and run the remaining updates."
-msgstr "Algunas actualizaciones están pendientes. Por favor vuelva a <a href=\"@update-php\">update.php</a> y ejecute las actualizaciones restantes."
-
-#: date/date.install:546
-msgid "Some updates are still pending.<br/>Please re-run the update script."
-msgstr "Algunas actualizaciones están pendientes. <br />Por favor re-ejecute el script de actualización."
-
-#: date/date.install:565
-msgid "Time"
-msgstr "Hora"
-
-#: date/date.install:566
-msgid "Time with timezone"
-msgstr "Hora con zona horaria"
-
-#: date/date.install:567
-msgid "iCal"
-msgstr "iCal"
-
-#: date/date.install:568
-msgid "Timestamp"
-msgstr "Marca de tiempo"
-
-#: date/date.install:569
-msgid "Feed"
-msgstr "Feed"
-
-#: date/date.install:570
-msgid "ISO"
-msgstr "ISO"
-
-#: date/date.install:651
-msgid "Field %field formats were converted to custom formats."
-msgstr "Los formatos del campo %field han sido convertidos a formatos personalizados."
-
-#: date/date.install:654
-msgid "The old format type %from_format for field %field was converted to the new format type %to_format."
-msgstr "El antiguo tipo de formato %from ha sido convertido al nuevo tipo de formato %to_format."
-
-#: date/date.install:680
-msgid "The display settings for field %field in content type %type_name were updated."
-msgstr "La configuración de visualización para el campo %field en el tipo de contenido %type_name ha sido actualizada."
-
-#: date/date.install:709
-msgid "Date display formats are now included with the system date and time settings. Please visit <a href=\"@date-time-page\">the Date and time format page</a> to see the new format types."
-msgstr "Los formatos de visualización de fecha están ahora incluidos en la configuración del sistema de fecha y hora. Por favor visite <a href=\"@date-time-page\">la página de formato de fecha y hora</a> para ver los nuevos tipos de formatos."
-
-#: date/date.info:0 date_tools/date_tools.module:114;133;409 includes/date_api.views.inc:127;128;137;138
-msgid "Date"
-msgstr "Fecha"
-
-#: date/date.info:0
-msgid "Defines CCK date/time fields and widgets."
-msgstr "Define campos CCK y controles (widgets) de fecha/hora."
-
diff --git a/date/translations/date.fr.po b/date/translations/date.fr.po
deleted file mode 100644
index be39089..0000000
--- a/date/translations/date.fr.po
+++ /dev/null
@@ -1,564 +0,0 @@
-# $Id$
-#
-# French translation of Drupal (general)
-# Copyright YEAR NAME <EMAIL@ADDRESS>
-# Generated from files:
-# date_admin.inc,v 1.40.2.3.2.38 2009/03/03 15:16:54 karens
-# date_elements.inc,v 1.46.2.2.2.57 2009/03/20 00:28:33 karens
-# date_handler_field_multiple.inc,v 1.1.2.12 2009/02/27 14:48:34 karens
-# date_repeat.inc,v 1.22.2.1.2.22 2009/02/21 12:53:25 karens
-# date_token.inc,v 1.2.2.1.2.7 2009/03/20 12:07:51 karens
-# date.module,v 1.61.2.4.2.53 2009/03/19 23:22:32 karens
-# date.theme,v 1.6.4.42 2009/03/01 22:35:22 karens
-# date.install,v 1.37.2.5.2.28 2009/03/25 12:04:38 karens
-# date.info,v 1.3 2008/02/18 19:32:28 karens
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: french translation for drupal 6 date module\n"
-"POT-Creation-Date: 2009-03-07 19:12+0100\n"
-"PO-Revision-Date: 2009-03-31 16:27+0100\n"
-"Last-Translator: Sylvain Moreau <sylvain.moreau@ows.fr>\n"
-"Language-Team: Sylvain Moreau, OWS <sylvain.moreau@ows.fr>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n>1);\n"
-"X-Poedit-Language: French\n"
-"X-Poedit-Country: FRANCE\n"
-
-#: date/date_admin.inc:25
-msgid "The Strtotime default value is invalid."
-msgstr "La valeur Strtotime par défaut est invalide"
-
-#: date/date_admin.inc:31
-msgid "The Strtotime default value for the To Date is invalid."
-msgstr "La valeur Strtotime par défaut du champ Date de Fin est invalide"
-
-#: date/date_admin.inc:35
-msgid "Years back and forward must be in the format -9:+9."
-msgstr "Les années passées et futures doivent être au format -9:+9."
-
-#: date/date_admin.inc:70
-msgid "Default value"
-msgstr "Valeur par défaut"
-
-#: date/date_admin.inc:72;78
-msgid "Blank"
-msgstr "Vide"
-
-#: date/date_admin.inc:72;78
-msgid "Relative"
-msgstr "Relatif"
-
-#: date/date_admin.inc:73;79
-msgid "A default value to use for this field. If you select 'Relative', add details below."
-msgstr "Une valeur par défaut pour ce champ. Si vous sélectionnez 'Relatif', veuillez ajouter le détail ci-dessous."
-
-#: date/date_admin.inc:76
-msgid "Default value for To date"
-msgstr "Valeur par défaut pour Date de Fin"
-
-#: date/date_admin.inc:78
-msgid "Same as From date"
-msgstr "Identique à Date de Début"
-
-#: date/date_admin.inc:83
-msgid "Customize Default Value"
-msgstr "Personnaliser la Valeur par Défaut"
-
-#: date/date_admin.inc:84
-msgid "The custom value for a Relative default should be something that describes a time by reference to the current day using strtotime, like '+90 days' (90 days from the day the field is created) or '+1 Saturday' (the next Saturday). See !strtotime for more details."
-msgstr "La valeur personnalisée pour une date relative par défaut, doit être un élement décrivant un temps en référence au jour actuel, en utilisant strtotime, tel que '+90 days' (90 jours à partir du jour ou le champ est créé) ou '+1 Saturday' (samedi prochain). Voir !strtotime pour plus de détails."
-
-#: date/date_admin.inc:84
-msgid "strtotime"
-msgstr "strtotime"
-
-#: date/date_admin.inc:89
-msgid "Custom value for From date"
-msgstr "Valeur personnalisée pour Date de Début"
-
-#: date/date_admin.inc:94
-msgid "Custom value for To date"
-msgstr "Valeur personnalisée pour Date de Fin"
-
-#: date/date_admin.inc:114
-msgid "Input format"
-msgstr "Format d'entrée"
-
-#: date/date_admin.inc:117
-msgid "Set the order and format for the date parts in the input form. The format will be adapted to remove values not in the granularity for this field."
-msgstr "Réglez l'ordre et le format des éléments de date dans le formulaire de saisie. Le format sera adapté afin d'enlever les valeurs non présentes dans la granularité pour ce champ."
-
-#: date/date_admin.inc:123
-msgid "Custom input format"
-msgstr "Format de saisie personnalisé"
-
-#: date/date_admin.inc:125
-msgid "The custom format, if provided, will override the input format selected above. The custom format, if provided, will override the selected display or input options. Define a php date format string like 'm-d-Y H:i' (see <a href=\"@link\">http://php.net/date</a> for more details)."
-msgstr "S'il est fourni, le format personnalisé remplacera le format de saisie sélectionné ci-dessus. S'il est fourni, le format personnalisé remplacera les options sélectionnées d'affichage ou de saisie. Définissez un format de chaîne php tel que 'd/m/Y H:i' (voir <a href=\"@link\">http://php.net/date</a> pour plus de détails)."
-
-#: date/date_admin.inc:137
-msgid "Years back and forward"
-msgstr "Années antérieures et futures"
-
-#: date/date_admin.inc:141
-msgid "Number of years to go back and forward in the year selection list, default is -3:+3."
-msgstr "Nombre d'années antérieures et futures dans la liste de sélection de l'année, la valeur par défaut étant -3:+3."
-
-#: date/date_admin.inc:144
-msgid "Time increment"
-msgstr "Incrément de temps"
-
-#: date/date_admin.inc:147
-msgid "Increment the minute and second fields by this amount."
-msgstr "Incrémente les champs minute et seconde de cette valeur"
-
-#: date/date_admin.inc:172
-msgid "Customize Date Parts"
-msgstr "Eléments de Date Personnalisés"
-
-#: date/date_admin.inc:178
-msgid "Above"
-msgstr "Au dessus"
-
-#: date/date_admin.inc:178
-msgid "Within"
-msgstr "A l'intérieur"
-
-#: date/date_admin.inc:178
-msgid "None"
-msgstr "Aucun"
-
-#: date/date_admin.inc:180
-msgid "Position of date part labels"
-msgstr "Position des étiquettes des éléments de date"
-
-#: date/date_admin.inc:181
-msgid "The location of date part labels, like 'Year', 'Month', or 'Day'. 'Above' will display them as titles above each date part. 'Within' will insert the label as the first option in the select list and in blank textfields. 'None' will not label any of the date parts. The exact text in the label is controlled by themes like 'date_part_label_year' and 'date_part_label_month'."
-msgstr "L'emplacement des étiquettes des éléments de date, telles que 'Année', 'Mois', ou 'Jour'. 'Au-dessus' les affichera en tant que titre au dessus de chaque élément de date. 'A l'intérieur' insérera l'étiquette en tant que première option de la liste déroulante et les champs texte vide. 'Aucun' n'associera pas d'étiquettes aux éléments de date. Le texte exact de l'étiquette est contrôlé par les themes, tels que 'date_part_label_year' et 'date_part_label_month'"
-
-#: date/date_admin.inc:224
-msgid "Input Type"
-msgstr "Type de saisie"
-
-#: date/date_admin.inc:224
-msgid "Select list"
-msgstr "Liste de sélection"
-
-#: date/date_admin.inc:224
-msgid "Text field"
-msgstr "Champ texte"
-
-#: date/date_admin.inc:239
-msgid "Granularity must include a year."
-msgstr "La granularité doit contenir une année"
-
-#: date/date_admin.inc:242
-msgid "Dates without hours granularity must not use any timezone handling."
-msgstr "Les dates ne possédant pas une granularité incluant les heures ne doivent pas utiliser la gestion de fuseau horaire."
-
-#: date/date_admin.inc:347
-msgid "Display a matching second date field as a 'To date'. If marked 'Optional' field will be presented but not required. If marked 'Required' the 'To date' will be required if the 'From date' is required or filled in."
-msgstr "Affiche un second champ date complémentaire en tant que 'Date de Fin'. Si marqué comme 'Optionnel', le champ sera présenté mais non obligatoire. Si marqué comme 'Obligatoire', le champ 'Date de Fin' sera obligatoire si le champ 'Date de Début' est obligatoire ou rempli"
-
-#: date/date_admin.inc:350
-msgid "To Date"
-msgstr "Date de Fin"
-
-#: date/date_admin.inc:351
-msgid "Never"
-msgstr "Jamais"
-
-#: date/date_admin.inc:351
-msgid "Optional"
-msgstr "Facultatif"
-
-#: date/date_admin.inc:351
-msgid "Required"
-msgstr "Obligatoire"
-
-#: date/date_admin.inc:360
-msgid "Set the date elements to be stored (at least a year is required)."
-msgstr "Réglage des éléments de date à stocker (au moins l'année est obligatoire)"
-
-#: date/date_admin.inc:368
-msgid "Default Display"
-msgstr "Affichage par Défaut"
-
-#: date/date_admin.inc:371
-msgid "Select a default format type to be used for the date display. Visit the <a href=\"@date-time-page\">Date and time date format page</a> to add and edit format types."
-msgstr "Sélectionnez un type de format par défaut à utiliser pour l'affichage de la date. Visitez la <a href=\"@date-time-page\"> page des Formats date et heure</a> pour ajouter et modifier les types de format."
-
-#: date/date_admin.inc:374
-msgid "Select the timezone handling method to be used for this date field."
-msgstr "Sélectionnez la méthode à utiliser pour la gestion des fuseaux horaires pour ce champ date"
-
-#: date/date_admin.inc:378
-msgid "Time zone handling"
-msgstr "Gestion des fuseaux horaires"
-
-#: date/date_admin.inc:394
-msgid "Expanded"
-msgstr "Déplié"
-
-#: date/date_admin.inc:394
-msgid "Collapsed"
-msgstr "Replié"
-
-#: date/date_admin.inc:395
-msgid "Repeat display"
-msgstr "Affichage de la Répétition"
-
-#: date/date_admin.inc:396
-msgid "Should the repeat options form start out expanded or collapsed? Set to 'Collapsed' to make those options less obtrusive."
-msgstr "Le formulaire des options de répétition doit-il s'afficher déplié ou replié dés le début ? Réglez à 'Replié' afin de rendre ces options moins intrusives."
-
-#: date/date_admin.inc:419
-msgid "Changing the %name setting after data has been created could result in the loss of data!"
-msgstr "Modifier le paramètre %name après que des données aient été créées peut entraîner la perte de données !"
-
-#: date/date_admin.inc:432
-msgid "Site's time zone"
-msgstr "Fuseau horaire du site"
-
-#: date/date_admin.inc:433
-msgid "Date's time zone"
-msgstr "Fuseau horaire du champ date"
-
-#: date/date_admin.inc:434
-msgid "User's time zone"
-msgstr "Fuseau horaire de l'utilisateur"
-
-#: date/date_admin.inc:436
-msgid "No time zone conversion"
-msgstr "Pas de conversion de fuseaux horaires"
-
-#: date/date_admin.inc:601
-msgid "Display From and To dates"
-msgstr "Afficher les dates de début et de fin"
-
-#: date/date_admin.inc:602
-msgid "Display From date only"
-msgstr "Afficher uniquement la date de début"
-
-#: date/date_admin.inc:603
-msgid "Display To date only"
-msgstr "Afficher uniquement la date de fin"
-
-#: date/date_admin.inc:622
-msgid "Show @count value(s)"
-msgstr "Afficher @count valeur(s)"
-
-#: date/date_admin.inc:644
-msgid "starting from @count"
-msgstr "en commençant à @count"
-
-#: date/date_admin.inc:666
-msgid "ending on @count"
-msgstr "se terminant le @count"
-
-#: date/date_admin.inc:695
-msgid "Display repeat rule"
-msgstr "Afficher la règle de répétition"
-
-#: date/date_admin.inc:696
-msgid "Hide repeat rule"
-msgstr "Masquer la règle de répétition"
-
-#: date/date_elements.inc:28
-msgid "A 'From date' date is required for field %field %delta."
-msgstr "Une date 'Date de début' est obligatoire pour le champ %field %delta."
-
-#: date/date_elements.inc:34
-msgid "A 'To date' is required for field %field %delta."
-msgstr "Une 'Date de fin' est obligatoire pour le champ %field %delta."
-
-#: date/date_elements.inc:331
-msgid "Empty 'To date' values will use the 'From date' values."
-msgstr "Les valeurs vides de 'Date de fin' seront remplies avec les valeurs des 'Date de début'."
-
-#: date/date_elements.inc:342
-msgid "@field_name From date value #@delta"
-msgstr "Valeur #@delta de la Date de début @field_name"
-
-#: date/date_elements.inc:344
-msgid "@field_name To date value #@delta"
-msgstr "Valeur #@delta de la Date de fin @field_name"
-
-#: date/date_elements.inc:348
-msgid "@field_name From date"
-msgstr "Date de début de @field_name"
-
-#: date/date_elements.inc:349
-msgid "@field_name To date"
-msgstr "Date de fin de @field_name"
-
-#: date/date_elements.inc:425
-msgid "Some value must be entered in the To date."
-msgstr "Une valeur doit être saisie dans le champ Date de fin."
-
-#: date/date_elements.inc:442
-msgid "The To date must be greater than the From date."
-msgstr "La Date de fin doit être supérieure à la Date de début."
-
-#: date/date_elements.inc:477
-msgid "The From date is invalid."
-msgstr "La Date de début n'est pas valide."
-
-#: date/date_elements.inc:480
-msgid "The To date is invalid."
-msgstr "La Date de fin n'est pas valide."
-
-#: date/date_elements.inc:489
-msgid "There are errors in @field_name value #@delta:"
-msgstr "Il y a des erreurs dans la valeur #@delta de @field_name :"
-
-#: date/date_elements.inc:492
-msgid "There are errors in @field_name:"
-msgstr "Il y a des erreurs dans@field_name :"
-
-#: date/date_handler_field_multiple.inc:36
-msgid "Group multiple values"
-msgstr "Grouper plusieurs valeurs"
-
-#: date/date_handler_field_multiple.inc:39
-msgid "If unchecked, each item in the field will create a new row, which may appear to cause duplicates. This setting is not compatible with click-sorting in table displays."
-msgstr "Si non coché, chaque élément du champ créera une nouvelle ligne, ce qui pourrait apparemment entraîner des doublons. Ce paramètre n'est pas compatible avec le tri par clic dans l'affichage du tableau. "
-
-#: date/date_repeat.inc:77
-msgid "The UNTIL value is required for repeating dates."
-msgstr "La valeur JUSQU'A est obligatoire pour les dates se répétant."
-
-#: date/date_token.inc:12
-msgid "The raw date value."
-msgstr "La valeur brute de la date."
-
-#: date/date_token.inc:13
-msgid "The formatted date."
-msgstr "La date formatée."
-
-#: date/date_token.inc:14
-msgid "The raw date timestamp."
-msgstr "La valeur brute de l'horodatage de la date"
-
-#: date/date_token.inc:15
-msgid "Date year (four digit)"
-msgstr "Année de la date (quatre chiffres)"
-
-#: date/date_token.inc:16
-msgid "Date year (two digit)"
-msgstr "Année de la date (deux chiffres)"
-
-#: date/date_token.inc:17
-msgid "Date month (full word)"
-msgstr "Mois de la date (mot entier)"
-
-#: date/date_token.inc:18
-msgid "Date month (abbreviated)"
-msgstr "Mois de la date (abrégé)"
-
-#: date/date_token.inc:19
-msgid "Date month (two digit, zero padded)"
-msgstr "Mois de la date (deux chiffres, zéro initial)"
-
-#: date/date_token.inc:20
-msgid "Date month (one or two digit)"
-msgstr "Mois de la date (un ou deux chiffres)"
-
-#: date/date_token.inc:21
-msgid "Date week (two digit)"
-msgstr "Semaine de la date (deux chiffres)"
-
-#: date/date_token.inc:22
-msgid "Date date (YYYY-MM-DD)"
-msgstr "Date date (YYYY-MM-DD)"
-
-#: date/date_token.inc:23
-msgid "Date day (full word)"
-msgstr "Jour de la date (mot entier)"
-
-#: date/date_token.inc:24
-msgid "Date day (abbreviation)"
-msgstr "Jour de la date (abréviation)"
-
-#: date/date_token.inc:25
-msgid "Date day (two digit, zero-padded)"
-msgstr "Jour de la date (deux chiffres, zéro initial)"
-
-#: date/date_token.inc:26
-msgid "Date day (one or two digit)"
-msgstr "Jour de la date (un ou deux chiffres)"
-
-#: date/date_token.inc:28
-msgid "If the field has a to-date defined, the same tokens exist in the form: [to-????], where ???? is the normal token."
-msgstr "Si le champ possède une date de fin définie, les même jetons existent dans le formulaire: [to-????], ???? étant le jeton normal."
-
-#: date/date.module:121
-msgid "Store a date in the database as an ISO date, recommended for historical or partial dates."
-msgstr "Stocker une date dans la base de données au format date ISO, recommandé pour des dates historiques ou partielles."
-
-#: date/date.module:125
-msgid "Store a date in the database as a timestamp, deprecated format to suppport legacy data."
-msgstr "Stocker une date dans la base de données au format timestamp, format obsolète destiné au support des données historiques."
-
-#: date/date.module:129
-msgid "Store a date in the database as a datetime field, recommended for complete dates and times that may need timezone conversion."
-msgstr "Stocker une date dans la base de données dans un champ datetime, recommandé pour des dates et heures complètes, qui peuvent avoir besoin de conversions de fuseau horaire."
-
-#: date/date.module:140
-msgid "Select List"
-msgstr "Liste Déroulante"
-
-#: date/date.module:148
-msgid "Select List with Repeat options"
-msgstr "Liste de Sélection avec options de Répétition"
-
-#: date/date.module:156
-msgid "Text Field with custom input format"
-msgstr "Champ Texte avec format de saisie personnalisé"
-
-#: date/date.module:164
-msgid "Text Field with Repeat options"
-msgstr "Champ texte avec options de Répétition"
-
-#: date/date.module:174
-msgid "Text Field with Date Pop-up calendar"
-msgstr "Champ Texte avec Pop-up Date"
-
-#: date/date.module:182
-msgid "Text Field with Date Pop-up and Repeat options"
-msgstr "Champ Texte avec Pop-up Date et options de Répétition"
-
-#: date/date.module:221
-msgid "Default"
-msgstr "Par défaut"
-
-#: date/date.module:224
-msgid "As Time Ago"
-msgstr "Comme Temps Ecoulé"
-
-#: date/date.module:420
-msgid "Complete documentation for the Date and Date API modules is available at <a href=\"@link\">http://drupal.org/node/92460</a>."
-msgstr "La documentation complète des modules Date et Date API est disponible à l'adresse <a href=\"@link\">http://drupal.org/node/92460</a>."
-
-#: date/date.module:716
-msgid "Add format type"
-msgstr "Ajouter le type de format"
-
-#: date/date.module:720
-msgid "Name"
-msgstr "Nom"
-
-#: date/date.module:721
-msgid "The human-readable name for this format type."
-msgstr "Le nom lisible par un humain de ce type de format."
-
-#: date/date.module:728
-msgid "Type"
-msgstr "Type"
-
-#: date/date.module:729
-msgid "The machine-readable name of this format type. <br>This name must contain only lowercase letters, numbers, and underscores and must be unique."
-msgstr "Le nom lisible par une machine de ce type de format.<br>Ce nom ne doit contenir que des lettres minuscules, des nombres et des underscores, et doit être unique."
-
-#: date/date.module:747
-msgid "The format type must contain only alphanumeric characters and underscores."
-msgstr "Le type de format ne doit contenir que des caractères alphanumériques et des underscores"
-
-#: date/date.module:751
-msgid "This format type already exists. Please enter a unique type."
-msgstr "Ce type de format existe déjà. Veuillez saisir un type unique."
-
-#: date/date.module:40
-msgid "view date repeats"
-msgstr "voir les répétitions de date"
-
-#: date/date.module:28
-msgid "Repeats"
-msgstr "Se répète"
-
-#: date/date.module:0
-#: date/date.theme:0
-msgid "date"
-msgstr "date"
-
-#: date/date.theme:223
-msgid "!time from now"
-msgstr "!time depuis maintenant"
-
-#: date/date.theme:228
-msgid "ongoing"
-msgstr "en cours"
-
-#: date/date.install:448
-msgid "All date fields using the jscalendar widget have been changed to use the text widget instead, since the jscalendar widget is no longer supported. Enable the Date Popup module to make a jQuery popup calendar available and edit the field settings to select it."
-msgstr "Tous les champs date utilisant le widget jscalendar ont été modifiés pour utiliser le widget texte à la place, puisque le widget jscalendar n'est plus supporté. VEuillez activer le module Date Popup pour rendre un popup calendrier jquery disponible, et éditez les réglages du champ pour le sélectionner."
-
-#: date/date.install:485
-msgid "All repeating date fields have been updated to use the new repeating widgets."
-msgstr "Tous les champs date avec répétition ont été mis à jour pour utiliser les nouveaux widgets de répétition."
-
-#: date/date.install:530
-msgid "The database has been updated to correct the stored timezone for fields using timezone 'none'."
-msgstr "La base de données a été mise à jour pour corriger le fuseau horaire stocké pour les champs utilisant le fuseau horaire 'aucun'."
-
-#: date/date.install:545
-msgid "Some updates are still pending. Please return to <a href=\"@update-php\">update.php</a> and run the remaining updates."
-msgstr "Des mises à jour sont toujours en attente. Veuillez retourner sur <a href=\"@update-php\">update.php</a> et exécuter les mises à jour restarntes."
-
-#: date/date.install:546
-msgid "Some updates are still pending.<br/>Please re-run the update script."
-msgstr "Des mises à jour sont toujours en attente.<br/>Veuillez ré-exécuter le script de mise à jour."
-
-#: date/date.install:565
-msgid "Time"
-msgstr "Date"
-
-#: date/date.install:566
-msgid "Time with timezone"
-msgstr "Heure avec fuseau horaire"
-
-#: date/date.install:567
-msgid "iCal"
-msgstr "iCal"
-
-#: date/date.install:568
-msgid "Timestamp"
-msgstr "Horodatage"
-
-#: date/date.install:569
-msgid "Feed"
-msgstr "Flux"
-
-#: date/date.install:570
-msgid "ISO"
-msgstr "ISO"
-
-#: date/date.install:651
-msgid "Field %field formats were converted to custom formats."
-msgstr "Les formats du champ %field ont été convertis aux formats personnalisés."
-
-#: date/date.install:654
-msgid "The old format type %from_format for field %field was converted to the new format type %to_format."
-msgstr "L'ancien type de format %from_format du champ %field a été converti au nouveau type de format %to_format."
-
-#: date/date.install:680
-msgid "The display settings for field %field in content type %type_name were updated."
-msgstr "Les paramètres d'affichage du champ %field dans le type de contenu %type_name ont été mis à jour."
-
-#: date/date.install:709
-msgid "Date display formats are now included with the system date and time settings. Please visit <a href=\"@date-time-page\">the Date and time format page</a> to see the new format types."
-msgstr "Les formats d'affichage de date sont maintenant inclus dans les paramètres date et heure du système. Veuillez visiter <a href=\"@date-time-page\">la page Format date et heure</a> pour voir les nouveaux types de format."
-
-#: date/date.info:0
-#: date_tools/date_tools.module:114;133;409
-#: includes/date_api.views.inc:127;128;137;138
-msgid "Date"
-msgstr "Date"
-
-#: date/date.info:0
-msgid "Defines CCK date/time fields and widgets."
-msgstr "Définit des champs et widgets CCK date/heure"
-
diff --git a/date/translations/date.hu.po b/date/translations/date.hu.po
deleted file mode 100644
index d6b9dfd..0000000
--- a/date/translations/date.hu.po
+++ /dev/null
@@ -1,446 +0,0 @@
-# Hungarian translation of Date (6.x-2.4)
-# Copyright (c) 2009 by the Hungarian translation team
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Date (6.x-2.4)\n"
-"POT-Creation-Date: 2009-11-10 14:25+0000\n"
-"PO-Revision-Date: 2009-11-05 15:36+0000\n"
-"Language-Team: Hungarian\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n!=1);\n"
-
-msgid "Type"
-msgstr "Típus"
-msgid "None"
-msgstr "Nincs"
-msgid "Required"
-msgstr "Szükséges"
-msgid "Feed"
-msgstr "Hírcsatorna"
-msgid "Name"
-msgstr "Név"
-msgid "Default"
-msgstr "Alapértelmezés"
-msgid "Blank"
-msgstr "Üres"
-msgid "Time increment"
-msgstr "Idő növelése"
-msgid "Time"
-msgstr "Idő"
-msgid "Timestamp"
-msgstr "Időbélyeg"
-msgid "Expanded"
-msgstr "Nyitott"
-msgid "Never"
-msgstr "Soha"
-msgid "Input format"
-msgstr "Beviteli forma"
-msgid "As Time Ago"
-msgstr "Eltelt idő"
-msgid "Optional"
-msgstr "Nem szükséges"
-msgid "Collapsed"
-msgstr "Összecsukott"
-msgid "iCal"
-msgstr "iCal"
-msgid "Site's time zone"
-msgstr "A webhely időzónája"
-msgid "Date's time zone"
-msgstr "A dátum időzónája"
-msgid "No time zone conversion"
-msgstr "Nincs időzóna-átalakítás"
-msgid "Select List"
-msgstr "Legördülő lista"
-msgid "Years back and forward must be in the format -9:+9."
-msgstr "A vissza és előre mutató éveket -9:+9 formában kell megadni."
-msgid ""
-"Set the order and format for the date parts in the input form. The "
-"format will be adapted to remove values not in the granularity for "
-"this field."
-msgstr ""
-"A dátumrészek sorrendjének és formátumának beállítása a "
-"beviteli űrlapon. A formátum úgy lesz igazítva, hogy eltávolítja "
-"azokat az értékeket amik nem felelnek meg a mező finomsági "
-"beállításainak."
-msgid "Years back and forward"
-msgstr "Évek vissza és előre"
-msgid "Increment the minute and second fields by this amount."
-msgstr "A perc és a másodperc mezők növelése ezzel a mennyiséggel."
-msgid "Input Type"
-msgstr "Bevitel típusa"
-msgid "Select list"
-msgstr "Legördülő lista"
-msgid "Text field"
-msgstr "Szövegmező"
-msgid "Dates without hours granularity must not use any timezone handling."
-msgstr ""
-"Az óra szintű finomság nélküli dátumoknak nem kell időzóna "
-"kezelést használniuk."
-msgid "To Date"
-msgstr "Záró dátum"
-msgid ""
-"Display a matching second date field as a 'To date'. If marked "
-"'Optional' field will be presented but not required. If marked "
-"'Required' the 'To date' will be required if the 'From date' is "
-"required or filled in."
-msgstr ""
-"Megjelenít egy illeszkedő, második mezőt „Záró dátum” "
-"címkével. Ha a „Nem szükséges“ mező van bejelölve, akkor "
-"megjelenik de nem kötelező. Ha a „Szükséges” mező van "
-"bejelölve, akkor a „Záró dátum” kitöltése kötelező abban "
-"az esetben, ha a „Kezdő dátum” mező megadása szükséges, vagy "
-"ki van töltve."
-msgid "Set the date elements to be stored (at least a year is required)."
-msgstr ""
-"A tárolandó dátumrészek beállítása (legalább az évet be kell "
-"állítani)."
-msgid "Default Display"
-msgstr "Alapértelmezés szerinti megjelenítés"
-msgid "Time zone handling"
-msgstr "Időzóna-kezelés"
-msgid "Select the timezone handling method to be used for this date field."
-msgstr ""
-"Ehhez a dátummezőhöz használt időzóna kezelési módszerének "
-"kiválasztása."
-msgid "ISO"
-msgstr "ISO"
-msgid "Default value"
-msgstr "Alapértelmezés szerinti érték"
-msgid "The Strtotime default value is invalid."
-msgstr ""
-"Az <em>strtotime</em> alapértelmezés szerinti értéke "
-"érvénytelen."
-msgid "The Strtotime default value for the To Date is invalid."
-msgstr ""
-"Az <em>strtotime</em> alapértelmezés szerinti értéke a záró "
-"dátum mezőben érvénytelen."
-msgid "Relative"
-msgstr "Relatív"
-msgid ""
-"A default value to use for this field. If you select 'Relative', add "
-"details below."
-msgstr ""
-"A mező alapértelmezés szerinti értéke. Ha a „Relatív” van "
-"kiválasztva, akkor lejjebb lehet megadni a részleteket."
-msgid "Customize Default Value"
-msgstr "Alapértelmezés szerinti érték testreszabása"
-msgid "strtotime"
-msgstr "strtotime"
-msgid "Custom value for From date"
-msgstr "Egyéni kezdő dátum érték"
-msgid "Default value for To date"
-msgstr "Alapértelmezés szerinti záró dátum érték"
-msgid "Same as From date"
-msgstr "Ugyanaz mint a kezdő dátum"
-msgid "Custom value for To date"
-msgstr "Egyéni záró dátum érték"
-msgid ""
-"Number of years to go back and forward in the year selection list, "
-"default is -3:+3."
-msgstr ""
-"Az év legördülő listában megjelenő vissza és előre mutató "
-"évek száma, az alapértelmezés szerinti értéke -3:+3."
-msgid "Customize Date Parts"
-msgstr "Dátumrészek testreszabása"
-msgid "Above"
-msgstr "Felette"
-msgid "Within"
-msgstr "Belül"
-msgid "Position of date part labels"
-msgstr "Dátumrész címkék helyzete"
-msgid ""
-"The location of date part labels, like 'Year', 'Month', or 'Day'. "
-"'Above' will display them as titles above each date part. 'Within' "
-"will insert the label as the first option in the select list and in "
-"blank textfields. 'None' will not label any of the date parts. The "
-"exact text in the label is controlled by themes like "
-"'date_part_label_year' and 'date_part_label_month'."
-msgstr ""
-"A dátumrészek „Év”, „Hónap”, „Nap” címkéinek "
-"helyzete. A „Felette” címekként jeleníti meg őket a "
-"dátumrészek felett. A „Belül” első választásként illeszti "
-"be őket a legördülő listába és az üres szövegmezőkbe. A "
-"„Nincs'” nem címkézi a dátumrészeket. A címke pontos szövege "
-"a sminkben szabályozható a „date_part_label_year” és a "
-"„date_part_label_month” használatával."
-msgid "User's time zone"
-msgstr "A felhasználó időzónája"
-msgid "Empty 'To date' values will use the 'From date' values."
-msgstr ""
-"Üres „Záró dátum” érték esetén a „Kezdő dátum” "
-"értéke lesz felhasználva."
-msgid "The UNTIL value is required for repeating dates."
-msgstr ""
-"Az „Eddig” érték megadása kötelező az ismétlődő "
-"dátumoknál."
-msgid "The raw date value."
-msgstr "A nyers dátum érték."
-msgid "The formatted date."
-msgstr "A formázott dátum."
-msgid "The raw date timestamp."
-msgstr "A nyers időbélyeg."
-msgid "Date year (four digit)"
-msgstr "Dátum év (négy számjegy)"
-msgid "Date year (two digit)"
-msgstr "Dátum év (két számjegy)"
-msgid "Date month (full word)"
-msgstr "Dátum hónap (teljes szó)"
-msgid "Date month (abbreviated)"
-msgstr "Dátum hónap (rövidített)"
-msgid "Date month (two digit, zero padded)"
-msgstr "Dátum hónap (két számjegy, előnullázva)"
-msgid "Date month (one or two digit)"
-msgstr "Dátum hónap (egy vagy két számjegy)"
-msgid "Date week (two digit)"
-msgstr "Dátum hét (két számjegy)"
-msgid "Date day (full word)"
-msgstr "Dátum nap (teljes szó)"
-msgid "Date day (abbreviation)"
-msgstr "Dátum nap (rövidített)"
-msgid "Date day (two digit, zero-padded)"
-msgstr "Dátum nap (két számjegy, előnullázva)"
-msgid "Date day (one or two digit)"
-msgstr "Dátum nap (egy vagy két számjegy)"
-msgid ""
-"If the field has a to-date defined, the same tokens exist in the form: "
-"[to-????], where ???? is the normal token."
-msgstr ""
-"Ha a mezőnek van megadott céldátuma, akkor az ugyanolyan "
-"vezérjelek elérhetők az űrlapon: [to-????], ahol ???? a normál "
-"vezérjel."
-msgid ""
-"Store a date in the database as an ISO date, recommended for "
-"historical or partial dates."
-msgstr ""
-"Dátum tárolása az adatbázisban ISO dátumként. Történelmi és "
-"részleges dátumokhoz javasolt."
-msgid ""
-"Store a date in the database as a timestamp, deprecated format to "
-"suppport legacy data."
-msgstr ""
-"Dátum tárolása az adatbázisban időbélyegként. Elavult formátum "
-"az örökölt adatok támogatására."
-msgid ""
-"Store a date in the database as a datetime field, recommended for "
-"complete dates and times that may need timezone conversion."
-msgstr ""
-"Dátum tárolása az adatbázisban <em>datetime</em> mezőként. Olyan "
-"teljes dátumokhoz és időkhöz javasolt, ahol szükség lehet az "
-"időzóna átalakítására."
-msgid "Defines CCK date/time fields and widgets."
-msgstr "CCK dátum/idő mezőket és felületi elemeket határoz meg."
-msgid "Group multiple values"
-msgstr "Többszörös értékek csoportosítása"
-msgid "Show @count value(s)"
-msgstr "@count értéket mutat"
-msgid "starting from @count"
-msgstr "@count értékről kezdve"
-msgid "Granularity must include a year."
-msgstr "A finomságnak az évet tartalmaznia kell."
-msgid "Repeat display"
-msgstr "Ismétlődés megjelenítés"
-msgid "Some value must be entered in the To date."
-msgstr "Valamilyen értéket meg kell adni a záró dátumnak."
-msgid "The dates are invalid."
-msgstr "A dátumok hibásak."
-msgid "The To date must be greater than the From date."
-msgstr "A záró dátumnak nagyobbnak kell lennie a kezdő dátumnál."
-msgid "Date date (YYYY-MM-DD)"
-msgstr "Dátum (ÉÉÉÉ-HH-NN)"
-msgid "Date datetime (YYYY-MM-DDTHH:MM:SS)"
-msgstr "Dátum és idő (ÉÉÉÉ-HH-NN ÓÓ:PP:MM)"
-msgid "Time H:i"
-msgstr "Idő Ó:p"
-msgid "Repeats"
-msgstr "Ismétlődések"
-msgid "Text Field with custom input format"
-msgstr "Szövegmező egyéni beviteli formával"
-msgid ""
-"All date fields using the jscalendar widget have been changed to use "
-"the text widget instead, since the jscalendar widget is no longer "
-"supported. Enable the Date Popup module to make a jQuery popup "
-"calendar available and edit the field settings to select it."
-msgstr ""
-"Minden <em>jscalendar</em> felületi elemet használó dátummező "
-"úgy lett módosítva, hogy a szöveges felületi elemet használja, "
-"mivel a <em>jscalendar</em> felületi elem már nem támogatott. A "
-"<em>Date Popup</em> modul engedélyezésével elérhetővé tehető "
-"egy <em>jQuery</em> felugró naptár, amit a mező beállításainak "
-"szerkesztésével lehet kiválasztani."
-msgid ""
-"The database has been updated to correct the stored timezone for "
-"fields using timezone 'none'."
-msgstr ""
-"Az adatbázis módosítva lett, hogy kijavítsa a tárolt "
-"időzónákat a „nincs” időzónát használó mezőknél."
-msgid ""
-"The custom value for a Relative default should be something that "
-"describes a time by reference to the current day using strtotime, like "
-"'+90 days' (90 days from the day the field is created) or '+1 "
-"Saturday' (the next Saturday). See !strtotime for more details."
-msgstr ""
-"A „Relatív” alapértelmezés egyéni értékének olyannak kell "
-"lennie, ami az <em>strtotime</em> használatával az aktuális naptól "
-"viszonyítva, meghatároz egy időpontot, mint pl.: „+90 nap” (90 "
-"nap a mező létrehozása óta) vagy „+1 szombat” (a következő "
-"szombat) formában. További részletek: !strtotime."
-msgid "Custom input format"
-msgstr "Egyéni beviteli forma"
-msgid ""
-"The custom format, if provided, will override the input format "
-"selected above. The custom format, if provided, will override the "
-"selected display or input options. Define a php date format string "
-"like 'm-d-Y H:i' (see <a href=\"@link\">http://php.net/date</a> for "
-"more details)."
-msgstr ""
-"Ha meg van adva az egyéni formátum, akkor az felülírja a fentebb "
-"kiválasztott beviteli formát, és a kiválasztott megjelenítési "
-"vagy bemeneti beállításokat. Egy „m-d-Y H:i” alakú PHP "
-"dátumformátum kifejezést kell meghatározni (további részletek: "
-"<a href=\"@link\">http://php.net/date</a>)."
-msgid ""
-"Select a default format type to be used for the date display. Visit "
-"the <a href=\"@date-time-page\">Date and time date format page</a> to "
-"add and edit format types."
-msgstr ""
-"A dátum megjelenítéséhez használt alapértelmezés szerinti "
-"formátumtípus kiválasztása. A <a href=\"@date-time-page\">Dátum "
-"és időformátumok oldalon</a> lehet formátumtípusokat hozzáadni "
-"és szerkeszteni."
-msgid ""
-"Should the repeat options form start out expanded or collapsed? Set to "
-"'Collapsed' to make those options less obtrusive."
-msgstr ""
-"Az ismétlődési beállítások űrlap kezdetben nyitottan vagy "
-"zártan jelenjen meg? Az „összecsukott” ezt a beállítást "
-"kevésbé feltűnővé teszi."
-msgid ""
-"Changing the %name setting after data has been created could result in "
-"the loss of data!"
-msgstr ""
-"%name beállításainak módosítása már létező adatok esetén "
-"adatvesztést eredményezhet!"
-msgid "Display From and To dates"
-msgstr "Kezdő és záródátum megjelenítése"
-msgid "Display From date only"
-msgstr "Csak a kezdő dátum megjelenítése"
-msgid "Display To date only"
-msgstr "Csak a záró dátum megjelenítése"
-msgid "ending on @count"
-msgstr "befejezve ezen @count"
-msgid "Display repeat rule"
-msgstr "Ismétlődési szabály megjelenítése"
-msgid "Hide repeat rule"
-msgstr "Ismétlődési szabály elrejtése"
-msgid "A 'From date' date is required for field %field %delta."
-msgstr ""
-"%field %delta mezőhöz egy „Kezdő dátum” dátum megadása "
-"szükséges."
-msgid "A 'To date' is required for field %field %delta."
-msgstr ""
-"%field %delta mezőhöz egy „Záró dátum” dátum megadása "
-"szükséges."
-msgid "@field_name From date value #@delta"
-msgstr "@field_name kezdő dátum érték #@delta"
-msgid "@field_name To date value #@delta"
-msgstr "@field_name záró dátum érték #@delta"
-msgid "@field_name From date"
-msgstr "@field_name kezdő dátum"
-msgid "@field_name To date"
-msgstr "@field_name záró dátum"
-msgid "The From date is invalid."
-msgstr "A kezdő dátum érvénytelen."
-msgid "The To date is invalid."
-msgstr "A záró dátum érvénytelen."
-msgid "There are errors in @field_name value #@delta:"
-msgstr "Hibák vannak @field_name mező #@delta értékében:"
-msgid "There are errors in @field_name:"
-msgstr "@field_name mezőben hibák vannak:"
-msgid ""
-"If unchecked, each item in the field will create a new row, which may "
-"appear to cause duplicates. This setting is not compatible with "
-"click-sorting in table displays."
-msgstr ""
-"Ha nincs bejelölve, akkor minden elem a mezőben új sort hoz létre, "
-"mely duplikációk megjelenését okozhatja. Ez a beállítás nem "
-"fér össze a kattintásos rendezéssel a táblázatos megjelenésben."
-msgid "Select List with Repeat options"
-msgstr "Legördülő lista ismétlődési beállításokkal"
-msgid "Text Field with Repeat options"
-msgstr "Szövegmező ismétlődési beállításokkal"
-msgid "Text Field with Date Pop-up calendar"
-msgstr "Szövegmező felugró dátum naptárral"
-msgid "Text Field with Date Pop-up and Repeat options"
-msgstr "Szövegmező felugró dátummal és ismétlődési beállításokkal"
-msgid ""
-"Complete documentation for the Date and Date API modules is available "
-"at <a href=\"@link\">http://drupal.org/node/92460</a>."
-msgstr ""
-"A <em>Date</em> és a <em>Date API</em> modulok teljes "
-"dokumentációja elérhető a <a "
-"href=\"@link\">http://drupal.org/node/92460</a> címen."
-msgid "Add format type"
-msgstr "Formátumtípus hozzáadása"
-msgid "The human-readable name for this format type."
-msgstr "A formátumtípus emberek számára olvasható neve."
-msgid ""
-"The machine-readable name of this format type. <br>This name must "
-"contain only lowercase letters, numbers, and underscores and must be "
-"unique."
-msgstr ""
-"A formátumtípus programok számára olvasható neve. <br />A név "
-"csak kisbetűket, számokat és aláhúzást tartalmazhat, továbbá "
-"egyedinek kell lennie."
-msgid ""
-"The format type must contain only alphanumeric characters and "
-"underscores."
-msgstr "A formátumtípus csak betűket és aláhúzást tartalmazhat."
-msgid "This format type already exists. Please enter a unique type."
-msgstr "Ez a formátumtípus már létezik. Egyedi nevet kell megadni."
-msgid "view date repeats"
-msgstr "dátum ismétlődések megtekintése"
-msgid ""
-"All repeating date fields have been updated to use the new repeating "
-"widgets."
-msgstr ""
-"Minden ismétlődő dátummező frissítve lett, hogy az új "
-"ismétlődő felületi elemet használja."
-msgid ""
-"Some updates are still pending. Please return to <a "
-"href=\"@update-php\">update.php</a> and run the remaining updates."
-msgstr ""
-"Néhány frissítés még függőben van. Vissza kell térni az <a "
-"href=\"@update-php\">update.php</a> oldalra és a fennmaradó "
-"frissítéseket le kell futtatni."
-msgid "Some updates are still pending.<br/>Please re-run the update script."
-msgstr ""
-"Néhány frissítés még függőben van.<br />A frissítő programot "
-"újra kell futtatni."
-msgid "Time with timezone"
-msgstr "Idő időzónával"
-msgid "Field %field formats were converted to custom formats."
-msgstr "%field mezőformátumok át lettek alakítva egyéni formátumokra."
-msgid ""
-"The old format type %from_format for field %field was converted to the "
-"new format type %to_format."
-msgstr ""
-"%field mező régi %from_format formátumtípusa átalakítva az új "
-"%to_format formátumtípusra."
-msgid ""
-"The display settings for field %field in content type %type_name were "
-"updated."
-msgstr ""
-"%type_name tartalomtípus %field mezőjének megjelenítési "
-"beállítása frissítve lett."
-msgid ""
-"Date display formats are now included with the system date and time "
-"settings. Please visit <a href=\"@date-time-page\">the Date and time "
-"format page</a> to see the new format types."
-msgstr ""
-"A dátum megjelenítési formátumai most tartalmazzák a "
-"rendszerdátum és -idő beállításokat is. A <a "
-"href=\"@date-time-page\">Dátum és idő formátum oldal</a>-on "
-"megtekinthetők az új formátumtípusok."
diff --git a/date/translations/date.pot b/date/translations/date.pot
deleted file mode 100644
index 27c44a4..0000000
--- a/date/translations/date.pot
+++ /dev/null
@@ -1,562 +0,0 @@
-# $Id$
-#
-# LANGUAGE translation of Drupal (date)
-# Copyright YEAR NAME <EMAIL@ADDRESS>
-# Generated from files:
-# date_admin.inc,v 1.40.2.3.2.38 2009/03/03 15:16:54 karens
-# date_elements.inc,v 1.46.2.2.2.52 2009/02/27 15:47:39 karens
-# date_handler_field_multiple.inc,v 1.1.2.12 2009/02/27 14:48:34 karens
-# date_repeat.inc,v 1.22.2.1.2.22 2009/02/21 12:53:25 karens
-# date_token.inc,v 1.2.2.1.2.5 2009/01/06 22:48:31 karens
-# date.module,v 1.61.2.4.2.52 2009/02/27 17:05:20 karens
-# date.theme,v 1.6.4.42 2009/03/01 22:35:22 karens
-# date.install,v 1.37.2.5.2.26 2009/02/15 11:32:48 karens
-# date.info,v 1.3 2008/02/18 19:32:28 karens
-# date_tools.module,v 1.1.2.10 2009/02/27 15:04:28 karens
-# date_api.views.inc,v 1.1.2.6 2008/11/30 13:58:27 karens
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PROJECT VERSION\n"
-"POT-Creation-Date: 2009-03-07 19:12+0100\n"
-"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
-"Last-Translator: NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: date/date_admin.inc:25
-msgid "The Strtotime default value is invalid."
-msgstr ""
-
-#: date/date_admin.inc:31
-msgid "The Strtotime default value for the To Date is invalid."
-msgstr ""
-
-#: date/date_admin.inc:35
-msgid "Years back and forward must be in the format -9:+9."
-msgstr ""
-
-#: date/date_admin.inc:70
-msgid "Default value"
-msgstr ""
-
-#: date/date_admin.inc:72;78
-msgid "Blank"
-msgstr ""
-
-#: date/date_admin.inc:72;78
-msgid "Relative"
-msgstr ""
-
-#: date/date_admin.inc:73;79
-msgid "A default value to use for this field. If you select 'Relative', add details below."
-msgstr ""
-
-#: date/date_admin.inc:76
-msgid "Default value for To date"
-msgstr ""
-
-#: date/date_admin.inc:78
-msgid "Same as From date"
-msgstr ""
-
-#: date/date_admin.inc:83
-msgid "Customize Default Value"
-msgstr ""
-
-#: date/date_admin.inc:84
-msgid "The custom value for a Relative default should be something that describes a time by reference to the current day using strtotime, like '+90 days' (90 days from the day the field is created) or '+1 Saturday' (the next Saturday). See !strtotime for more details."
-msgstr ""
-
-#: date/date_admin.inc:84
-msgid "strtotime"
-msgstr ""
-
-#: date/date_admin.inc:89
-msgid "Custom value for From date"
-msgstr ""
-
-#: date/date_admin.inc:94
-msgid "Custom value for To date"
-msgstr ""
-
-#: date/date_admin.inc:114
-msgid "Input format"
-msgstr ""
-
-#: date/date_admin.inc:117
-msgid "Set the order and format for the date parts in the input form. The format will be adapted to remove values not in the granularity for this field."
-msgstr ""
-
-#: date/date_admin.inc:123
-msgid "Custom input format"
-msgstr ""
-
-#: date/date_admin.inc:125
-msgid "The custom format, if provided, will override the input format selected above. The custom format, if provided, will override the selected display or input options. Define a php date format string like 'm-d-Y H:i' (see <a href=\"@link\">http://php.net/date</a> for more details)."
-msgstr ""
-
-#: date/date_admin.inc:137
-msgid "Years back and forward"
-msgstr ""
-
-#: date/date_admin.inc:141
-msgid "Number of years to go back and forward in the year selection list, default is -3:+3."
-msgstr ""
-
-#: date/date_admin.inc:144
-msgid "Time increment"
-msgstr ""
-
-#: date/date_admin.inc:147
-msgid "Increment the minute and second fields by this amount."
-msgstr ""
-
-#: date/date_admin.inc:172
-msgid "Customize Date Parts"
-msgstr ""
-
-#: date/date_admin.inc:178
-msgid "Above"
-msgstr ""
-
-#: date/date_admin.inc:178
-msgid "Within"
-msgstr ""
-
-#: date/date_admin.inc:178
-msgid "None"
-msgstr ""
-
-#: date/date_admin.inc:180
-msgid "Position of date part labels"
-msgstr ""
-
-#: date/date_admin.inc:181
-msgid "The location of date part labels, like 'Year', 'Month', or 'Day'. 'Above' will display them as titles above each date part. 'Within' will insert the label as the first option in the select list and in blank textfields. 'None' will not label any of the date parts. The exact text in the label is controlled by themes like 'date_part_label_year' and 'date_part_label_month'."
-msgstr ""
-
-#: date/date_admin.inc:224
-msgid "Input Type"
-msgstr ""
-
-#: date/date_admin.inc:224
-msgid "Select list"
-msgstr ""
-
-#: date/date_admin.inc:224
-msgid "Text field"
-msgstr ""
-
-#: date/date_admin.inc:239
-msgid "Granularity must include a year."
-msgstr ""
-
-#: date/date_admin.inc:242
-msgid "Dates without hours granularity must not use any timezone handling."
-msgstr ""
-
-#: date/date_admin.inc:347
-msgid "Display a matching second date field as a 'To date'. If marked 'Optional' field will be presented but not required. If marked 'Required' the 'To date' will be required if the 'From date' is required or filled in."
-msgstr ""
-
-#: date/date_admin.inc:350
-msgid "To Date"
-msgstr ""
-
-#: date/date_admin.inc:351
-msgid "Never"
-msgstr ""
-
-#: date/date_admin.inc:351
-msgid "Optional"
-msgstr ""
-
-#: date/date_admin.inc:351
-msgid "Required"
-msgstr ""
-
-#: date/date_admin.inc:360
-msgid "Set the date elements to be stored (at least a year is required)."
-msgstr ""
-
-#: date/date_admin.inc:368
-msgid "Default Display"
-msgstr ""
-
-#: date/date_admin.inc:371
-msgid "Select a default format type to be used for the date display. Visit the <a href=\"@date-time-page\">Date and time date format page</a> to add and edit format types."
-msgstr ""
-
-#: date/date_admin.inc:374
-msgid "Select the timezone handling method to be used for this date field."
-msgstr ""
-
-#: date/date_admin.inc:378
-msgid "Time zone handling"
-msgstr ""
-
-#: date/date_admin.inc:394
-msgid "Expanded"
-msgstr ""
-
-#: date/date_admin.inc:394
-msgid "Collapsed"
-msgstr ""
-
-#: date/date_admin.inc:395
-msgid "Repeat display"
-msgstr ""
-
-#: date/date_admin.inc:396
-msgid "Should the repeat options form start out expanded or collapsed? Set to 'Collapsed' to make those options less obtrusive."
-msgstr ""
-
-#: date/date_admin.inc:419
-msgid "Changing the %name setting after data has been created could result in the loss of data!"
-msgstr ""
-
-#: date/date_admin.inc:432
-msgid "Site's time zone"
-msgstr ""
-
-#: date/date_admin.inc:433
-msgid "Date's time zone"
-msgstr ""
-
-#: date/date_admin.inc:434
-msgid "User's time zone"
-msgstr ""
-
-#: date/date_admin.inc:436
-msgid "No time zone conversion"
-msgstr ""
-
-#: date/date_admin.inc:601
-msgid "Display From and To dates"
-msgstr ""
-
-#: date/date_admin.inc:602
-msgid "Display From date only"
-msgstr ""
-
-#: date/date_admin.inc:603
-msgid "Display To date only"
-msgstr ""
-
-#: date/date_admin.inc:622
-msgid "Show @count value(s)"
-msgstr ""
-
-#: date/date_admin.inc:644
-msgid "starting from @count"
-msgstr ""
-
-#: date/date_admin.inc:666
-msgid "ending on @count"
-msgstr ""
-
-#: date/date_admin.inc:695
-msgid "Display repeat rule"
-msgstr ""
-
-#: date/date_admin.inc:696
-msgid "Hide repeat rule"
-msgstr ""
-
-#: date/date_elements.inc:28
-msgid "A 'From date' date is required for field %field %delta."
-msgstr ""
-
-#: date/date_elements.inc:34
-msgid "A 'To date' is required for field %field %delta."
-msgstr ""
-
-#: date/date_elements.inc:331
-msgid "Empty 'To date' values will use the 'From date' values."
-msgstr ""
-
-#: date/date_elements.inc:342
-msgid "@field_name From date value #@delta"
-msgstr ""
-
-#: date/date_elements.inc:344
-msgid "@field_name To date value #@delta"
-msgstr ""
-
-#: date/date_elements.inc:348
-msgid "@field_name From date"
-msgstr ""
-
-#: date/date_elements.inc:349
-msgid "@field_name To date"
-msgstr ""
-
-#: date/date_elements.inc:425
-msgid "Some value must be entered in the To date."
-msgstr ""
-
-#: date/date_elements.inc:442
-msgid "The To date must be greater than the From date."
-msgstr ""
-
-#: date/date_elements.inc:477
-msgid "The From date is invalid."
-msgstr ""
-
-#: date/date_elements.inc:480
-msgid "The To date is invalid."
-msgstr ""
-
-#: date/date_elements.inc:489
-msgid "There are errors in @field_name value #@delta:"
-msgstr ""
-
-#: date/date_elements.inc:492
-msgid "There are errors in @field_name:"
-msgstr ""
-
-#: date/date_handler_field_multiple.inc:36
-msgid "Group multiple values"
-msgstr ""
-
-#: date/date_handler_field_multiple.inc:39
-msgid "If unchecked, each item in the field will create a new row, which may appear to cause duplicates. This setting is not compatible with click-sorting in table displays."
-msgstr ""
-
-#: date/date_repeat.inc:77
-msgid "The UNTIL value is required for repeating dates."
-msgstr ""
-
-#: date/date_token.inc:12
-msgid "The raw date value."
-msgstr ""
-
-#: date/date_token.inc:13
-msgid "The formatted date."
-msgstr ""
-
-#: date/date_token.inc:14
-msgid "The raw date timestamp."
-msgstr ""
-
-#: date/date_token.inc:15
-msgid "Date year (four digit)"
-msgstr ""
-
-#: date/date_token.inc:16
-msgid "Date year (two digit)"
-msgstr ""
-
-#: date/date_token.inc:17
-msgid "Date month (full word)"
-msgstr ""
-
-#: date/date_token.inc:18
-msgid "Date month (abbreviated)"
-msgstr ""
-
-#: date/date_token.inc:19
-msgid "Date month (two digit, zero padded)"
-msgstr ""
-
-#: date/date_token.inc:20
-msgid "Date month (one or two digit)"
-msgstr ""
-
-#: date/date_token.inc:21
-msgid "Date week (two digit)"
-msgstr ""
-
-#: date/date_token.inc:22
-msgid "Date date (YYYY-MM-DD)"
-msgstr ""
-
-#: date/date_token.inc:23
-msgid "Date day (full word)"
-msgstr ""
-
-#: date/date_token.inc:24
-msgid "Date day (abbreviation)"
-msgstr ""
-
-#: date/date_token.inc:25
-msgid "Date day (two digit, zero-padded)"
-msgstr ""
-
-#: date/date_token.inc:26
-msgid "Date day (one or two digit)"
-msgstr ""
-
-#: date/date_token.inc:28
-msgid "If the field has a to-date defined, the same tokens exist in the form: [to-????], where ???? is the normal token."
-msgstr ""
-
-#: date/date.module:121
-msgid "Store a date in the database as an ISO date, recommended for historical or partial dates."
-msgstr ""
-
-#: date/date.module:125
-msgid "Store a date in the database as a timestamp, deprecated format to suppport legacy data."
-msgstr ""
-
-#: date/date.module:129
-msgid "Store a date in the database as a datetime field, recommended for complete dates and times that may need timezone conversion."
-msgstr ""
-
-#: date/date.module:140
-msgid "Select List"
-msgstr ""
-
-#: date/date.module:148
-msgid "Select List with Repeat options"
-msgstr ""
-
-#: date/date.module:156
-msgid "Text Field with custom input format"
-msgstr ""
-
-#: date/date.module:164
-msgid "Text Field with Repeat options"
-msgstr ""
-
-#: date/date.module:174
-msgid "Text Field with Date Pop-up calendar"
-msgstr ""
-
-#: date/date.module:182
-msgid "Text Field with Date Pop-up and Repeat options"
-msgstr ""
-
-#: date/date.module:221
-msgid "Default"
-msgstr ""
-
-#: date/date.module:224
-msgid "As Time Ago"
-msgstr ""
-
-#: date/date.module:420
-msgid "Complete documentation for the Date and Date API modules is available at <a href=\"@link\">http://drupal.org/node/92460</a>."
-msgstr ""
-
-#: date/date.module:716
-msgid "Add format type"
-msgstr ""
-
-#: date/date.module:720
-msgid "Name"
-msgstr ""
-
-#: date/date.module:721
-msgid "The human-readable name for this format type."
-msgstr ""
-
-#: date/date.module:728
-msgid "Type"
-msgstr ""
-
-#: date/date.module:729
-msgid "The machine-readable name of this format type. <br>This name must contain only lowercase letters, numbers, and underscores and must be unique."
-msgstr ""
-
-#: date/date.module:747
-msgid "The format type must contain only alphanumeric characters and underscores."
-msgstr ""
-
-#: date/date.module:751
-msgid "This format type already exists. Please enter a unique type."
-msgstr ""
-
-#: date/date.module:40
-msgid "view date repeats"
-msgstr ""
-
-#: date/date.module:28
-msgid "Repeats"
-msgstr ""
-
-#: date/date.module:0 date/date.theme:0
-msgid "date"
-msgstr ""
-
-#: date/date.theme:223
-msgid "!time from now"
-msgstr ""
-
-#: date/date.theme:228
-msgid "ongoing"
-msgstr ""
-
-#: date/date.install:448
-msgid "All date fields using the jscalendar widget have been changed to use the text widget instead, since the jscalendar widget is no longer supported. Enable the Date Popup module to make a jQuery popup calendar available and edit the field settings to select it."
-msgstr ""
-
-#: date/date.install:485
-msgid "All repeating date fields have been updated to use the new repeating widgets."
-msgstr ""
-
-#: date/date.install:530
-msgid "The database has been updated to correct the stored timezone for fields using timezone 'none'."
-msgstr ""
-
-#: date/date.install:545
-msgid "Some updates are still pending. Please return to <a href=\"@update-php\">update.php</a> and run the remaining updates."
-msgstr ""
-
-#: date/date.install:546
-msgid "Some updates are still pending.<br/>Please re-run the update script."
-msgstr ""
-
-#: date/date.install:565
-msgid "Time"
-msgstr ""
-
-#: date/date.install:566
-msgid "Time with timezone"
-msgstr ""
-
-#: date/date.install:567
-msgid "iCal"
-msgstr ""
-
-#: date/date.install:568
-msgid "Timestamp"
-msgstr ""
-
-#: date/date.install:569
-msgid "Feed"
-msgstr ""
-
-#: date/date.install:570
-msgid "ISO"
-msgstr ""
-
-#: date/date.install:651
-msgid "Field %field formats were converted to custom formats."
-msgstr ""
-
-#: date/date.install:654
-msgid "The old format type %from_format for field %field was converted to the new format type %to_format."
-msgstr ""
-
-#: date/date.install:680
-msgid "The display settings for field %field in content type %type_name were updated."
-msgstr ""
-
-#: date/date.install:709
-msgid "Date display formats are now included with the system date and time settings. Please visit <a href=\"@date-time-page\">the Date and time format page</a> to see the new format types."
-msgstr ""
-
-#: date/date.info:0 date_tools/date_tools.module:114;133;409 includes/date_api.views.inc:127;128;137;138
-msgid "Date"
-msgstr ""
-
-#: date/date.info:0
-msgid "Defines CCK date/time fields and widgets."
-msgstr ""
-