// GetDefaultLanguage returns the default language
GetDefaultLanguage returns the default language
// GetDefaultLanguage returns the default language
func GetDefaultLanguage() *Language {
	if defaultLang != nil {
		return defaultLang
	}
	var lang Language
	uadminDatabase := NewUadminDatabase()
	defer uadminDatabase.Close()
	db := uadminDatabase.Db
	db.Model(Language{}).Where(&Language{Default: true}).First(&lang)
	defaultLang = &lang
	return &lang
}
func GetDefaultLanguage ( ) * Language { if defaultLang != nil { return defaultLang } var lang Language uadminDatabase := NewUadminDatabase ( ) defer uadminDatabase . Close ( ) db := uadminDatabase . Db db . Model ( Language { } ) . Where ( & Language { Default : true } ) . First ( & lang ) defaultLang = & lang return & lang }
GetDefaultLanguage returns the default language
GetDefaultLanguage returns the default language