Documentation ¶
Overview ¶
Package db provides a database translation provider. It creates raw message entries in the database and is able to create a i18n.Bundle with all the translated messages. JSON files can be generated for each language.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { server.Orm ID int MessageID string Lang string Description query.NullString `json:"-"` Zero query.NullString `json:"-"` One query.NullString `json:"-"` Two query.NullString `json:"-"` Few query.NullString `json:"-"` Many query.NullString `json:"-"` Other query.NullString }
Message orm.
func I18nMessageToOrmMessage ¶
I18nMessageToOrmMessage converts a i18n.Message to an orm message.
func (*Message) DefaultTableName ¶
DefaultTableName sets a different table name.
func (*Message) ToI18nMessage ¶
ToI18nMessage converts a orm message to an i18n.Message.
Click to show internal directories.
Click to hide internal directories.