Changed domain models. Added page for changing translations (just a model).

Added tag lib.
This commit is contained in:
Prominence
2016-06-27 17:22:08 +03:00
parent f1eda4f146
commit bde8905bfa
13 changed files with 146 additions and 23 deletions
@@ -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
}