diff --git a/.tx/config b/.tx/config new file mode 100644 index 0000000..7606310 --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[silverstripe-sortablegridfield.master] +file_filter = lang/.yml +source_file = lang/en.yml +source_lang = en +type = YML \ No newline at end of file diff --git a/README.md b/README.md index d641910..1793ba8 100644 --- a/README.md +++ b/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'); - ``` \ No newline at end of file + ``` + +## 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. \ No newline at end of file diff --git a/lang/en.yml b/lang/en.yml index 8ec6249..3826b77 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -1,4 +1,4 @@ en: GridFieldSortableRows: - ALLOW_DRAG_DROP: "Allow Drag and Drop" - EditPermissionsFailure: "No edit permissions" \ No newline at end of file + ALLOW_DRAG_DROP: 'Allow drag and drop re-ordering' + EditPermissionsFailure: 'No edit permissions' diff --git a/templates/Includes/GridFieldSortableRows.ss b/templates/Includes/GridFieldSortableRows.ss index 02386c4..d97a70d 100644 --- a/templates/Includes/GridFieldSortableRows.ss +++ b/templates/Includes/GridFieldSortableRows.ss @@ -1,7 +1,7 @@
- + $SortableToggle $SortOrderSave $SortToPage