aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-20 16:39:55 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-20 16:39:55 +0100
commita3e47d26f617f06b3f9c8221a5240b3387131ddd (patch)
treee0ed81f7c4fc659044df2c50f60d5bd05fb1e5f2
parent7b459ec3558107a2f8ae685cd4ce847f74f821e6 (diff)
downloadvolse-hubzilla-a3e47d26f617f06b3f9c8221a5240b3387131ddd.tar.gz
volse-hubzilla-a3e47d26f617f06b3f9c8221a5240b3387131ddd.tar.bz2
volse-hubzilla-a3e47d26f617f06b3f9c8221a5240b3387131ddd.zip
make calendar language aware
-rwxr-xr-xmod/events.php4
-rwxr-xr-xview/tpl/event_head.tpl2
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/events.php b/mod/events.php
index 53284e7a9..c3731bf1c 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -280,11 +280,11 @@ function events_content(&$a) {
// $plaintext = false;
-
$htpl = get_markup_template('event_head.tpl');
$a->page['htmlhead'] .= replace_macros($htpl,array(
'$baseurl' => $a->get_baseurl(),
- '$editselect' => (($plaintext) ? 'none' : 'textareas')
+ '$editselect' => (($plaintext) ? 'none' : 'textareas'),
+ '$lang' => $a->language
));
$o ="";
diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl
index d7734af3c..346dfb154 100755
--- a/view/tpl/event_head.tpl
+++ b/view/tpl/event_head.tpl
@@ -38,7 +38,7 @@
$('#events-calendar').fullCalendar({
events: '{{$baseurl}}/events/json',
header: false,
- //lang: 'de',
+ lang: '{{$lang}}',
eventLimit: 3,
height: 'auto',