Top | ![]() |
![]() |
![]() |
![]() |
gboolean | gtr_msg_is_translated () |
gboolean | gtr_msg_is_fuzzy () |
void | gtr_msg_set_fuzzy () |
GtrMsgStatus | gtr_msg_get_status () |
void | gtr_msg_set_status () |
const gchar * | gtr_msg_get_msgid () |
const gchar * | gtr_msg_get_msgid_plural () |
const gchar * | gtr_msg_get_msgstr () |
void | gtr_msg_set_msgstr () |
const gchar * | gtr_msg_get_msgstr_plural () |
void | gtr_msg_set_msgstr_plural () |
const gchar * | gtr_msg_get_comment () |
void | gtr_msg_set_comment () |
gint | gtr_msg_get_po_position () |
void | gtr_msg_set_po_position () |
const gchar * | gtr_msg_get_extracted_comments () |
const gchar * | gtr_msg_get_filename () |
gint * | gtr_msg_get_file_line () |
const gchar * | gtr_msg_get_msgctxt () |
const gchar * | gtr_msg_get_format () |
gchar * | gtr_msg_check () |
gboolean
gtr_msg_is_translated (GtrMsg *msg
);
Gets whether or not the message is translated. See that a fuzzy message is also counted as translated so it must be checked first that the message is fuzzy.
void gtr_msg_set_fuzzy (GtrMsg *msg
,gboolean fuzzy
);
Change the fuzzy mark of a message.
void gtr_msg_set_status (GtrMsg *msg
,GtrMsgStatus status
);
Sets the status for a message.
const gchar *
gtr_msg_get_msgid_plural (GtrMsg *msg
);
const gchar *
gtr_msg_get_msgstr (GtrMsg *msg
);
void gtr_msg_set_msgstr (GtrMsg *msg
,const gchar *msgstr
);
Change the msgstr (translation) of a message. Use an empty string to denote an untranslated message.
const gchar * gtr_msg_get_msgstr_plural (GtrMsg *msg
,gint index
);
void gtr_msg_set_msgstr_plural (GtrMsg *msg
,gint index
,const gchar *msgstr
);
Change the msgstr[index] for a message with plural handling. Use a NULL value at the end to reduce the number of plural forms.
void gtr_msg_set_comment (GtrMsg *msg
,const gchar *comment
);
Change the comments for a message. comments should be a multiline string, ending in a newline, or empty.
void gtr_msg_set_po_position (GtrMsg *msg
,gint po_position
);
Sets the numerical position of this message in relation to other messages.
const gchar *
gtr_msg_get_msgctxt (GtrMsg *msg
);
const gchar *
gtr_msg_get_format (GtrMsg *msg
);
Return the pretty name associated with a format type. For example, for "csharp-format", return "C#". Return NULL if the are no format type in the message.