middleware

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Usage:

import "github.com/astaxie/beego/middleware"

I18N = middleware.NewLocale("conf/i18n.conf", beego.AppConfig.String("language"))

more docs: http://beego.me/docs/module/i18n.md

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Translation added in v1.4.0

type Translation struct {
	CurrentLocal string
	Locales      map[string]map[string]string
	// contains filtered or unexported fields
}

func NewLocale added in v1.4.0

func NewLocale(filepath string, defaultlocal string) *Translation

func (*Translation) SetLocale added in v1.4.0

func (t *Translation) SetLocale(local string)

func (*Translation) Translate added in v1.4.0

func (t *Translation) Translate(key string, local string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL