anjuta r4702 - in trunk: . plugins/debug-manager plugins/glade plugins/sourceview
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4702 - in trunk: . plugins/debug-manager plugins/glade plugins/sourceview
- Date: Fri, 6 Feb 2009 16:14:48 +0000 (UTC)
Author: jhs
Date: Fri Feb 6 16:14:48 2009
New Revision: 4702
URL: http://svn.gnome.org/viewvc/anjuta?rev=4702&view=rev
Log:
2009-02-06 Johannes Schmid <jhs Obelix>
* plugins/debug-manager/sharedlib.c (sharedlibs_new):
* plugins/debug-manager/start.c (load_target):
* plugins/glade/designer-associations-item.c
(designer_associations_item_from_xml),
(designer_associations_option_from_xml),
(associations_file_from_xml):
* plugins/glade/plugin.c (glade_update_ui),
(on_glade_project_changed), (glade_plugin_do_save_associations),
(do_insert_handler_stub_C), (insert_handler_stub_auto),
(insert_handler_stub_manual), (on_handler_editing_done),
(on_glade_show_version_dialog):
* plugins/sourceview/sourceview.c (on_open_finish):
Fix translation isses (#570491 and #570429)
Modified:
trunk/ChangeLog
trunk/plugins/debug-manager/sharedlib.c
trunk/plugins/debug-manager/start.c
trunk/plugins/glade/anjuta-glade.glade
trunk/plugins/glade/designer-associations-item.c
trunk/plugins/glade/plugin.c
trunk/plugins/sourceview/sourceview.c
Modified: trunk/plugins/debug-manager/sharedlib.c
==============================================================================
--- trunk/plugins/debug-manager/sharedlib.c (original)
+++ trunk/plugins/debug-manager/sharedlib.c Fri Feb 6 16:14:48 2009
@@ -336,7 +336,7 @@
sl->action_group =
anjuta_ui_add_action_group_entries (ui,
"ActionGroupSharedlibs",
- _("Sharedlibs operations"),
+ _("Shared library operations"),
sharedlibs_menu_actions,
G_N_ELEMENTS(sharedlibs_menu_actions),
GETTEXT_PACKAGE, TRUE, sl);
Modified: trunk/plugins/debug-manager/start.c
==============================================================================
--- trunk/plugins/debug-manager/start.c (original)
+++ trunk/plugins/debug-manager/start.c Fri Feb 6 16:14:48 2009
@@ -909,7 +909,7 @@
DEBUG_PRINT ("Error getting file info: %s", error->message);
g_error_free (error);
anjuta_util_dialog_error(GTK_WINDOW (this->plugin->shell),
- _("Unable to open %s. (file_info) Debugger cannot start."), target);
+ _("Unable to open %s. Debugger cannot start."), target);
g_object_unref (file);
return FALSE;
}
@@ -919,7 +919,7 @@
if (mime_type == NULL)
{
anjuta_util_dialog_error(GTK_WINDOW (this->plugin->shell),
- _("Unable to open %s. (mime_type) Debugger cannot start."), target);
+ _("Unable to detect mime-type of %s. Debugger cannot start."), target);
g_object_unref (file_info);
g_object_unref (file);
return FALSE;
Modified: trunk/plugins/glade/anjuta-glade.glade
==============================================================================
--- trunk/plugins/glade/anjuta-glade.glade (original)
+++ trunk/plugins/glade/anjuta-glade.glade Fri Feb 6 16:14:48 2009
@@ -303,7 +303,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="label" translatable="yes">gtk-close</property>
+ <property name="label" translatable="no">gtk-close</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="associations_dialog_button_close_cb"/>
</object>
@@ -317,7 +317,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <property name="label" translatable="yes">gtk-save</property>
+ <property name="label" translatable="no">gtk-save</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="associations_dialog_button_save_cb"/>
</object>
Modified: trunk/plugins/glade/designer-associations-item.c
==============================================================================
--- trunk/plugins/glade/designer-associations-item.c (original)
+++ trunk/plugins/glade/designer-associations-item.c Fri Feb 6 16:14:48 2009
@@ -240,7 +240,7 @@
g_set_error (error,
DESIGNER_ASSOCIATIONS_ERROR,
DESIGNER_ASSOCIATIONS_ERROR_LOADING,
- _("association item has no designer"));
+ _("Association item has no designer"));
return self;
}
self->designer = associations_file_from_xml (xml_doc, child_node,
@@ -265,7 +265,7 @@
g_set_error (error,
DESIGNER_ASSOCIATIONS_ERROR,
DESIGNER_ASSOCIATIONS_ERROR_LOADING,
- _("association item has no editor"));
+ _("Association item has no editor"));
return self;
}
self->editor = associations_file_from_xml (xml_doc, child_node,
@@ -368,7 +368,7 @@
g_set_error (error,
DESIGNER_ASSOCIATIONS_ERROR,
DESIGNER_ASSOCIATIONS_ERROR_LOADING,
- _("bad association item option in the node %s"),
+ _("Bad association item option in the node %s"),
node->name);
xmlFree (name);
xmlFree (value);
@@ -493,7 +493,7 @@
g_set_error (error,
DESIGNER_ASSOCIATIONS_ERROR,
DESIGNER_ASSOCIATIONS_ERROR_LOADING,
- _("association item filename has no path"));
+ _("Association item filename has no path"));
return NULL;
}
Modified: trunk/plugins/glade/plugin.c
==============================================================================
--- trunk/plugins/glade/plugin.c (original)
+++ trunk/plugins/glade/plugin.c Fri Feb 6 16:14:48 2009
@@ -361,7 +361,6 @@
doc = ianjuta_document_manager_get_current_document(docman, NULL);
if (doc && ANJUTA_IS_DESIGN_DOCUMENT(doc))
{
- gboolean dirty = ianjuta_file_savable_is_dirty(IANJUTA_FILE_SAVABLE(doc), NULL);
g_signal_emit_by_name (G_OBJECT(doc), "update_ui");
g_signal_emit_by_name (G_OBJECT(doc), "update-save-ui");
}
@@ -518,8 +517,8 @@
if (gtk_combo_box_get_active_iter (combo, &iter))
{
GladeProject *project;
- AnjutaDesignDocument *design_document;
- GladeDesignView *design_view;
+ AnjutaDesignDocument *design_document = NULL;
+ GladeDesignView *design_view = NULL;
gtk_tree_model_get (model, &iter, PROJECT_COL, &project, -1);
glade_app_set_project (project);
@@ -552,7 +551,8 @@
}
else
{
- ianjuta_document_manager_set_current_document(docman, IANJUTA_DOCUMENT(design_document), NULL);
+ if (design_document)
+ ianjuta_document_manager_set_current_document(docman, IANJUTA_DOCUMENT(design_document), NULL);
}
glade_inspector_set_project (GLADE_INSPECTOR (plugin->priv->inspector), project);
@@ -833,7 +833,7 @@
{
g_set_error (error, PLUGIN_GLADE_ERROR,
PLUGIN_GLADE_ERROR_GENERIC,
- _("No associoations initialized, nothing to save"));
+ _("No associations initialized, nothing to save"));
return FALSE;
}
if (!plugin->priv->project_root)
@@ -1306,7 +1306,7 @@
end_str = "\n\n";
break;
case iptAfterBegin:
- ianjuta_editor_get_line_from_position (editor, position, NULL);
+ lineno = ianjuta_editor_get_line_from_position (editor, position, NULL);
position = ianjuta_editor_get_line_end_position (editor, lineno, NULL);
/* there's no need in break, honestly */
case iptCurrent:
@@ -1346,7 +1346,7 @@
g_set_error (error,
PLUGIN_GLADE_ERROR,
PLUGIN_GLADE_ERROR_GENERIC,
- _("couldn't introspect the signal"));
+ _("Couldn't introspect the signal"));
{
gint i;
@@ -1940,7 +1940,7 @@
g_set_error (error,
PLUGIN_GLADE_ERROR,
PLUGIN_GLADE_ERROR_GENERIC,
- _("there's no associated editor for the designer"));
+ _("There is no associated editor for the designer"));
return;
}
lang_name = ianjuta_language_get_name_from_editor (lang_manager,
@@ -1958,7 +1958,7 @@
g_set_error (error,
PLUGIN_GLADE_ERROR,
PLUGIN_GLADE_ERROR_GENERIC,
- _("unknown language of the editor \"%s\""), uri);
+ _("Unknown language of the editor \"%s\""), uri);
g_free (uri);
return;
}
@@ -2059,7 +2059,7 @@
if (!IANJUTA_IS_EDITOR (doc))
{
anjuta_util_dialog_warning (GTK_WINDOW (ANJUTA_PLUGIN(plugin)->shell),
- _("Error while adding a new handler stub: %"), _("no current editor"));
+ "%s", _("Error while adding a new handler stub: No current editor"));
return;
}
editor = IANJUTA_EDITOR (doc);
@@ -2230,10 +2230,7 @@
g_strdup_printf(_("Error while adding a new handler stub: %s"),
error->message);
gchar *hint_message =
- g_strdup_printf(_("To avoid this messages turn off \"%s\" flag in the %s->%s"),
- _("Insert handler on edit"),
- _("Preferences"),
- _("Glade GUI Designer"));
+ g_strdup_printf(_("To avoid this messages turn off \"Insert handler on edit\" flag in Preferences->Glade GUI Designer"));
anjuta_util_dialog_warning (GTK_WINDOW (ANJUTA_PLUGIN(plugin)->shell),
"%s. %s", error_message, hint_message);
@@ -3888,7 +3885,7 @@
else
{
anjuta_util_dialog_info (GTK_WINDOW (ANJUTA_PLUGIN(plugin)->shell),
- _("There's no Glade projects"));
+ _("There is no Glade project"));
}
}
@@ -3982,9 +3979,9 @@
{
"ActionGladeSwitchDesigner",
NULL,
- N_("Switch designer/code"),
+ N_("Switch between designer/code"),
"F12",
- N_("Switch designer/code"),
+ N_("Switch between designer/code"),
G_CALLBACK (on_switch_designer_and_editor)
},
{
@@ -4046,7 +4043,7 @@
{
"ActionGladeClose",
GTK_STOCK_CLOSE,
- N_("Close"),
+ NULL,
NULL,
N_("Close the current file"),
G_CALLBACK (on_glade_layout_close)
@@ -4054,7 +4051,7 @@
{
"ActionGladeSave",
GTK_STOCK_SAVE,
- N_("Save"),
+ NULL,
NULL,
N_("Save the current file"),
G_CALLBACK (on_glade_layout_save)
@@ -4062,7 +4059,7 @@
{
"ActionGladeUndo",
GTK_STOCK_UNDO,
- N_("Undo"),
+ NULL,
NULL,
N_("Undo the last action"),
G_CALLBACK (on_glade_layout_undo)
@@ -4070,7 +4067,7 @@
{
"ActionGladeRedo",
GTK_STOCK_REDO,
- N_("Redo"),
+ NULL,
NULL,
N_("Redo the last action"),
G_CALLBACK (on_glade_layout_redo)
@@ -4078,7 +4075,7 @@
{
"ActionGladeCut",
GTK_STOCK_CUT,
- N_("Cut"),
+ NULL,
NULL,
N_("Cut the selection"),
G_CALLBACK (on_glade_layout_cut)
@@ -4086,7 +4083,7 @@
{
"ActionGladeCopy",
GTK_STOCK_COPY,
- N_("Copy"),
+ NULL,
NULL,
N_("Copy the selection"),
G_CALLBACK (on_glade_layout_copy)
@@ -4094,7 +4091,7 @@
{
"ActionGladePaste",
GTK_STOCK_PASTE,
- N_("Paste"),
+ NULL,
NULL,
N_("Paste the clipboard"),
G_CALLBACK (on_glade_layout_paste)
@@ -4102,7 +4099,7 @@
{
"ActionGladeDelete",
GTK_STOCK_DELETE,
- N_("Delete"),
+ NULL,
NULL,
N_("Delete the selection"),
G_CALLBACK (on_glade_layout_delete)
Modified: trunk/plugins/sourceview/sourceview.c
==============================================================================
--- trunk/plugins/sourceview/sourceview.c (original)
+++ trunk/plugins/sourceview/sourceview.c Fri Feb 6 16:14:48 2009
@@ -489,7 +489,7 @@
if (sourceview_io_get_read_only (io))
{
gchar* filename = sourceview_io_get_filename (io);
- gchar* buff = g_strdup_printf ("The file '%s' is read-only! Edit anyway?",
+ gchar* buff = g_strdup_printf (_("The file '%s' is read-only! Edit anyway?"),
filename);
GtkWidget* message_area;
g_free (filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]