Documentation
¶
Index ¶
- Variables
- func GetPluralIdx(locale string, ct int) (int, error)
- func GetPluralNum(locale string) int
- type CommentPack
- type CommentSpec
- type Config
- type Msg
- type PRAR
- type PRCS
- type PRCSB
- type PRCY
- type PRGA
- type PRGD
- type PRIS
- type PRKW
- type PRLT
- type PRLV
- type PRMK
- type PRMNK
- type PRMT
- type PRNG1
- type PRNN0
- type PRNN1
- type PRNP
- type PRPL
- type PRRO
- type PRS1
- type PRSL
- type PRule
Constants ¶
This section is empty.
Variables ¶
View Source
var CFGFN = "POGO.toml"
View Source
var Plurals map[string]PRule
Keyed by ISO tag
Functions ¶
func GetPluralIdx ¶ added in v0.0.4
GetPluralIdx returns the index of a plural translation, determined by locale and count
func GetPluralNum ¶ added in v0.0.4
GetPluralNum returns number of singular/plural forms for given locale or 2 on failure
Types ¶
type CommentPack ¶
CommentsPack groups comments keyed by classification (i.e. CommentSpec.key)
type Config ¶
type Config struct { General confGeneral Parsing confParsing Po confPo Meta confMeta }
func LoadOptions ¶
func LoadOptionsGOPATH ¶
type Msg ¶
type Msg struct { Ctxt string // msgctxt: message context, if any Id string // msgid: untranslated singular string IdPlural string // msgid_plural: untranslated plural string Str string // msgstr: translated singular string StrPlural []string // msgstr[n]: translated plural strings Comments CommentPack Filename string // Name of file extracted from (to be shoved into comments) Line int // Line number within file (to be shoved into comment) }
type PRMNK ¶
type PRMNK struct{ Lang string }
PRMNK is the pluralization rule for Mandinka (possibly erroneous)
type PRS1 ¶
type PRS1 struct{ Lang string }
PRS1 is pluralization rule 1 for Slavic languages (e.g. Belarusian, Bosnian, Croatian)
Click to show internal directories.
Click to hide internal directories.