Skip to content
Browse files

Transifex support

  • Loading branch information...
1 parent 479325a commit ddbd0e0e3f4134defff49f5d6db9717feea3c4f9 @chillu chillu committed Oct 24, 2013
Showing with 20 additions and 4 deletions.
  1. +8 −0 .tx/config
  2. +9 −1 README.md
  3. +2 −2 lang/en.yml
  4. +1 −1 templates/Includes/GridFieldSortableRows.ss
View
8 .tx/config
@@ -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
View
10 README.md
@@ -55,4 +55,12 @@ When you're reporting an issue please ensure you specify what version of SilverS
```php
$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.
View
4 lang/en.yml
@@ -1,4 +1,4 @@
en:
GridFieldSortableRows:
- ALLOW_DRAG_DROP: "Allow Drag and Drop"
- EditPermissionsFailure: "No edit permissions"
+ ALLOW_DRAG_DROP: 'Allow drag and drop re-ordering'
+ EditPermissionsFailure: 'No edit permissions'
View
2 templates/Includes/GridFieldSortableRows.ss
@@ -1,7 +1,7 @@
<tr>
<th class="extra sortablerowsheading" colspan="$Colspan">
<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
$SortOrderSave
$SortToPage

0 comments on commit ddbd0e0

Please sign in to comment.
Something went wrong with that request. Please try again.