langpack

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package langpack for yaff.

Index

Constants

View Source
const (
	// LangPack language pack for this package.
	LangPack = PackID(1)

	// None is a default empty message (id 0).
	None = TextID(iota)

	// ErrorUnknownFormatter Unknown formatter.
	ErrorUnknownFormatter

	// ErrorInvalidOptionType unknown option type.
	ErrorInvalidOptionType

	// ErrorNoTemplateDefinition no template specified error.
	ErrorNoTemplateDefinition

	// ErrorUnknownStyle unknown text style.
	ErrorUnknownStyle

	// ErrorColumnInvalidID Column has an invalid ID.
	ErrorColumnInvalidID

	// ErrorRowInvalidID Row has an invalid ID.
	ErrorRowInvalidID
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PackID

type PackID int

PackID is the local package id.

type TextID

type TextID int

TextID is the id type for all messages defined by this package.

func (TextID) Plural

func (id TextID) Plural() lpax.TextID

Plural returns the plural version of the id.

func (TextID) Single

func (id TextID) Single() lpax.TextID

Single returns the id of for a single version of a message. Typical implementations use the lpax helper functions to implement the id system. Positive id's are used for single messages while -ve id's areused for plural versions.

func (TextID) String

func (id TextID) String() string

String implements stringer function. ReflectCoderString reflects the package name used by the parent package along with the +ve integer id of the key.

Jump to

Keyboard shortcuts

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