Commit 90067a44 authored by Mingsong Hu's avatar Mingsong Hu

Issue #3165143 friendly button text

parent 13f9f384
......@@ -4,9 +4,11 @@ namespace Drupal\fullcalendar_view;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\StringTranslation\StringTranslationTrait;
class FullcalendarViewPreprocess {
use StringTranslationTrait;
protected static $viewIndex = 0;
/**
* Process the view variable array.
......@@ -327,6 +329,12 @@ class FullcalendarViewPreprocess {
'editable' => $options['updateAllowed'] !== 0,
'eventLimit' => true, // Allow "more" link when too many events.
'eventOverlap' => $options['allowEventOverlap'] !== 0,
'buttonText' => [
'listMonth' => $this->t('List Month'),
'listYear' => $this->t('List Year'),
'listWeek' => $this->t('List Week'),
'listDay' => $this->t('List Day'),
],
];
// Dialog options.
// Other modules can override following options by custom plugin.
......
Markdown is supported
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