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
ParticipantLink string
Faster string
Break string
Slower string
Question string
Good string
NoConnection string
Activate string
DisplayText string
DisplayQuestion string
Submit string
Submitted string
Finish string
DisplayBlank string
DisplayFreeText string
FreeTextQuestion string
DisplayWordcloud string
DisplayRandomGroup string
DisplayMultipleChoice string
DisplayNumber string
DisplayTimeQuestion string
UpdateAll5Seconds string
TabActiveContent string
TabElements string
TabSavedElements string
SaveElement string
DownloadButton string
ClearElements string
ReplaceElements string
ResponseSent string
Username string
Password string
Authenticate string
CopyToClipboard string
Title string
Seperator string
CurrentlyConnected string
Minutes string
Precision 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. This function always loads translations from disk. Try to use GetDefaultTranslation where possible.
Click to show internal directories.
Click to hide internal directories.