mirror of
https://github.com/Prominence/grails-translations-plugin.git
synced 2026-07-03 02:36:46 +03:00
Changed domain models. Added page for changing translations (just a model).
Added tag lib.
This commit is contained in:
@@ -3,9 +3,9 @@ package by.prominence.translations
|
||||
class Bundle {
|
||||
|
||||
String name
|
||||
List<File> propertiesList = new ArrayList<>()
|
||||
List<Language> languages = new ArrayList<>()
|
||||
|
||||
public void addPropertyFile(File file) {
|
||||
propertiesList.add(file)
|
||||
public void addLanguage(Language lang) {
|
||||
languages.add(lang)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
package by.prominence.translations
|
||||
|
||||
class BundleProperties {
|
||||
|
||||
Bundle bundle
|
||||
Properties properties
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package by.prominence.translations
|
||||
|
||||
class Language {
|
||||
|
||||
Map translations = [:]
|
||||
Bundle bundle
|
||||
String languageTag
|
||||
|
||||
File languageFile
|
||||
}
|
||||
Reference in New Issue
Block a user