upgrade revel to 0.16

This commit is contained in:
lealife
2017-06-21 18:24:42 +08:00
parent d424395d85
commit 2654b684df
2 changed files with 7 additions and 7 deletions
app

@ -11,7 +11,7 @@ import (
)
const (
CurrentLocaleRenderArg = "currentLocale" // The key for the current locale render arg value
CurrentLocaleViewArg = "currentLocale" // The key for the current locale render arg value
messageFilesDirectory = "messages"
messageFilePattern = `^\w+\.conf$`
@ -193,7 +193,7 @@ func I18nFilter(c *revel.Controller, fc []revel.Filter) {
// Set the current locale controller argument (CurrentLocaleControllerArg) with the given locale.
func setCurrentLocaleControllerArguments(c *revel.Controller, locale string) {
c.Request.Locale = locale
c.ViewArgs[CurrentLocaleRenderArg] = locale
c.ViewArgs[CurrentLocaleViewArg] = locale
}
// Determine whether the given request has valid Accept-Language value.