From 8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Tue, 19 Jan 2016 22:00:01 -0600 Subject: PLT-7 Adding translation function to context --- mattermost.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mattermost.go') diff --git a/mattermost.go b/mattermost.go index d96a24313..9786a6abd 100644 --- a/mattermost.go +++ b/mattermost.go @@ -50,14 +50,15 @@ func main() { parseCmds() utils.LoadConfig(flagConfigFile) + utils.InitTranslations() if flagRunCmds { utils.ConfigureCmdLineLog() } pwd, _ := os.Getwd() - l4g.Info("Current version is %v (%v/%v/%v)", model.CurrentVersion, model.BuildNumber, model.BuildDate, model.BuildHash) - l4g.Info("Enterprise Enabled: %t", model.BuildEnterpriseReady) + l4g.Info(utils.T("mattermost.current_version"), model.CurrentVersion, model.BuildNumber, model.BuildDate, model.BuildHash) + l4g.Info("Enterprise Enabled: %v", model.BuildEnterpriseReady) l4g.Info("Current working directory is %v", pwd) l4g.Info("Loaded config file from %v", utils.FindConfigFile(flagConfigFile)) -- cgit v1.2.3-1-g7c22