From: Michael Vogel Date: Sun, 27 Sep 2015 12:00:15 +0000 (+0200) Subject: Internationalisation of events/Move events to the navigation bar X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c33957a6e9dc83e376db6712138da893f8c9fca7;p=friendica.git Internationalisation of events/Move events to the navigation bar --- diff --git a/include/nav.php b/include/nav.php index e7f51cc0c0..f3dec64bff 100644 --- a/include/nav.php +++ b/include/nav.php @@ -138,6 +138,8 @@ function nav_info(&$a) { elseif(get_config('system','community_page_style') == CP_GLOBAL_COMMUNITY) $nav['community'] = array('community', t('Community'), "", t('Conversations on the network')); + $nav['events'] = Array('events', t('Events'), "", t('Events and Calendar')); + $nav['directory'] = array($gdirpath, t('Directory'), "", t('People directory')); $nav['about'] = Array('friendica', t('Information'), "", t('Information about this friendica instance')); diff --git a/mod/events.php b/mod/events.php index 242f27f135..ff61514170 100644 --- a/mod/events.php +++ b/mod/events.php @@ -184,9 +184,60 @@ function events_content(&$a) { if( feature_enabled(local_user(), 'richtext') ) $editselect = 'textareas'; + // First day of the week (0 = Sunday) + // To-Do: Needs to be configurable + $firstDay = 0; + + $i18n = array( + "firstDay" => $firstDay, + "Sun" => t("Sun"), + "Mon" => t("Mon"), + "Tue" => t("Tue"), + "Wed" => t("Wed"), + "Thu" => t("Thu"), + "Fri" => t("Fri"), + "Sat" => t("Sat"), + "Sunday" => t("Sunday"), + "Monday" => t("Monday"), + "Tuesday" => t("Tuesday"), + "Wednesday" => t("Wednesday"), + "Thursday" => t("Thursday"), + "Friday" => t("Friday"), + "Saturday" => t("Saturday"), + "Jan" => t("Jan"), + "Feb" => t("Feb"), + "Mar" => t("Mar"), + "Apr" => t("Apr"), + "May" => t("May"), + "Jun" => t("Jun"), + "Jul" => t("Jul"), + "Aug" => t("Aug"), + "Sep" => t("Sept"), + "Oct" => t("Oct"), + "Nov" => t("Nov"), + "Dec" => t("Dec"), + "January" => t("January"), + "February" => t("February"), + "March" => t("March"), + "April" => t("April"), + "May" => t("May"), + "June" => t("June"), + "July" => t("July"), + "August" => t("August"), + "September" => t("September"), + "October" => t("October"), + "November" => t("November"), + "December" => t("December"), + "today" => t("today"), + "month" => t("month"), + "week" => t("week"), + "day" => t("day"), + ); + $htpl = get_markup_template('event_head.tpl'); $a->page['htmlhead'] .= replace_macros($htpl,array( '$baseurl' => $a->get_baseurl(), + '$i18n' => $i18n, '$editselect' => $editselect )); diff --git a/view/templates/event_head.tpl b/view/templates/event_head.tpl index a96e5aff31..ceb251a9e2 100644 --- a/view/templates/event_head.tpl +++ b/view/templates/event_head.tpl @@ -1,7 +1,7 @@ + src="{{$baseurl}}/library/fullcalendar/fullcalendar.min.js"> + src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js">