diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/core.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/core.go b/core/core.go index 71738a8..d35f9bf 100644 --- a/core/core.go +++ b/core/core.go @@ -19,6 +19,8 @@ import ( "os" "path/filepath" "sync" + + "golang.nytpu.com/comitium/localizations" ) // Global instance of FullData @@ -35,9 +37,13 @@ var Header string // Timeout for requests var Timeout int +var Localizer *localizations.Localizer + // have to do this instead of the automatically called init() because // initialization stuff requires parsing of command line args first -func Init(dataPath string) error { +func Init(dataPath string, localizer *localizations.Localizer) error { + Localizer = localizer + // initialize comitium.json & data maps f, err := os.Open(filepath.Join(dataPath, "comitium.json")) if err == nil { |
