mirror of
https://github.com/Prominence/grails-translations-plugin.git
synced 2026-07-03 10:46:45 +03:00
Changed domain models. Added page for changing translations (just a model).
Added tag lib.
This commit is contained in:
+21
@@ -26,4 +26,25 @@ class TranslationsOverviewController {
|
||||
render view: 'show', model: [bundle: bundle]
|
||||
}
|
||||
|
||||
def edit() {
|
||||
|
||||
if (!params.bundleName) {
|
||||
redirect action: 'index'
|
||||
return
|
||||
}
|
||||
|
||||
Bundle bundle = bundleService.findBundleByName(params.bundleName as String)
|
||||
|
||||
if (!bundle) {
|
||||
render view: 'index', model: [message: g.message(code: 'plugin.translations.error.bundleNotFound', args: [params.bundleName as String])]
|
||||
return
|
||||
}
|
||||
|
||||
render view: 'edit', model: [bundle: bundle]
|
||||
}
|
||||
|
||||
def saveFile() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user