translation

package
v0.0.0-...-c20b901 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultTranslation

func SetDefaultTranslation(language string) error

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.

Jump to

Keyboard shortcuts

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