mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Merge branch '1'
This commit is contained in:
commit
5287ebcbe5
@ -5,7 +5,7 @@
|
|||||||
var parentName=$(this).attr('name');
|
var parentName=$(this).attr('name');
|
||||||
this.rewriteWidgetAreaAttributes();
|
this.rewriteWidgetAreaAttributes();
|
||||||
|
|
||||||
var availableWidgets=$('#availableWidgets-'+$(this).attr('name')).children().each(function() {
|
var availableWidgets=$('#availableWidgets-'+parentName).children().each(function() {
|
||||||
// Don't run on comments, whitespace, etc
|
// Don't run on comments, whitespace, etc
|
||||||
if($(this)[0].nodeType==1) {
|
if($(this)[0].nodeType==1) {
|
||||||
// Gotta change their ID's because otherwise we get clashes between two tabs
|
// Gotta change their ID's because otherwise we get clashes between two tabs
|
||||||
|
@ -14,4 +14,4 @@ ar:
|
|||||||
WidgetDescription_ss:
|
WidgetDescription_ss:
|
||||||
CLICKTOADDWIDGET: 'اضغط لإضافة هذا التطبيق المصغر'
|
CLICKTOADDWIDGET: 'اضغط لإضافة هذا التطبيق المصغر'
|
||||||
WidgetEditor_ss:
|
WidgetEditor_ss:
|
||||||
DELETE: 'مسح'
|
DELETE: مسح
|
||||||
|
@ -15,3 +15,5 @@ en:
|
|||||||
CLICKTOADDWIDGET: 'Click to add this widget'
|
CLICKTOADDWIDGET: 'Click to add this widget'
|
||||||
WidgetEditor_ss:
|
WidgetEditor_ss:
|
||||||
DELETE: Delete
|
DELETE: Delete
|
||||||
|
WidgetPageExtension:
|
||||||
|
INHERITSIDEBAR: 'Inherit Sidebar From Parent'
|
||||||
|
22
lang/zh.yml
22
lang/zh.yml
@ -1,17 +1,17 @@
|
|||||||
zh:
|
zh:
|
||||||
Widget:
|
Widget:
|
||||||
PLURALNAME: '小工具'
|
PLURALNAME: 小工具
|
||||||
SINGULARNAME: '小工具'
|
SINGULARNAME: 小工具
|
||||||
WidgetArea:
|
WidgetArea:
|
||||||
PLURALNAME: '小工具区域'
|
PLURALNAME: 小工具区域
|
||||||
SINGULARNAME: '小工具区域'
|
SINGULARNAME: 小工具区域
|
||||||
WidgetAreaEditor_ss:
|
WidgetAreaEditor_ss:
|
||||||
AVAILABLE: '可用的小工具'
|
AVAILABLE: 可用的小工具
|
||||||
AVAILWIDGETS: '点击下方的小工具名称即可在此页上使用。'
|
AVAILWIDGETS: 点击下方的小工具名称即可在此页上使用。
|
||||||
INUSE: '当前使用的小工具'
|
INUSE: 当前使用的小工具
|
||||||
NOAVAIL: '目前没有可用小工具。'
|
NOAVAIL: 目前没有可用小工具。
|
||||||
TOSORT: '要对本页当前使用的小工具进行排序,请像上下拖拽。'
|
TOSORT: 要对本页当前使用的小工具进行排序,请像上下拖拽。
|
||||||
WidgetDescription_ss:
|
WidgetDescription_ss:
|
||||||
CLICKTOADDWIDGET: '点击添加该小工具'
|
CLICKTOADDWIDGET: 点击添加该小工具
|
||||||
WidgetEditor_ss:
|
WidgetEditor_ss:
|
||||||
DELETE: '删除'
|
DELETE: 删除
|
||||||
|
@ -35,7 +35,7 @@ class WidgetPageExtension extends DataExtension
|
|||||||
{
|
{
|
||||||
$fields->addFieldToTab(
|
$fields->addFieldToTab(
|
||||||
"Root.Widgets",
|
"Root.Widgets",
|
||||||
new CheckboxField("InheritSideBar", 'Inherit Sidebar From Parent')
|
new CheckboxField("InheritSideBar", _t(__CLASS__ . '.INHERITSIDEBAR', 'Inherit Sidebar From Parent'))
|
||||||
);
|
);
|
||||||
$fields->addFieldToTab(
|
$fields->addFieldToTab(
|
||||||
"Root.Widgets",
|
"Root.Widgets",
|
||||||
|
Loading…
Reference in New Issue
Block a user