mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Transifex support
This commit is contained in:
parent
479325a5bc
commit
ddbd0e0e3f
8
.tx/config
Normal file
8
.tx/config
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[main]
|
||||||
|
host = https://www.transifex.com
|
||||||
|
|
||||||
|
[silverstripe-sortablegridfield.master]
|
||||||
|
file_filter = lang/<lang>.yml
|
||||||
|
source_file = lang/en.yml
|
||||||
|
source_lang = en
|
||||||
|
type = YML
|
@ -56,3 +56,11 @@ When you're reporting an issue please ensure you specify what version of SilverS
|
|||||||
```php
|
```php
|
||||||
$config->addComponent(new GridFieldSortableRows('SortOrder'), 'GridFieldManyRelationHandler');
|
$config->addComponent(new GridFieldSortableRows('SortOrder'), 'GridFieldManyRelationHandler');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
### Translations
|
||||||
|
|
||||||
|
Translations of the natural language strings are managed through a third party translation interface, transifex.com. Newly added strings will be periodically uploaded there for translation, and any new translations will be merged back to the project source code.
|
||||||
|
|
||||||
|
Please use [https://www.transifex.com/projects/p/silverstripe-sortablegridfield](https://www.transifex.com/projects/p/silverstripe-sortablegridfield) to contribute translations, rather than sending pull requests with YAML files.
|
@ -1,4 +1,4 @@
|
|||||||
en:
|
en:
|
||||||
GridFieldSortableRows:
|
GridFieldSortableRows:
|
||||||
ALLOW_DRAG_DROP: "Allow Drag and Drop"
|
ALLOW_DRAG_DROP: 'Allow drag and drop re-ordering'
|
||||||
EditPermissionsFailure: "No edit permissions"
|
EditPermissionsFailure: 'No edit permissions'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="extra sortablerowsheading" colspan="$Colspan">
|
<th class="extra sortablerowsheading" colspan="$Colspan">
|
||||||
<div class="gridfield-sortablerows">
|
<div class="gridfield-sortablerows">
|
||||||
<input type="checkbox" id="{$ID}_AllowDragDropCheck" value="1" class="no-change-track"$Checked/> <label for="{$ID}_AllowDragDropCheck"><%t GridFieldSortableRows.ALLOW_DRAG_DROP "_Allow drag and drop re-ordering" %></label>
|
<input type="checkbox" id="{$ID}_AllowDragDropCheck" value="1" class="no-change-track"$Checked/> <label for="{$ID}_AllowDragDropCheck"><%t GridFieldSortableRows.ALLOW_DRAG_DROP "Allow drag and drop re-ordering" %></label>
|
||||||
$SortableToggle
|
$SortableToggle
|
||||||
$SortOrderSave
|
$SortOrderSave
|
||||||
$SortToPage
|
$SortToPage
|
||||||
|
Loading…
Reference in New Issue
Block a user