Permalink
Browse files

BUGFIX Fixed incorrect lables "TOADD" etc in WidgetAreaEditor (from r…

…97507)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102719 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 32bdc74 commit 869e1d7774067df48a642beeb84c4a3ecc4ec0bb @chillu chillu committed Apr 13, 2010
Showing with 3 additions and 7 deletions.
  1. +0 −4 code/WidgetAreaEditor.php
  2. +3 −3 templates/WidgetAreaEditor.ss
View
4 code/WidgetAreaEditor.php
@@ -13,11 +13,7 @@ class WidgetAreaEditor extends FormField {
public $ToAddTitle;
function __construct($name, $widgetClasses = array('Widget'), $maxWidgets = 0) {
- $this->InUseTitle = _t('WidgetAreaEditor.ss', 'INUSE');
- $this->AvailableTitle = _t('WidgetAreaEditor.ss', 'AVAILABLE');
- $this->ToAddTitle = _t('WidgetAreaEditor.ss', 'TOADD');
$this->MaxWidgets = $maxWidgets;
-
$this->widgetClasses = $widgetClasses;
parent::__construct($name);
View
6 templates/WidgetAreaEditor.ss
@@ -1,7 +1,7 @@
<div class="WidgetAreaEditor" id="WidgetAreaEditor-$Name" name="$Name"<% if MaxWidgets %> maxwidgets="$MaxWidgets"<% end_if %>>
<input type="hidden" id="$Name" name="$IdxField" value="$Value" />
<div class="availableWidgetsHolder">
- <h2>$AvailableTitle</h2>
+ <h2><% _t('AVAILABLE', 'Available Widgets') %></h2>
<p>&nbsp;</p>
<div class="availableWidgets" id="availableWidgets-$Name">
<% if AvailableWidgets %>
@@ -16,8 +16,8 @@
</div>
</div>
<div class="usedWidgetsHolder">
- <h2>$InUseTitle</h2>
- <p>$ToAddTitle</p>
+ <h2><% _t('INUSE', 'Widgets currently used') %></h2>
+ <p><% _t('TOADD', 'To add widgets, click on the purple header on the left') %></p>
<div class="usedWidgets" id="usedWidgets-$Name">
<% if UsedWidgets %>

0 comments on commit 869e1d7

Please sign in to comment.