| GTranslator Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
GtrTranslationMemory; struct GtrTranslationMemoryIface; struct GtrTranslationMemoryMatch; gboolean gtr_translation_memory_store (GtrTranslationMemory *obj,GtrMsg *msg); GList * gtr_translation_memory_lookup (GtrTranslationMemory *obj,const gchar *phrase); void gtr_translation_memory_set_max_omits (GtrTranslationMemory *obj,gsize omits); void gtr_translation_memory_set_max_delta (GtrTranslationMemory *obj,gsize delta); void gtr_translation_memory_set_max_items (GtrTranslationMemory *obj,gint items);
struct GtrTranslationMemoryIface {
GTypeInterface g_iface;
gboolean (*store) (GtrTranslationMemory * obj, GtrMsg * msg);
gboolean (*store_list) (GtrTranslationMemory * obj, GList * msgs);
void (*remove) (GtrTranslationMemory * obj,
const gchar * original,
const gchar *translation);
GList *(*lookup) (GtrTranslationMemory * obj, const gchar * phrase);
void (*set_max_omits) (GtrTranslationMemory * obj, gsize omits);
void (*set_max_delta) (GtrTranslationMemory * obj, gsize delta);
void (*set_max_items) (GtrTranslationMemory * obj, gint items);
};
gboolean gtr_translation_memory_store (GtrTranslationMemory *obj,GtrMsg *msg);
Stores the msg in the database.
|
a GtrTranslationMemory |
|
message |
GList * gtr_translation_memory_lookup (GtrTranslationMemory *obj,const gchar *phrase);
Looks for the phrase in the database and gets a list of the GtrTranslationMemoryMatch.
|
a GtrTranslationMemory |
|
the unstranslated text to search for translations. |
Returns : |
a list of GtrTranslationMemoryMatch. |
void gtr_translation_memory_set_max_omits (GtrTranslationMemory *obj,gsize omits);
Sets the number of omits used in the search.
|
the number of omits |
void gtr_translation_memory_set_max_delta (GtrTranslationMemory *obj,gsize delta);
Sets the difference in the length of string for searching in the database.
|
the difference in the length of strings |
void gtr_translation_memory_set_max_items (GtrTranslationMemory *obj,gint items);
Sets the number of item to return in gtr_translation_memory_lookup().
|
the max item to return in lookup |