l10n

package
v0.0.0-...-38b5e39 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterUpdate

func AfterUpdate(scope *gorm.Scope)

func BeforeCreate

func BeforeCreate(scope *gorm.Scope)

func BeforeDelete

func BeforeDelete(scope *gorm.Scope)

func BeforeQuery

func BeforeQuery(scope *gorm.Scope)

func BeforeUpdate

func BeforeUpdate(scope *gorm.Scope)

func GetAvailableLocales

func GetAvailableLocales(req *http.Request, currentUser qor.CurrentUser) []string

func GetCurrentLocale

func GetCurrentLocale(req *http.Request) string

func GetEditableLocales

func GetEditableLocales(req *http.Request, currentUser qor.CurrentUser) []string

func RegisterCallbacks

func RegisterCallbacks(db *gorm.DB)

Types

type AvailableLocalesInterface

type AvailableLocalesInterface interface {
	AvailableLocales() []string
}

type EditableLocalesInterface

type EditableLocalesInterface interface {
	EditableLocales() []string
}

type Interface

type Interface interface {
	IsGlobal() bool
	SetLocale(locale string)
}

type Locale

type Locale struct {
	LanguageCode string `sql:"size:6" gorm:"primary_key"`
}

func (*Locale) InjectQorAdmin

func (l *Locale) InjectQorAdmin(res *admin.Resource)

func (Locale) IsGlobal

func (l Locale) IsGlobal() bool

func (*Locale) SetLocale

func (l *Locale) SetLocale(locale string)

type ViewableLocalesInterface

type ViewableLocalesInterface interface {
	ViewableLocales() []string
}

Jump to

Keyboard shortcuts

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