Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultTranslation ¶
SetDefaultTranslation sets the default language to the provided one. Does nothing if it returns error != nil.
Types ¶
type Translation ¶
type Translation struct { Language string CreatedBy string Impressum string PrivacyPolicy string PreviousPage string NextPage string FinishQuestionnaire string QuestionnaireProgress string Key string Password string AccessResults string JavaScriptRequired string StartQuestionnaire string ResponsiblePerson string CanNotFindQuestionnaire string QuestionnaireClosed string ErrorAnswer string AnErrorOccured string ErrorAnswersDifferentAmount string AppointmentYes string AppointmentNo string AppointmentOnlyIfNeeded string AppointmentCanNotSay string AppointmentName string AppointmentRequired string AppointmentOptional string AppointmentComment string AppointmentAll string WeekdayMonday string WeekdayTuesday string WeekdayWednesday string WeekdayThursday string WeekdayFriday string WeekdaySaturday string WeekdaySunday string ReloadSurveys string SurveyReloadSuccessful string ReloadingDisabled string }
Translation represents an object holding all translations
func GetDefaultTranslation ¶
func GetDefaultTranslation() Translation
GetDefaultTranslation returns a Translation struct of the current default language.
func GetTranslation ¶
func GetTranslation(language string) (Translation, error)
GetTranslation returns a Translation struct of the given language.
Click to show internal directories.
Click to hide internal directories.