locale

package
v0.0.0-...-6ae7817 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PixaSourceID = "github.com/snivilised/pixa"

TODO: Should be updated to use url of the implementing project, so should not be left as arcadia.

Variables

This section is empty.

Functions

func LeadsWith

func LeadsWith(name, text string) string

Types

type FooBarError

type FooBarError struct {
	xi18n.LocalisableError
}

func NewFooBarError

func NewFooBarError(path string, reason error) FooBarError

NewFooBarError creates a FooBarError

func (FooBarError) FooBar

func (e FooBarError) FooBar() bool

FooBar enables the client to check if error is FooBarError via FooBarErrorBehaviourQuery

type FooBarErrorBehaviourQuery

type FooBarErrorBehaviourQuery interface {
	FooBar() bool
}

FooBarErrorBehaviourQuery used to query if an error is: "Failed to read directory contents from the path specified"

type FooBarTemplData

type FooBarTemplData struct {
	Path   string
	Reason error
	// contains filtered or unexported fields
}

FooBarTemplData - TODO: this is a none existent error that should be replaced by the client. Its just defined here to illustrate the pattern that should be used to implement i18n with extendio. Also note, that this message has been removed from the translation files, so it is not useable at run time.

func (FooBarTemplData) Message

func (td FooBarTemplData) Message() *i18n.Message

the ID should use spp/library specific code, so replace arcadia with the name of the library implementing this template project.

func (FooBarTemplData) SourceID

func (td FooBarTemplData) SourceID() string

type InvalidInterlaceError

type InvalidInterlaceError struct {
	xi18n.LocalisableError
}

func NewInterlaceError

func NewInterlaceError(value, acceptable string) InvalidInterlaceError

type InvalidInterlaceErrorBehaviourQuery

type InvalidInterlaceErrorBehaviourQuery interface {
	SamplingFactorValidationFailure() bool
}

InvalidInterlaceErrorBehaviourQuery used to query if an error is: "invalid interlace value"

type InvalidSamplingFactorError

type InvalidSamplingFactorError struct {
	xi18n.LocalisableError
}

func NewInvalidSamplingFactorError

func NewInvalidSamplingFactorError(value, acceptable string) InvalidSamplingFactorError

type InvalidSamplingFactorErrorBehaviourQuery

type InvalidSamplingFactorErrorBehaviourQuery interface {
	SamplingFactorValidationFailure() bool
}

InvalidSamplingFactorErrorBehaviourQuery used to query if an error is: "invalid sampling factor value"

type OutputPathDoesNotExistBehaviourQuery

type OutputPathDoesNotExistBehaviourQuery interface {
	OutputPathValidationFailure() bool
}

InvalidInterlaceErrorBehaviourQuery used to query if an error is: "invalid interlace value"

type OutputPathDoesNotExistError

type OutputPathDoesNotExistError struct {
	xi18n.LocalisableError
}

func NewOutputPathDoesNotExistError

func NewOutputPathDoesNotExistError(path string) OutputPathDoesNotExistError

type RootCmdConfigFileUsageTemplData

type RootCmdConfigFileUsageTemplData struct {
	// contains filtered or unexported fields
}

RootCmdConfigFileUsageTemplData 🧊

func (RootCmdConfigFileUsageTemplData) Message

func (RootCmdConfigFileUsageTemplData) SourceID

func (td RootCmdConfigFileUsageTemplData) SourceID() string

type RootCmdFilesGlobParamUsageTemplData

type RootCmdFilesGlobParamUsageTemplData struct {
	// contains filtered or unexported fields
}

RootCmdFilesGlobParamUsageTemplData 🧊

func (RootCmdFilesGlobParamUsageTemplData) Message

func (RootCmdFilesGlobParamUsageTemplData) SourceID

func (td RootCmdFilesGlobParamUsageTemplData) SourceID() string

type RootCmdFilesRegExParamUsageTemplData

type RootCmdFilesRegExParamUsageTemplData struct {
	// contains filtered or unexported fields
}

RootCmdFilesRegExParamUsageTemplData 🧊

func (RootCmdFilesRegExParamUsageTemplData) Message

func (RootCmdFilesRegExParamUsageTemplData) SourceID

func (td RootCmdFilesRegExParamUsageTemplData) SourceID() string

type RootCmdFolderGlobParamUsageTemplData

type RootCmdFolderGlobParamUsageTemplData struct {
	// contains filtered or unexported fields
}

RootCmdFolderGlobParamUsageTemplData 🧊

func (RootCmdFolderGlobParamUsageTemplData) Message

func (RootCmdFolderGlobParamUsageTemplData) SourceID

func (td RootCmdFolderGlobParamUsageTemplData) SourceID() string

type RootCmdFolderRexExParamUsageTemplData

type RootCmdFolderRexExParamUsageTemplData struct {
	// contains filtered or unexported fields
}

RootCmdFolderRexExParamUsageTemplData 🧊

func (RootCmdFolderRexExParamUsageTemplData) Message

func (RootCmdFolderRexExParamUsageTemplData) SourceID

func (td RootCmdFolderRexExParamUsageTemplData) SourceID() string

type RootCmdLangUsageTemplData

type RootCmdLangUsageTemplData struct {
	// contains filtered or unexported fields
}

RootCmdLangUsageTemplData 🧊

func (RootCmdLangUsageTemplData) Message

func (td RootCmdLangUsageTemplData) Message() *i18n.Message

func (RootCmdLangUsageTemplData) SourceID

func (td RootCmdLangUsageTemplData) SourceID() string

type RootCmdLongDescTemplData

type RootCmdLongDescTemplData struct {
	// contains filtered or unexported fields
}

RootCmdLongDescTemplData 🧊

func (RootCmdLongDescTemplData) Message

func (td RootCmdLongDescTemplData) Message() *i18n.Message

func (RootCmdLongDescTemplData) SourceID

func (td RootCmdLongDescTemplData) SourceID() string

type RootCmdShortDescTemplData

type RootCmdShortDescTemplData struct {
	// contains filtered or unexported fields
}

RootCmdShortDescTemplData 🧊

func (RootCmdShortDescTemplData) Message

func (td RootCmdShortDescTemplData) Message() *i18n.Message

func (RootCmdShortDescTemplData) SourceID

func (td RootCmdShortDescTemplData) SourceID() string

type ShrinkCmdCuddleParamUsageTemplData

type ShrinkCmdCuddleParamUsageTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdCuddleParamUsageTemplData 🧊

func (ShrinkCmdCuddleParamUsageTemplData) Message

func (ShrinkCmdCuddleParamUsageTemplData) SourceID

func (td ShrinkCmdCuddleParamUsageTemplData) SourceID() string

type ShrinkCmdGaussianBlurParamUsageTemplData

type ShrinkCmdGaussianBlurParamUsageTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdGaussianBlurParamUsageTemplData 🧊

func (ShrinkCmdGaussianBlurParamUsageTemplData) Message

func (ShrinkCmdGaussianBlurParamUsageTemplData) SourceID

func (td ShrinkCmdGaussianBlurParamUsageTemplData) SourceID() string

type ShrinkCmdInterlaceInvalidTemplData

type ShrinkCmdInterlaceInvalidTemplData struct {
	Value      string
	Acceptable string
	// contains filtered or unexported fields
}

ShrinkCmdInterlaceInvalidTemplData ❌

func (ShrinkCmdInterlaceInvalidTemplData) Message

func (ShrinkCmdInterlaceInvalidTemplData) SourceID

func (td ShrinkCmdInterlaceInvalidTemplData) SourceID() string

type ShrinkCmdInterlaceParamUsageTemplData

type ShrinkCmdInterlaceParamUsageTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdInterlaceParamUsageTemplData 🧊

func (ShrinkCmdInterlaceParamUsageTemplData) Message

func (ShrinkCmdInterlaceParamUsageTemplData) SourceID

func (td ShrinkCmdInterlaceParamUsageTemplData) SourceID() string

type ShrinkCmdOutputPathDoesNotExistTemplData

type ShrinkCmdOutputPathDoesNotExistTemplData struct {
	Path string
	// contains filtered or unexported fields
}

ShrinkCmdOutputPathDoesNotExistTemplData ❌

func (ShrinkCmdOutputPathDoesNotExistTemplData) Message

func (ShrinkCmdOutputPathDoesNotExistTemplData) SourceID

func (td ShrinkCmdOutputPathDoesNotExistTemplData) SourceID() string

type ShrinkCmdOutputPathParamUsageTemplData

type ShrinkCmdOutputPathParamUsageTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdOutputPathParamUsageTemplData 🧊

func (ShrinkCmdOutputPathParamUsageTemplData) Message

func (ShrinkCmdOutputPathParamUsageTemplData) SourceID

func (td ShrinkCmdOutputPathParamUsageTemplData) SourceID() string

type ShrinkCmdQualityParamUsageTemplData

type ShrinkCmdQualityParamUsageTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdQualityParamUsageTemplData 🧊

func (ShrinkCmdQualityParamUsageTemplData) Message

func (ShrinkCmdQualityParamUsageTemplData) SourceID

func (td ShrinkCmdQualityParamUsageTemplData) SourceID() string

type ShrinkCmdSamplingFactorInvalidTemplData

type ShrinkCmdSamplingFactorInvalidTemplData struct {
	Value      string
	Acceptable string
	// contains filtered or unexported fields
}

ShrinkCmdSamplingFactorInvalidTemplData ❌

func (ShrinkCmdSamplingFactorInvalidTemplData) Message

func (ShrinkCmdSamplingFactorInvalidTemplData) SourceID

func (td ShrinkCmdSamplingFactorInvalidTemplData) SourceID() string

type ShrinkCmdSamplingFactorParamUsageTemplData

type ShrinkCmdSamplingFactorParamUsageTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdSamplingFactorParamUsageTemplData 🧊

func (ShrinkCmdSamplingFactorParamUsageTemplData) Message

func (ShrinkCmdSamplingFactorParamUsageTemplData) SourceID

func (td ShrinkCmdSamplingFactorParamUsageTemplData) SourceID() string

type ShrinkCmdSchemeParamUsageTemplData

type ShrinkCmdSchemeParamUsageTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdGaussianBlurParamUsageTemplData 🧊

func (ShrinkCmdSchemeParamUsageTemplData) Message

func (ShrinkCmdSchemeParamUsageTemplData) SourceID

func (td ShrinkCmdSchemeParamUsageTemplData) SourceID() string

type ShrinkCmdShortDefinitionTemplData

type ShrinkCmdShortDefinitionTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdShortDefinitionTemplData 🧊

func (ShrinkCmdShortDefinitionTemplData) Message

func (ShrinkCmdShortDefinitionTemplData) SourceID

func (td ShrinkCmdShortDefinitionTemplData) SourceID() string

type ShrinkCmdStripParamUsageTemplData

type ShrinkCmdStripParamUsageTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdStripParamUsageTemplData 🧊

func (ShrinkCmdStripParamUsageTemplData) Message

func (ShrinkCmdStripParamUsageTemplData) SourceID

func (td ShrinkCmdStripParamUsageTemplData) SourceID() string

type ShrinkCmdTrashPathParamUsageTemplData

type ShrinkCmdTrashPathParamUsageTemplData struct {
	// contains filtered or unexported fields
}

ShrinkCmdTrashPathParamUsageTemplData 🧊

func (ShrinkCmdTrashPathParamUsageTemplData) Message

func (ShrinkCmdTrashPathParamUsageTemplData) SourceID

func (td ShrinkCmdTrashPathParamUsageTemplData) SourceID() string

type ShrinkLongDefinitionTemplData

type ShrinkLongDefinitionTemplData struct {
	// contains filtered or unexported fields
}

ShrinkLongDefinitionTemplData 🧊

func (ShrinkLongDefinitionTemplData) Message

func (ShrinkLongDefinitionTemplData) SourceID

func (td ShrinkLongDefinitionTemplData) SourceID() string

type UsingConfigFileTemplData

type UsingConfigFileTemplData struct {
	ConfigFileName string
	// contains filtered or unexported fields
}

func (UsingConfigFileTemplData) Message

func (td UsingConfigFileTemplData) Message() *i18n.Message

func (UsingConfigFileTemplData) SourceID

func (td UsingConfigFileTemplData) SourceID() string

Jump to

Keyboard shortcuts

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