diff options
author | Struan Donald <struan@exo.org.uk> | 2017-08-04 17:32:15 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-10 11:30:41 +0100 |
commit | 6db4832ad660a942c77a246b366c224c09d66b9f (patch) | |
tree | 464be7f9e058866efcd49dc51a2789cfacf72bb0 /t/app/controller/admin.t | |
parent | cc3e99fa9878bfb722e61d4a09d94839b152c5b7 (diff) |
fetch and create translation methods for translatable
Add a `translation_for` method and an `add_transation` method to
Translatable to help hide the details when editing and listing
translations.
`translation_for` returns all translations if only passed a column or a
single translation if passed with a column and a language.
`add_translation` will add, or update, a translation if passed in the
column, language and string.
Diffstat (limited to 't/app/controller/admin.t')
0 files changed, 0 insertions, 0 deletions