Commit 0dfba845 authored by Chris Shantz's avatar Chris Shantz
Browse files

Merge branch 'ISTWCMS-2117-translation' into 7.x-2.x

parents d5b4b6f8 f4fd1534
# $Id$
#
# Chinese, Simplified translation of Drupal (general)
# Copyright YEAR NAME <EMAIL@ADDRESS>
# Generated from files:
# uw_ct_event.context.inc: n/a
# uw_ct_event.features.field_instance.inc: n/a
# uw_ct_event.views_default.inc: n/a
# uw_ct_event.features.inc: n/a
# uw_ct_event.info: n/a
# uw_ct_event.features.menu_links.inc: n/a
# uw_ct_event.field_group.inc: n/a
# uw_ct_event.module: n/a
# uw_ct_event.install: n/a
# templates/calendar-mini.tpl.php: n/a
# templates/date-views-pager.tpl.php: n/a
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2017-06-06 09:29-0400\n"
"PO-Revision-Date: 2017-06-06 09:29-0400\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: French <EMAIL@ADDRESS>\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"
#: uw_ct_event.views_default.inc:158
msgid "Events by type"
msgstr "Événements par type"
msgid "Events by date"
msgstr "Événements par date"
#: uw_ct_event.views_default.inc:160;1579;3007;3838;4294;4722
msgid "Apply"
msgstr "Appliquer"
#: uw_ct_event.views_default.inc:161;1580;3008;3839;4295;4723
msgid "Reset"
msgstr "Réinitialiser"
#: uw_ct_event.views_default.inc:1577;3005;3836 uw_ct_event.module:418;636
msgid "Events"
msgstr "Événements"
#: uw_ct_event.views_default.inc:1584;3012;3844
msgid "All"
msgstr "Tout"
#: uw_ct_event.views_default.inc:1585;3013
msgid "Events - List"
msgstr "Evénements - Liste"
#: uw_ct_event.views_default.inc:1587;3015;4300
msgid "- All -"
msgstr "- Tout - "
#: uw_ct_event.views_default.inc:1593;3023;3848
msgid "<p>No events found.</p>"
msgstr "<p>Aucun événement trouvé.</p>"
#: uw_ct_event.views_default.inc:1594;3024
msgid "Dates"
msgstr "Rendez-vous"
#: uw_ct_event.views_default.inc:1606;3036
msgid "Events - Archive"
msgstr "Événements - Archive"
#: uw_ct_event.views_default.inc:3851
msgid "No events found."
msgstr "Aucun événement trouvé."
#: uw_ct_event.module:326
msgid "Events by audience"
msgstr "Événements par public"
#: uw_ct_event.module:426
msgid "All upcoming events"
msgstr "Tous les événements à venir"
msgid "Current and upcoming"
msgstr "Actuel et à venir"
msgid "Past"
msgstr "Passé"
msgid "- Any -"
msgstr "- Tout -"
# $Id$
#
# Chinese, Simplified translation of Drupal (general)
# Copyright YEAR NAME <EMAIL@ADDRESS>
# Generated from files:
# uw_ct_event.context.inc: n/a
# uw_ct_event.features.field_instance.inc: n/a
# uw_ct_event.views_default.inc: n/a
# uw_ct_event.features.inc: n/a
# uw_ct_event.info: n/a
# uw_ct_event.features.menu_links.inc: n/a
# uw_ct_event.field_group.inc: n/a
# uw_ct_event.module: n/a
# uw_ct_event.install: n/a
# templates/calendar-mini.tpl.php: n/a
# templates/date-views-pager.tpl.php: n/a
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2017-06-06 09:29-0400\n"
"PO-Revision-Date: 2017-06-06 09:29-0400\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese, Simplified <EMAIL@ADDRESS>\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"
#: uw_ct_event.context.inc:42;88;127
msgid "Content"
msgstr "内容"
#: uw_ct_event.features.field_instance.inc:1372 uw_ct_event.views_default.inc:1596;3026;3846;4735
msgid "Audience"
msgstr "观众"
#: uw_ct_event.features.field_instance.inc:1389 uw_ct_event.views_default.inc:4317
msgid "Title"
msgstr "标题"
#: uw_ct_event.features.field_instance.inc:1390 uw_ct_event.views_default.inc:1595;3025;3845;4337
msgid "Type"
msgstr "类型"
#: uw_ct_event.features.inc:42
msgid "Event Title"
msgstr "活动标题"
#: uw_ct_event.views_default.inc:158
msgid "Events by type"
msgstr "按类型查阅"
msgid "Events by date"
msgstr "按日期查阅"
#: uw_ct_event.views_default.inc:159;1578;3006;3837;4340;4721
msgid "more"
msgstr "更多"
#: uw_ct_event.views_default.inc:160;1579;3007;3838;4294;4722
msgid "Apply"
msgstr "提交"
#: uw_ct_event.views_default.inc:161;1580;3008;3839;4295;4723
msgid "Reset"
msgstr "重启"
#: uw_ct_event.views_default.inc:1577;3005;3836 uw_ct_event.module:418;636
msgid "Events"
msgstr "活动"
#: uw_ct_event.views_default.inc:1584;3012;3844
msgid "All"
msgstr "全部"
#: uw_ct_event.views_default.inc:1585;3013
msgid "Events - List"
msgstr "活动 - 列表"
#: uw_ct_event.views_default.inc:1587;3015;4300
msgid "- All -"
msgstr "- 全部 - "
#: uw_ct_event.views_default.inc:1589;3017;4302
msgid "« first"
msgstr "« 第一页"
#: uw_ct_event.views_default.inc:1590;3018;4303
msgid "‹ previous"
msgstr "‹ 前一页"
#: uw_ct_event.views_default.inc:1591;3019;4304
msgid "next ›"
msgstr "下一页 ›"
#: uw_ct_event.views_default.inc:1592;3020;4305
msgid "last »"
msgstr "最后一页 »"
#: uw_ct_event.views_default.inc:1593;3023;3848
msgid "<p>No events found.</p>"
msgstr "<p>没有找到任何活动。</p>"
#: uw_ct_event.views_default.inc:1594;3024
msgid "Dates"
msgstr "日期"
#: uw_ct_event.views_default.inc:1606;3036
msgid "Events - Archive"
msgstr "活动 - 档案"
msgid "Year"
msgstr "年"
#: uw_ct_event.views_default.inc:3843
msgid "Month"
msgstr "月"
#: uw_ct_event.views_default.inc:3847
msgid "Day"
msgstr "日"
#: uw_ct_event.views_default.inc:3851
msgid "No events found."
msgstr "没有找到任何活动。"
#: uw_ct_event.module:326
msgid "Events by audience"
msgstr "按观众查阅"
#: uw_ct_event.module:426
msgid "All upcoming events"
msgstr "查看所有即将到来的活动"
#: uw_ct_event.module:693;699
msgid "URL"
msgstr "网址"
#: templates/calendar-mini.tpl.php:44
msgid "Return to current month"
msgstr "返回当月"
#: templates/date-views-pager.tpl.php:64
msgctxt "date_nav"
msgid "Previous"
msgstr "下一个"
#: templates/date-views-pager.tpl.php:90
msgctxt "date_nav"
msgid "Next"
msgstr "上一个"
msgid "Current and upcoming"
msgstr "当前和即将到来"
msgid "Past"
msgstr "过去"
msgid "- Any -"
msgstr "全部"
msgid "Conference"
msgstr "会议"
msgid "Information session"
msgstr "信息会议"
msgid "Lecture"
msgstr "演讲"
msgid "Open house"
msgstr "对外开放"
msgid "Performance"
msgstr "性能"
msgid "Reception"
msgstr "接待"
msgid "Reunion"
msgstr "重聚 "
msgid "Seminar"
msgstr "研讨会"
msgid "Thesis defence"
msgstr "论文答辩"
msgid "Workshop"
msgstr "专题讨论会"
......@@ -277,7 +277,7 @@ function uw_ct_event_field_default_field_bases() {
),
),
'entity_translation_sync' => FALSE,
'options_list_callback' => 'title_taxonomy_allowed_values',
'options_list_callback' => 'i18n_taxonomy_allowed_values',
),
'translatable' => 0,
'type' => 'taxonomy_term_reference',
......@@ -308,7 +308,7 @@ function uw_ct_event_field_default_field_bases() {
),
),
'entity_translation_sync' => FALSE,
'options_list_callback' => 'title_taxonomy_allowed_values',
'options_list_callback' => 'i18n_taxonomy_allowed_values',
),
'translatable' => 0,
'type' => 'taxonomy_term_reference',
......
......@@ -16,6 +16,8 @@ function uw_ct_event_taxonomy_default_vocabularies() {
'hierarchy' => 0,
'module' => 'taxonomy',
'weight' => 0,
'language' => 'und',
'i18n_mode' => 0,
'rdf_mapping' => array(
'rdftype' => array(
0 => 'skos:ConceptScheme',
......@@ -39,6 +41,8 @@ function uw_ct_event_taxonomy_default_vocabularies() {
'hierarchy' => 0,
'module' => 'taxonomy',
'weight' => 0,
'language' => 'und',
'i18n_mode' => 0,
'rdf_mapping' => array(
'rdftype' => array(
0 => 'skos:ConceptScheme',
......
......@@ -334,6 +334,7 @@ function uw_ct_event_block_info() {
* Implements hook_block_view().
*/
function uw_ct_event_block_view($delta = '') {
global $language;
global $theme_key;
$block = array();
......@@ -366,21 +367,51 @@ function uw_ct_event_block_view($delta = '') {
$date_end = strtotime($record->field_event_date_value2);
// Start and end on same date. "Nov. 24, 2005"
if (date('Y-m-d', $date_start) === date('Y-m-d', $date_end)) {
$date_formatted = t(uw_month_name_short(date('n', $date_start))) . '&nbsp;' . date('j, Y', $date_start);
if ($language->language === 'en') {
$date_formatted= uw_month_name_short(date('n', $date_start)) . '&nbsp;' . date('j, Y', $date_start);
}
else {
$date_formatted = format_date($date_start, 'custom', t('M j, Y', array(), array('context' => 'php date format')));
}
}
elseif (date('Y', $date_start) === date('Y', $date_end)) {
// Same month and year, different day. "Nov. 24-26, 2005"
if (date('m', $date_start) === date('m', $date_end)) {
$date_formatted = t(uw_month_name_short(date('n', $date_start))) . '&nbsp;' . date('j', $date_start) . ' to ' . date('j, Y', $date_end);
if ($language->language === 'en') {
$date_formatted = uw_month_name_short(date('n', $date_start)) . '&nbsp;' . date('j', $date_start) . ' to ' . date('j, Y', $date_end);
}
else {
$date_formatted = format_date($date_start, 'custom', t('M', array(), array('context' => 'php date format')))
. '&nbsp;'
. format_date($date_start, 'custom', t('j', array(), array('context' => 'php date format')))
. '&nbsp;' . t('to') . '&nbsp;'
. format_date($date_end, 'custom', t('j, Y', array(), array('context' => 'php date format')));
}
}
// Same year. "Nov. 24 to Dec. 2, 2005"
else {
$date_formatted = t(uw_month_name_short(date('n', $date_start))) . '&nbsp;' . date('j', $date_start) . ' to ' . t(uw_month_name_short(date('n', $date_end))) . '&nbsp;' . date('j, Y', $date_end);
if ($language->language === 'en') {
$date_formatted = t(uw_month_name_short(date('n', $date_start))) . '&nbsp;' . date('j', $date_start) . ' to ' . t(uw_month_name_short(date('n', $date_end))) . '&nbsp;' . date('j, Y', $date_end);
}
else {
$date_formatted = format_date($date_start, 'custom', t('M', array(), array('context' => 'php date format')))
. '&nbsp;'
. format_date($date_start, 'custom', t('j', array(), array('context' => 'php date format')))
. '&nbsp;' . t('to') . '&nbsp;'
. format_date($date_end, 'custom', t('M j, Y', array(), array('context' => 'php date format')));
}
}
}
// Fully different dates."Nov. 24, 2005 to Jan. 2, 2006"
else {
$date_formatted = t(uw_month_name_short(date('n', $date_start))) . '&nbsp;' . date('j, Y', $date_start) . ' to ' . t(uw_month_name_short(date('n', $date_end))) . '&nbsp;' . date('j, Y', $date_end);
if ($language->language === 'en') {
$date_formatted = t(uw_month_name_short(date('n', $date_start))) . '&nbsp;' . date('j, Y', $date_start) . ' to ' . t(uw_month_name_short(date('n', $date_end))) . '&nbsp;' . date('j, Y', $date_end);
}
else {
$date_formatted = format_date($date_start, 'custom', t('M j, Y', array(), array('context' => 'php date format')))
. '&nbsp;' . t('to') . '&nbsp;'
. format_date($date_end, 'custom', t('M j, Y', array(), array('context' => 'php date format')));
}
}
$items[$count] = "";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment