msg

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: BSD-3-Clause Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FR = lang(language.French)
	EN = lang(language.AmericanEnglish)
)

Supported API language

View Source
var (
	AppCreated                = &Message{trad{FR: "L'application %s a été créée avec succès", EN: "Application %s successfully created"}, nil}
	PipelineCreated           = &Message{trad{FR: "Le pipeline %s a été créé avec succès", EN: "Pipeline %s successfully created"}, nil}
	PipelineExists            = &Message{trad{FR: "Le pipeline %s existe déjà", EN: "Pipeline %s already exist"}, nil}
	PipelineAttached          = &Message{trad{FR: "Le pipeline %s a été attaché à l'application %s", EN: "Pipeline %s has been attached to application %s"}, nil}
	PipelineTriggerCreated    = &Message{trad{FR: "Le trigger du pipeline %s de l'application %s vers le pipeline %s l'application %s a été créé avec succès", EN: "Trigger from pipeline %s of application %s to pipeline %s attached to application %s successfully created"}, nil}
	AppGroupInheritPermission = &Message{trad{FR: "Les permissions du projet sont appliquées sur l'application %s", EN: "Application %s inherits project permissions"}, nil}
	AppGroupSetPermission     = &Message{trad{FR: "Permission accordée au groupe %s sur l'application %s", EN: "Permission applied to group %s to application %s"}, nil}
	AppVariablesCreated       = &Message{trad{FR: "Les variables ont été ajoutées avec succès sur l'application %s", EN: "Application variable for %s are successfully created"}, nil}
	HookCreated               = &Message{trad{FR: "Hook créé sur le depôt %s vers le pipeline %s", EN: "Hook created on repository %s to pipeline %s"}, nil}
	EnvironmentExists         = &Message{trad{FR: "L'environnement %s existe déjà", EN: "Environment %s already exist"}, nil}
	EnvironmentCreated        = &Message{trad{FR: "L'environnement %s a été créé avec succès", EN: "Environment %s successfully created"}, nil}
)

Message list

View Source
var (
	SupportedLanguages = []language.Tag{
		language.AmericanEnglish,
		language.French,
	}
)

SupportedLanguages on API errors

Functions

This section is empty.

Types

type Message

type Message struct {
	Format trad
	Args   []interface{}
}

Message represent a struc format translated messages

func New

func New(m *Message, args ...interface{}) Message

New instanciantes a new message

func (*Message) String

func (m *Message) String(al string) string

String returns formated string for the specified language

Jump to

Keyboard shortcuts

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