upgrade revel to 0.16

This commit is contained in:
lealife committed 2017-06-21 18:24:42 +08:00
1 parent d424395d85
commit 2654b684df
2 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -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.