mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
imagemap plugin i18n fix.
-- yasuhiro
This commit is contained in:
parent
1f6bfd8f35
commit
950918541e
21
ChangeLog
21
ChangeLog
|
@ -1,3 +1,24 @@
|
|||
2000-02-17 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
|
||||
|
||||
* plug-ins/imagemap/imap_circle.c
|
||||
* plug-ins/imagemap/imap_cmd_guides.c
|
||||
* plug-ins/imagemap/imap_default_dialog.c
|
||||
* plug-ins/imagemap/imap_edit_area_info.c
|
||||
* plug-ins/imagemap/imap_file.c
|
||||
* plug-ins/imagemap/imap_grid.c
|
||||
* plug-ins/imagemap/imap_main.c
|
||||
* plug-ins/imagemap/imap_menu.c
|
||||
* plug-ins/imagemap/imap_polygon.c
|
||||
* plug-ins/imagemap/imap_popup.c
|
||||
* plug-ins/imagemap/imap_preferences.c
|
||||
* plug-ins/imagemap/imap_rectangle.c
|
||||
* plug-ins/imagemap/imap_selection.c
|
||||
* plug-ins/imagemap/imap_settings.c
|
||||
* plug-ins/imagemap/imap_toolbar.c
|
||||
* plug-ins/imagemap/imap_tools.c
|
||||
* po-plug-ins/POTFILES.in: include config.h and more gettext
|
||||
tagging.
|
||||
|
||||
2000-02-16 Garry R. Osgood <gosgood@idt.net>
|
||||
*app/paint_funcs.c: replace_pixels() was
|
||||
naively zeroing RGB components of RGBA pixels
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <math.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "imap_circle.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
#include "imap_main.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "imap_cmd_create.h"
|
||||
#include "imap_default_dialog.h"
|
||||
#include "imap_cmd_guides.h"
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
#include "imap_default_dialog.h"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "imap_browse.h"
|
||||
#include "imap_cmd_edit_object.h"
|
||||
#include "imap_default_dialog.h"
|
||||
|
@ -223,7 +224,7 @@ create_link_tab(AreaInfoDialog_t *dialog, GtkWidget *notebook)
|
|||
table, 2, 0,
|
||||
_("URL to activate when this area is clicked: (required)"));
|
||||
|
||||
browse = browse_widget_new("Select HTML file");
|
||||
browse = browse_widget_new( _("Select HTML file"));
|
||||
browse_widget_set_filter(browse, relative_filter, (gpointer) dialog);
|
||||
gtk_table_attach_defaults(GTK_TABLE(table), browse->hbox, 0, 1, 3, 4);
|
||||
dialog->url = browse->file;
|
||||
|
@ -291,7 +292,7 @@ create_info_tab(AreaInfoDialog_t *dialog, GtkWidget *notebook)
|
|||
|
||||
dialog->infotab = obj->class->create_info_widget(frame);
|
||||
|
||||
label = gtk_label_new(obj->class->name);
|
||||
label = gtk_label_new( gettext(obj->class->name));
|
||||
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "imap_default_dialog.h"
|
||||
#include "imap_file.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "imap_grid.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
#include "imap_main.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "config.h"
|
||||
#include "gdk/gdkkeysyms.h" /* for keyboard values */
|
||||
#include "gtk/gtk.h"
|
||||
|
||||
|
@ -131,8 +132,6 @@ static void query()
|
|||
static int nargs = sizeof (args) / sizeof (args[0]);
|
||||
static int nreturn_vals = 0;
|
||||
|
||||
INIT_I18N();
|
||||
|
||||
gimp_install_procedure("plug_in_imagemap",
|
||||
"Creates a clickable imagemap.",
|
||||
"",
|
||||
|
@ -502,13 +501,13 @@ set_all_sensitivities(void)
|
|||
static void
|
||||
main_set_title(const char *filename)
|
||||
{
|
||||
char title[256];
|
||||
char *p;
|
||||
char *title, *p;
|
||||
|
||||
g_strreplace(&_filename, filename);
|
||||
p = (filename) ? g_basename(filename) : _("<Untitled>");
|
||||
sprintf(title, "%s - ImageMap 1.3", p);
|
||||
title = g_strdup_printf("%s - ImageMap 1.3", p);
|
||||
gtk_window_set_title(GTK_WINDOW(_dlg), title);
|
||||
g_free(title);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -871,7 +870,7 @@ save_as(const gchar *filename)
|
|||
main_set_title(filename);
|
||||
object_list_clear_changed(_shapes);
|
||||
} else {
|
||||
do_file_error_dialog("Couldn't save file:", filename);
|
||||
do_file_error_dialog( _("Couldn't save file:"), filename);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -896,12 +895,12 @@ do_image_size_changed_dialog(void)
|
|||
static DefaultDialog_t *dialog;
|
||||
|
||||
if (!dialog) {
|
||||
dialog = make_default_dialog("Image size changed");
|
||||
dialog = make_default_dialog( _("Image size changed"));
|
||||
default_dialog_hide_apply_button(dialog);
|
||||
default_dialog_set_label(
|
||||
dialog,
|
||||
" Image size has changed. \n"
|
||||
"Resize Area's?");
|
||||
_(" Image size has changed. \n"
|
||||
"Resize Area's?"));
|
||||
|
||||
default_dialog_set_ok_cb(dialog, resize_image_ok_cb, NULL);
|
||||
default_dialog_set_cancel_cb(dialog, resize_image_cancel_cb, NULL);
|
||||
|
@ -931,7 +930,7 @@ really_load(gpointer data)
|
|||
} else if (load_cern(filename)) {
|
||||
_map_info.map_format = CERN;
|
||||
} else {
|
||||
do_file_error_dialog("Couldn't read file:", filename);
|
||||
do_file_error_dialog( _("Couldn't read file:"), filename);
|
||||
selection_thaw(_selection);
|
||||
close_current();
|
||||
return;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
#include "imap_circle.h"
|
||||
|
@ -226,7 +227,7 @@ make_file_menu(GtkWidget *menu_bar)
|
|||
item = make_item_with_label(file_menu, _("Close"), menu_command,
|
||||
&_menu.cmd_close);
|
||||
add_accelerator(item, 'W', GDK_CONTROL_MASK);
|
||||
item = make_item_with_label(file_menu, "Quit", menu_command,
|
||||
item = make_item_with_label(file_menu, _("Quit"), menu_command,
|
||||
&_menu.cmd_quit);
|
||||
add_accelerator(item, 'Q', GDK_CONTROL_MASK);
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "imap_cmd_delete_point.h"
|
||||
#include "imap_cmd_insert_point.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
@ -388,11 +389,14 @@ polygon_create_info_widget(GtkWidget *frame)
|
|||
gint max_width = get_image_width();
|
||||
gint max_height = get_image_height();
|
||||
gchar *titles[] = {N_("x (pixels)"), N_("y (pixels)")};
|
||||
gint i;
|
||||
|
||||
hbox = gtk_hbox_new(FALSE, 1);
|
||||
gtk_container_add(GTK_CONTAINER(frame), hbox);
|
||||
gtk_widget_show(hbox);
|
||||
|
||||
for (i = 0; i < 2; i++)
|
||||
titles[i] = gettext(titles[i]);
|
||||
props->list = list = gtk_clist_new_with_titles(2, titles);
|
||||
gtk_clist_column_titles_passive(GTK_CLIST(list));
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
#include "imap_edit_area_info.h"
|
||||
|
|
|
@ -25,7 +25,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "libgimp/gimp.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
#include "imap_command.h"
|
||||
#include "imap_file.h"
|
||||
|
@ -199,7 +201,7 @@ preferences_save(PreferencesData_t *data)
|
|||
|
||||
fclose(out);
|
||||
} else {
|
||||
do_file_error_dialog("Couldn't save resource file:", filename);
|
||||
do_file_error_dialog( _("Couldn't save resource file:"), filename);
|
||||
}
|
||||
g_free(filename);
|
||||
}
|
||||
|
@ -351,7 +353,7 @@ area_event(GtkWidget *widget, GdkEvent *event, PreferencesDialog_t *param,
|
|||
return FALSE;
|
||||
|
||||
if (!param->color_sel_dlg) {
|
||||
GtkWidget *dialog = gtk_color_selection_dialog_new("Select Color");
|
||||
GtkWidget *dialog = gtk_color_selection_dialog_new( _("Select Color"));
|
||||
|
||||
param->color_sel_dlg = dialog;
|
||||
|
||||
|
@ -429,7 +431,7 @@ create_general_tab(PreferencesDialog_t *data, GtkWidget *notebook)
|
|||
gtk_table_set_col_spacings(GTK_TABLE(table), 10);
|
||||
gtk_widget_show(table);
|
||||
|
||||
frame = gtk_frame_new("Default Map Type");
|
||||
frame = gtk_frame_new( _("Default Map Type"));
|
||||
gtk_widget_show(frame);
|
||||
gtk_table_attach_defaults(GTK_TABLE(table), frame, 0, 2, 0, 1);
|
||||
hbox = gtk_hbox_new(FALSE, 1);
|
||||
|
@ -448,21 +450,21 @@ create_general_tab(PreferencesDialog_t *data, GtkWidget *notebook)
|
|||
gtk_widget_show(data->csim);
|
||||
|
||||
data->prompt_for_area_info =
|
||||
create_check_button_in_table(table, 1, 0, "Prompt for area info");
|
||||
create_check_button_in_table(table, 1, 0, _("Prompt for area info"));
|
||||
data->require_default_url =
|
||||
create_check_button_in_table(table, 2, 0, "Require default URL");
|
||||
create_check_button_in_table(table, 2, 0, _("Require default URL"));
|
||||
data->show_area_handle =
|
||||
create_check_button_in_table(table, 3, 0, "Show area handles");
|
||||
create_check_button_in_table(table, 3, 0, _("Show area handles"));
|
||||
data->keep_circles_round =
|
||||
create_check_button_in_table(table, 4, 0, "Keep NCSA circles true");
|
||||
create_check_button_in_table(table, 4, 0, _("Keep NCSA circles true"));
|
||||
data->show_url_tip =
|
||||
create_check_button_in_table(table, 5, 0, "Show area URL tip");
|
||||
create_check_button_in_table(table, 5, 0, _("Show area URL tip"));
|
||||
data->use_doublesized =
|
||||
create_check_button_in_table(table, 6, 0,
|
||||
"Use double-sized grab handles");
|
||||
_("Use double-sized grab handles"));
|
||||
gtk_widget_show(frame);
|
||||
|
||||
label = gtk_label_new("General");
|
||||
label = gtk_label_new( _("General"));
|
||||
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), table, label);
|
||||
}
|
||||
|
||||
|
@ -483,13 +485,13 @@ create_menu_tab(PreferencesDialog_t *data, GtkWidget *notebook)
|
|||
gtk_table_set_col_spacings(GTK_TABLE(table), 10);
|
||||
gtk_widget_show(table);
|
||||
|
||||
create_label_in_table(table, 0, 0, "Number of Undo levels (1 - 99):");
|
||||
create_label_in_table(table, 0, 0, _("Number of Undo levels (1 - 99):"));
|
||||
data->undo_levels = create_spin_button_in_table(table, 0, 1, 1, 1, 99);
|
||||
|
||||
create_label_in_table(table, 1, 0, "Number of MRU entries (1 - 16):");
|
||||
create_label_in_table(table, 1, 0, _("Number of MRU entries (1 - 16):"));
|
||||
data->mru_size = create_spin_button_in_table(table, 1, 1, 1, 1, 16);
|
||||
|
||||
label = gtk_label_new("Menu");
|
||||
label = gtk_label_new( _("Menu"));
|
||||
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label);
|
||||
}
|
||||
|
||||
|
@ -525,19 +527,19 @@ create_colors_tab(PreferencesDialog_t *data, GtkWidget *notebook)
|
|||
gtk_table_set_row_spacings(GTK_TABLE(table), 10);
|
||||
gtk_widget_show(table);
|
||||
|
||||
create_label_in_table(table, 0, 0, "Normal:");
|
||||
create_label_in_table(table, 0, 0, _("Normal:"));
|
||||
data->normal_fg = create_color_field(data, table, 0, 1,
|
||||
(GtkSignalFunc) edit_normal_fg);
|
||||
data->normal_bg = create_color_field(data, table, 0, 2,
|
||||
(GtkSignalFunc) edit_normal_bg);
|
||||
|
||||
create_label_in_table(table, 1, 0, "Selected:");
|
||||
create_label_in_table(table, 1, 0, _("Selected:"));
|
||||
data->selected_fg = create_color_field(data, table, 1, 1,
|
||||
(GtkSignalFunc) edit_selected_fg);
|
||||
data->selected_bg = create_color_field(data, table, 1, 2,
|
||||
(GtkSignalFunc) edit_selected_bg);
|
||||
|
||||
label = gtk_label_new("Colors");
|
||||
label = gtk_label_new( _("Colors"));
|
||||
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label);
|
||||
}
|
||||
|
||||
|
@ -559,7 +561,7 @@ create_preferences_dialog()
|
|||
GtkWidget *notebook;
|
||||
|
||||
data->color_sel_dlg = NULL;
|
||||
data->dialog = dialog = make_default_dialog("General Preferences");
|
||||
data->dialog = dialog = make_default_dialog( _("General Preferences"));
|
||||
default_dialog_set_ok_cb(dialog, preferences_ok_cb, (gpointer) data);
|
||||
|
||||
data->notebook = notebook = gtk_notebook_new();
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
#include "imap_main.h"
|
||||
#include "imap_misc.h"
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "imap_cmd_edit_object.h"
|
||||
#include "imap_cmd_select.h"
|
||||
#include "imap_cmd_unselect.h"
|
||||
|
@ -159,19 +160,19 @@ make_selection_toolbar(Selection_t *data, GtkWidget *window)
|
|||
gtk_toolbar_set_space_size(GTK_TOOLBAR(toolbar), 5);
|
||||
|
||||
data->arrow_up = make_toolbar_icon(toolbar, window, arrow_up_xpm, "MoveUp",
|
||||
"Move up", selection_command,
|
||||
_("Move up"), selection_command,
|
||||
&data->cmd_move_up);
|
||||
data->arrow_down = make_toolbar_icon(toolbar, window, arrow_down_xpm,
|
||||
"MoveDown", "Move down",
|
||||
"MoveDown", _("Move down"),
|
||||
selection_command,
|
||||
&data->cmd_move_down);
|
||||
gtk_toolbar_append_space(GTK_TOOLBAR(toolbar));
|
||||
data->edit = make_toolbar_icon(toolbar, window, edit_xpm, "Edit",
|
||||
"Edit", selection_command,
|
||||
_("Edit"), selection_command,
|
||||
&data->cmd_edit);
|
||||
gtk_toolbar_append_space(GTK_TOOLBAR(toolbar));
|
||||
data->remove = make_toolbar_icon(toolbar, window, delete_xpm, "Delete",
|
||||
"Delete", selection_command,
|
||||
_("Delete"), selection_command,
|
||||
&data->cmd_delete);
|
||||
|
||||
gtk_widget_show(toolbar);
|
||||
|
@ -333,6 +334,7 @@ make_selection(GtkWidget *window, ObjectList_t *object_list)
|
|||
GtkWidget *toolbar;
|
||||
GtkWidget *list;
|
||||
gchar *titles[] = {"#", N_("URL"), N_("Target"), N_("Comment")};
|
||||
gint i;
|
||||
|
||||
data->object_list = object_list;
|
||||
data->selected_child = NULL;
|
||||
|
@ -358,6 +360,8 @@ make_selection(GtkWidget *window, ObjectList_t *object_list)
|
|||
gtk_container_add(GTK_CONTAINER(hbox), frame);
|
||||
gtk_widget_show(frame);
|
||||
|
||||
for (i = 0; i < 4; i++)
|
||||
titles[i] = gettext(titles[i]);
|
||||
data->list = list = gtk_clist_new_with_titles(4, titles);
|
||||
GTK_WIDGET_UNSET_FLAGS(data->list, GTK_CAN_FOCUS);
|
||||
gtk_clist_column_titles_passive(GTK_CLIST(list));
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "imap_browse.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
#include "imap_main.h"
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
#include "imap_main.h"
|
||||
#include "imap_misc.h"
|
||||
|
@ -107,8 +108,8 @@ make_toolbar(GtkWidget *main_vbox, GtkWidget *window)
|
|||
|
||||
make_toolbar_icon(toolbar, window, open_xpm, "Open",
|
||||
_("Open"), toolbar_command, &data->cmd_open);
|
||||
make_toolbar_icon(toolbar, window, save_xpm, _("Save"),
|
||||
"Save", toolbar_command, &data->cmd_save);
|
||||
make_toolbar_icon(toolbar, window, save_xpm, "Save",
|
||||
_("Save"), toolbar_command, &data->cmd_save);
|
||||
gtk_toolbar_append_space(GTK_TOOLBAR(toolbar));
|
||||
make_toolbar_icon(toolbar, window, preferences_xpm, "Preferences",
|
||||
_("Preferences"), toolbar_command,
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "imap_circle.h"
|
||||
#include "imap_edit_area_info.h"
|
||||
#include "imap_main.h"
|
||||
|
|
|
@ -222,6 +222,7 @@ plug-ins/imagemap/imap_main.c
|
|||
plug-ins/imagemap/imap_menu.c
|
||||
plug-ins/imagemap/imap_polygon.c
|
||||
plug-ins/imagemap/imap_popup.c
|
||||
plug-ins/imagemap/imap_preferences.c
|
||||
plug-ins/imagemap/imap_rectangle.c
|
||||
plug-ins/imagemap/imap_selection.c
|
||||
plug-ins/imagemap/imap_settings.c
|
||||
|
|
Loading…
Reference in a new issue