Portuguese (Brazil) language added

This commit is contained in:
Rafael Andrade de Oliveira
2015-12-13 09:03:50 -02:00
parent 43e8f2e701
commit c561dec14c
9 changed files with 580 additions and 1 deletions

View File

@ -186,7 +186,7 @@ func (c BaseController) SetLocale() string {
pos := strings.Index(locale, "-")
lang = locale[0:pos]
}
if lang != "zh" && lang != "en" {
if lang != "zh" && lang != "en" && lang != "fr" && lang != "pt" {
lang = "en"
}
c.RenderArgs["locale"] = lang