Movatterモバイル変換


[0]ホーム

URL:


po

package
v1.3.1Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License:GPL-3.0Imports:7Imported by:0

Details

Repository

github.com/arduino/arduino-cli

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeMessage

type Message struct {Comments []stringValuestring}

Message represents a i18n message

typeMessageCatalog

type MessageCatalog struct {Messages map[string]*Message}

MessageCatalog is the catalog of i18n messages for a given locale

funcMerge

func Merge(sourceMessageCatalog, destinationMessageCatalog)MessageCatalog

Merge merges two message catalogs, preserving only keys present in source

funcParse

func Parse(filenamestring)MessageCatalog

Parse parses the PO file into a MessageCatalog

funcParseReader

func ParseReader(rio.Reader)MessageCatalog

ParseReader parses the PO file into a MessageCatalog

func (*MessageCatalog)Add

func (catalog *MessageCatalog) Add(id, valuestring, comment []string)

Add adds a new message in the i18n catalog

func (*MessageCatalog)AddMessage

func (catalog *MessageCatalog) AddMessage(idstring, messageMessage)

AddMessage adds a new message in the i18n catalog

func (*MessageCatalog)SortedKeys

func (catalog *MessageCatalog) SortedKeys() []string

SortedKeys returns the sorted keys in the catalog

func (*MessageCatalog)Write

func (catalog *MessageCatalog) Write(wio.Writer)

Write writes the catalog in PO file format into w

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp