gtranslator r3612 - in trunk/src: . dialogs translation-memory
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3612 - in trunk/src: . dialogs translation-memory
- Date: Mon, 22 Sep 2008 09:39:04 +0000 (UTC)
Author: icq
Date: Mon Sep 22 09:39:04 2008
New Revision: 3612
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3612&view=rev
Log:
Minor fixes in translation memory feature
Modified:
trunk/src/application.c
trunk/src/dialogs/preferences-dialog.c
trunk/src/translation-memory/Makefile.am
Modified: trunk/src/application.c
==============================================================================
--- trunk/src/application.c (original)
+++ trunk/src/application.c Mon Sep 22 09:39:04 2008
@@ -25,8 +25,10 @@
#include "window.h"
#include "egg-toolbars-model.h"
#include "dialogs/preferences-dialog.h"
-#include "translation-memory.h"
-#include "berkeley.h"
+#include "./translation-memory/translation-memory.h"
+#include "./translation-memory/berkeley/berkeley.h"
+
+
#include <glib.h>
#include <glib-object.h>
@@ -211,6 +213,10 @@
/* Creating translation memory */
application->priv->tm = GTR_TRANSLATION_MEMORY (gtranslator_berkeley_new ());
+ gtranslator_translation_memory_set_max_omits (application->priv->tm,
+ gtranslator_prefs_manager_get_missing_words ());
+ gtranslator_translation_memory_set_max_delta (application->priv->tm,
+ gtranslator_prefs_manager_get_sentence_length ());
}
@@ -552,11 +558,3 @@
return G_OBJECT (app->priv->tm);
}
-
-GObject *
-gtranslator_application_get_translation_memory (GtranslatorApplication *app)
-{
- g_return_val_if_fail (GTR_IS_APPLICATION (app), NULL);
-
- return G_OBJECT (app->priv->tm);
-}
Modified: trunk/src/dialogs/preferences-dialog.c
==============================================================================
--- trunk/src/dialogs/preferences-dialog.c (original)
+++ trunk/src/dialogs/preferences-dialog.c Mon Sep 22 09:39:04 2008
@@ -28,6 +28,9 @@
#include "utils.h"
#include "plugin-manager.h"
#include "profile-dialog.h"
+#include "po.h"
+#include "utils.h"
+#include "../translation-memory/translation-memory.h"
#include <glib.h>
#include <glib/gi18n.h>
@@ -1082,6 +1085,14 @@
"edit_button", &dlg->priv->edit_button,
"delete_button", &dlg->priv->delete_button,
+ "directory_entry", &dlg->priv->directory_entry,
+ "search_button", &dlg->priv->search_button,
+ "add_database_button", &dlg->priv->add_database_button,
+
+ "show_tm_options_checkbutton", &dlg->priv->show_tm_options_checkbutton,
+ "missing_words_spinbutton", &dlg->priv->missing_words_spinbutton,
+ "sentence_length_spinbutton", &dlg->priv->sentence_length_spinbutton,
+
"gdl_combobox", &dlg->priv->gdl_combobox,
"plugins_box", &dlg->priv->plugins_box,
Modified: trunk/src/translation-memory/Makefile.am
==============================================================================
--- trunk/src/translation-memory/Makefile.am (original)
+++ trunk/src/translation-memory/Makefile.am Mon Sep 22 09:39:04 2008
@@ -15,7 +15,8 @@
libtranslationmemory.la
INST_H_FILES = \
- translation-memory.h
+ translation-memory.h \
+ translation-memory-ui.h
headerdir = $(prefix)/include/gtranslator- GTR_API_VERSION@/gtranslator
@@ -24,7 +25,8 @@
libtranslationmemory_la_SOURCES = \
$(INST_H_FILES) \
- translation-memory.c
+ translation-memory.c \
+ translation-memory-ui.c
libtranslationmemory_la_CFLAGS = \
$(GTRANSLATOR_CFLAGS) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]