Translation cart in Translation Management Tool 7
The translation cart can collect multiple source items of different types which are meant for translation into a list. The list then provides functionality to request translation of the items into multiple target languages.
Each source can easily plug into the cart system utilising the tmgmt_ui_add_cart_form() on either the source overview page as well as the translate tab.
File
- ./
tmgmt.api.php, line 261 - Hooks provided by the Translation Management module.
Functions
Name | Location | Description |
---|---|---|
tmgmt_ui_add_cart_form |
ui/ |
Adds add to cart form elements. |
tmgmt_ui_cart_content |
ui/ |
Form constructor for cart form. |
tmgmt_ui_cart_empty_cart_form_submit |
ui/ |
Custom form submit callback for tmgmt_ui_cart_cart_form(). |
tmgmt_ui_cart_remove_selected_form_submit |
ui/ |
Custom form submit callback for tmgmt_ui_cart_cart_form(). |
tmgmt_ui_cart_request_translation_form_submit |
ui/ |
Custom form submit callback for tmgmt_ui_cart_cart_form(). |
tmgmt_ui_cart_source_overview_validate |
ui/ |
Cart form validation callback for the source overview. |
tmgmt_ui_source_add_to_cart_submit |
ui/ |
Submit handler to add items into the cart. |
Classes
Name | Location | Description |
---|---|---|
TMGMTJobItemUICart |
ui/ |
Represents a job item cart. |