i18n stuff

--Sven
This commit is contained in:
Sven Neumann 1999-11-22 22:38:02 +00:00
parent eb7d301336
commit 399e35b6c4
37 changed files with 3303 additions and 2525 deletions

View File

@ -1,3 +1,23 @@
Mon Nov 22 23:29:16 MET 1999 Sven Neumann <sven@gimp.org>
* app/airbrush.c
* app/devices.c
* app/menus.c
* app/module_db.c
* app/paint_core.c
* app/preferences_dialog.c
* app/tools.c
* po-plug-ins/POTFILES.in
* plug-ins/helpbrowser/helpbrowser.c
* plug-ins/gap/gap_range_ops.c
* plug-ins/common/rotate.c
* plug-ins/common/screenshot.c
* libgimp/gimpenv.c
* libgimp/gimpunitmenu.c: internationalization stuff:
Fixed a few typos, internationalized some plug-ins, removed the
_() from a few strings that are only debugging messages.
And the rotate plug-ins are now put into a sane order in the menus.
Mon Nov 22 13:18:40 GMT 1999 Adam D. Moss <adam@gimp.org>
* app/channel_ops.c: Disabled the copy-on-write for gimage

View File

@ -201,7 +201,7 @@ airbrush_paint_func (PaintCore *paint_core,
/* timer_state = OFF; */
if (timer_state == ON)
{
g_warning (_("killing stray timer, please report to lewing@gimp.org"));
g_warning ("killing stray timer, please report to lewing@gimp.org");
gtk_timeout_remove (timer);
}
timer_state = OFF;

View File

@ -439,8 +439,8 @@ devices_rc_update (gchar *name,
}
else
{
g_warning (_("devices_rc_update called multiple times "
"for not present device\n"));
g_warning ("devices_rc_update called multiple times "
"for not present device\n");
return;
}
}

View File

@ -607,10 +607,10 @@ mod_load (module_info *mod,
if (mod->last_module_error)
g_free (mod->last_module_error);
mod->last_module_error = g_strdup (_("missing module_init() symbol"));
mod->last_module_error = g_strdup ("missing module_init() symbol");
if (verbose)
g_warning (_("%s: module_init() symbol not found"), mod->fullpath);
g_warning ("%s: module_init() symbol not found", mod->fullpath);
g_module_close (mod->module);
mod->module = NULL;

View File

@ -250,7 +250,7 @@ file_prefs_ok_callback (GtkWidget *widget,
if (default_xresolution < GIMP_MIN_RESOLUTION ||
default_yresolution < GIMP_MIN_RESOLUTION)
{
g_message (_("Error: default resolution must not be zero."));
g_message (_("Error: Default resolution must not be zero."));
default_xresolution = old_default_xresolution;
default_yresolution = old_default_yresolution;
return;

View File

@ -439,8 +439,8 @@ devices_rc_update (gchar *name,
}
else
{
g_warning (_("devices_rc_update called multiple times "
"for not present device\n"));
g_warning ("devices_rc_update called multiple times "
"for not present device\n");
return;
}
}

View File

@ -439,8 +439,8 @@ devices_rc_update (gchar *name,
}
else
{
g_warning (_("devices_rc_update called multiple times "
"for not present device\n"));
g_warning ("devices_rc_update called multiple times "
"for not present device\n");
return;
}
}

View File

@ -934,9 +934,16 @@ menus_reorder_plugins (void)
static gint n_xtns_plugins = (sizeof (xtns_plugins) /
sizeof (xtns_plugins[0]));
static gchar *rotate_plugins[] = { "90 degrees",
"180 degrees",
"270 degrees" };
static gint n_rotate_plugins = (sizeof (rotate_plugins) /
sizeof (rotate_plugins[0]));
GtkWidget *menu;
GtkWidget *menu_item;
GList *list;
gchar *path;
gint i, pos;
/* Beautify <Toolbox>/Xtns */
@ -973,6 +980,32 @@ menus_reorder_plugins (void)
if (menu_item->submenu)
menus_filters_subdirs_to_top (GTK_MENU (menu_item->submenu));
}
/* Reorder Rotate plugin menu entries */
pos = 2;
for (i = 0; i < n_rotate_plugins; i++)
{
path = g_strconcat ("/Image/Transforms/Rotate/", rotate_plugins[i], NULL);
menu_item = gtk_item_factory_get_widget (image_factory, path);
if (menu_item && menu_item->parent)
{
gtk_menu_reorder_child (GTK_MENU (menu_item->parent), menu_item, pos);
pos++;
}
g_free (path);
}
pos = 2;
for (i = 0; i < n_rotate_plugins; i++)
{
path = g_strconcat ("/Layers/Rotate/", rotate_plugins[i], NULL);
menu_item = gtk_item_factory_get_widget (image_factory, path);
if (menu_item && menu_item->parent)
{
gtk_menu_reorder_child (GTK_MENU (menu_item->parent), menu_item, pos);
pos++;
}
g_free (path);
}
}
static void
@ -1567,7 +1600,7 @@ tearoff_cmd_callback (GtkWidget *widget,
/* This should be a window */
if (!GTK_IS_WINDOW (top))
{
g_message(_("tearoff menu not in top level window"));
g_message("tearoff menu not in top level window");
}
else
{
@ -1590,7 +1623,7 @@ tearoff_cmd_callback (GtkWidget *widget,
if (!top)
{
g_message (_("can't unregister tearoff menu top level window"));
g_message ("can't unregister tearoff menu top level window");
}
else
{

View File

@ -607,10 +607,10 @@ mod_load (module_info *mod,
if (mod->last_module_error)
g_free (mod->last_module_error);
mod->last_module_error = g_strdup (_("missing module_init() symbol"));
mod->last_module_error = g_strdup ("missing module_init() symbol");
if (verbose)
g_warning (_("%s: module_init() symbol not found"), mod->fullpath);
g_warning ("%s: module_init() symbol not found", mod->fullpath);
g_module_close (mod->module);
mod->module = NULL;

View File

@ -250,7 +250,7 @@ file_prefs_ok_callback (GtkWidget *widget,
if (default_xresolution < GIMP_MIN_RESOLUTION ||
default_yresolution < GIMP_MIN_RESOLUTION)
{
g_message (_("Error: default resolution must not be zero."));
g_message (_("Error: Default resolution must not be zero."));
default_xresolution = old_default_xresolution;
default_yresolution = old_default_yresolution;
return;

View File

@ -934,9 +934,16 @@ menus_reorder_plugins (void)
static gint n_xtns_plugins = (sizeof (xtns_plugins) /
sizeof (xtns_plugins[0]));
static gchar *rotate_plugins[] = { "90 degrees",
"180 degrees",
"270 degrees" };
static gint n_rotate_plugins = (sizeof (rotate_plugins) /
sizeof (rotate_plugins[0]));
GtkWidget *menu;
GtkWidget *menu_item;
GList *list;
gchar *path;
gint i, pos;
/* Beautify <Toolbox>/Xtns */
@ -973,6 +980,32 @@ menus_reorder_plugins (void)
if (menu_item->submenu)
menus_filters_subdirs_to_top (GTK_MENU (menu_item->submenu));
}
/* Reorder Rotate plugin menu entries */
pos = 2;
for (i = 0; i < n_rotate_plugins; i++)
{
path = g_strconcat ("/Image/Transforms/Rotate/", rotate_plugins[i], NULL);
menu_item = gtk_item_factory_get_widget (image_factory, path);
if (menu_item && menu_item->parent)
{
gtk_menu_reorder_child (GTK_MENU (menu_item->parent), menu_item, pos);
pos++;
}
g_free (path);
}
pos = 2;
for (i = 0; i < n_rotate_plugins; i++)
{
path = g_strconcat ("/Layers/Rotate/", rotate_plugins[i], NULL);
menu_item = gtk_item_factory_get_widget (image_factory, path);
if (menu_item && menu_item->parent)
{
gtk_menu_reorder_child (GTK_MENU (menu_item->parent), menu_item, pos);
pos++;
}
g_free (path);
}
}
static void
@ -1567,7 +1600,7 @@ tearoff_cmd_callback (GtkWidget *widget,
/* This should be a window */
if (!GTK_IS_WINDOW (top))
{
g_message(_("tearoff menu not in top level window"));
g_message("tearoff menu not in top level window");
}
else
{
@ -1590,7 +1623,7 @@ tearoff_cmd_callback (GtkWidget *widget,
if (!top)
{
g_message (_("can't unregister tearoff menu top level window"));
g_message ("can't unregister tearoff menu top level window");
}
else
{

View File

@ -934,9 +934,16 @@ menus_reorder_plugins (void)
static gint n_xtns_plugins = (sizeof (xtns_plugins) /
sizeof (xtns_plugins[0]));
static gchar *rotate_plugins[] = { "90 degrees",
"180 degrees",
"270 degrees" };
static gint n_rotate_plugins = (sizeof (rotate_plugins) /
sizeof (rotate_plugins[0]));
GtkWidget *menu;
GtkWidget *menu_item;
GList *list;
gchar *path;
gint i, pos;
/* Beautify <Toolbox>/Xtns */
@ -973,6 +980,32 @@ menus_reorder_plugins (void)
if (menu_item->submenu)
menus_filters_subdirs_to_top (GTK_MENU (menu_item->submenu));
}
/* Reorder Rotate plugin menu entries */
pos = 2;
for (i = 0; i < n_rotate_plugins; i++)
{
path = g_strconcat ("/Image/Transforms/Rotate/", rotate_plugins[i], NULL);
menu_item = gtk_item_factory_get_widget (image_factory, path);
if (menu_item && menu_item->parent)
{
gtk_menu_reorder_child (GTK_MENU (menu_item->parent), menu_item, pos);
pos++;
}
g_free (path);
}
pos = 2;
for (i = 0; i < n_rotate_plugins; i++)
{
path = g_strconcat ("/Layers/Rotate/", rotate_plugins[i], NULL);
menu_item = gtk_item_factory_get_widget (image_factory, path);
if (menu_item && menu_item->parent)
{
gtk_menu_reorder_child (GTK_MENU (menu_item->parent), menu_item, pos);
pos++;
}
g_free (path);
}
}
static void
@ -1567,7 +1600,7 @@ tearoff_cmd_callback (GtkWidget *widget,
/* This should be a window */
if (!GTK_IS_WINDOW (top))
{
g_message(_("tearoff menu not in top level window"));
g_message("tearoff menu not in top level window");
}
else
{
@ -1590,7 +1623,7 @@ tearoff_cmd_callback (GtkWidget *widget,
if (!top)
{
g_message (_("can't unregister tearoff menu top level window"));
g_message ("can't unregister tearoff menu top level window");
}
else
{

View File

@ -607,10 +607,10 @@ mod_load (module_info *mod,
if (mod->last_module_error)
g_free (mod->last_module_error);
mod->last_module_error = g_strdup (_("missing module_init() symbol"));
mod->last_module_error = g_strdup ("missing module_init() symbol");
if (verbose)
g_warning (_("%s: module_init() symbol not found"), mod->fullpath);
g_warning ("%s: module_init() symbol not found", mod->fullpath);
g_module_close (mod->module);
mod->module = NULL;

View File

@ -201,7 +201,7 @@ airbrush_paint_func (PaintCore *paint_core,
/* timer_state = OFF; */
if (timer_state == ON)
{
g_warning (_("killing stray timer, please report to lewing@gimp.org"));
g_warning ("killing stray timer, please report to lewing@gimp.org");
gtk_timeout_remove (timer);
}
timer_state = OFF;

View File

@ -1766,7 +1766,7 @@ set_undo_tiles (GimpDrawable *drawable,
if (undo_tiles == NULL)
{
g_warning (_("set_undo_tiles: undo_tiles is null"));
g_warning ("set_undo_tiles: undo_tiles is null");
return;
}

View File

@ -250,7 +250,7 @@ file_prefs_ok_callback (GtkWidget *widget,
if (default_xresolution < GIMP_MIN_RESOLUTION ||
default_yresolution < GIMP_MIN_RESOLUTION)
{
g_message (_("Error: default resolution must not be zero."));
g_message (_("Error: Default resolution must not be zero."));
default_xresolution = old_default_xresolution;
default_yresolution = old_default_yresolution;
return;

View File

@ -735,7 +735,7 @@ ToolInfo tool_info[] =
N_("/Image/Histogram..."),
NULL,
NULL,
N_("View image historgam"),
N_("View image histogram"),
"tools/histogram.html",
HISTOGRAM,
tools_new_histogram_tool,

View File

@ -201,7 +201,7 @@ airbrush_paint_func (PaintCore *paint_core,
/* timer_state = OFF; */
if (timer_state == ON)
{
g_warning (_("killing stray timer, please report to lewing@gimp.org"));
g_warning ("killing stray timer, please report to lewing@gimp.org");
gtk_timeout_remove (timer);
}
timer_state = OFF;

View File

@ -201,7 +201,7 @@ airbrush_paint_func (PaintCore *paint_core,
/* timer_state = OFF; */
if (timer_state == ON)
{
g_warning (_("killing stray timer, please report to lewing@gimp.org"));
g_warning ("killing stray timer, please report to lewing@gimp.org");
gtk_timeout_remove (timer);
}
timer_state = OFF;

View File

@ -1766,7 +1766,7 @@ set_undo_tiles (GimpDrawable *drawable,
if (undo_tiles == NULL)
{
g_warning (_("set_undo_tiles: undo_tiles is null"));
g_warning ("set_undo_tiles: undo_tiles is null");
return;
}

View File

@ -735,7 +735,7 @@ ToolInfo tool_info[] =
N_("/Image/Histogram..."),
NULL,
NULL,
N_("View image historgam"),
N_("View image histogram"),
"tools/histogram.html",
HISTOGRAM,
tools_new_histogram_tool,

View File

@ -439,8 +439,8 @@ devices_rc_update (gchar *name,
}
else
{
g_warning (_("devices_rc_update called multiple times "
"for not present device\n"));
g_warning ("devices_rc_update called multiple times "
"for not present device\n");
return;
}
}

View File

@ -439,8 +439,8 @@ devices_rc_update (gchar *name,
}
else
{
g_warning (_("devices_rc_update called multiple times "
"for not present device\n"));
g_warning ("devices_rc_update called multiple times "
"for not present device\n");
return;
}
}

View File

@ -934,9 +934,16 @@ menus_reorder_plugins (void)
static gint n_xtns_plugins = (sizeof (xtns_plugins) /
sizeof (xtns_plugins[0]));
static gchar *rotate_plugins[] = { "90 degrees",
"180 degrees",
"270 degrees" };
static gint n_rotate_plugins = (sizeof (rotate_plugins) /
sizeof (rotate_plugins[0]));
GtkWidget *menu;
GtkWidget *menu_item;
GList *list;
gchar *path;
gint i, pos;
/* Beautify <Toolbox>/Xtns */
@ -973,6 +980,32 @@ menus_reorder_plugins (void)
if (menu_item->submenu)
menus_filters_subdirs_to_top (GTK_MENU (menu_item->submenu));
}
/* Reorder Rotate plugin menu entries */
pos = 2;
for (i = 0; i < n_rotate_plugins; i++)
{
path = g_strconcat ("/Image/Transforms/Rotate/", rotate_plugins[i], NULL);
menu_item = gtk_item_factory_get_widget (image_factory, path);
if (menu_item && menu_item->parent)
{
gtk_menu_reorder_child (GTK_MENU (menu_item->parent), menu_item, pos);
pos++;
}
g_free (path);
}
pos = 2;
for (i = 0; i < n_rotate_plugins; i++)
{
path = g_strconcat ("/Layers/Rotate/", rotate_plugins[i], NULL);
menu_item = gtk_item_factory_get_widget (image_factory, path);
if (menu_item && menu_item->parent)
{
gtk_menu_reorder_child (GTK_MENU (menu_item->parent), menu_item, pos);
pos++;
}
g_free (path);
}
}
static void
@ -1567,7 +1600,7 @@ tearoff_cmd_callback (GtkWidget *widget,
/* This should be a window */
if (!GTK_IS_WINDOW (top))
{
g_message(_("tearoff menu not in top level window"));
g_message("tearoff menu not in top level window");
}
else
{
@ -1590,7 +1623,7 @@ tearoff_cmd_callback (GtkWidget *widget,
if (!top)
{
g_message (_("can't unregister tearoff menu top level window"));
g_message ("can't unregister tearoff menu top level window");
}
else
{

View File

@ -23,7 +23,6 @@
#include <glib.h>
#include <string.h>
#include "gimpenv.h"
#include "gimpintl.h"
#ifdef G_OS_WIN32
#define STRICT
@ -83,7 +82,7 @@ gimp_directory ()
else
{
#ifndef G_OS_WIN32
g_message (_("warning: no home directory."));
g_message ("warning: no home directory.");
#endif
gimp_dir = g_strconcat (gimp_data_directory (),
G_DIR_SEPARATOR_S,

View File

@ -330,7 +330,7 @@ gimp_unit_menu_build_string (gchar *format, GUnit unit)
switch (*format)
{
case 0:
g_warning (_("unit-menu-format string ended within %%-sequence"));
g_warning ("unit-menu-format string ended within %%-sequence");
break;
case '%':
@ -363,8 +363,7 @@ gimp_unit_menu_build_string (gchar *format, GUnit unit)
break;
default:
g_warning (_("unit-menu-format contains unknown "
"format sequence '%%%c'"), *format);
g_warning ("unit-menu-format contains unknown format sequence '%%%c'", *format);
break;
}
break;

View File

@ -23,7 +23,6 @@
#include <glib.h>
#include <string.h>
#include "gimpenv.h"
#include "gimpintl.h"
#ifdef G_OS_WIN32
#define STRICT
@ -83,7 +82,7 @@ gimp_directory ()
else
{
#ifndef G_OS_WIN32
g_message (_("warning: no home directory."));
g_message ("warning: no home directory.");
#endif
gimp_dir = g_strconcat (gimp_data_directory (),
G_DIR_SEPARATOR_S,

View File

@ -330,7 +330,7 @@ gimp_unit_menu_build_string (gchar *format, GUnit unit)
switch (*format)
{
case 0:
g_warning (_("unit-menu-format string ended within %%-sequence"));
g_warning ("unit-menu-format string ended within %%-sequence");
break;
case '%':
@ -363,8 +363,7 @@ gimp_unit_menu_build_string (gchar *format, GUnit unit)
break;
default:
g_warning (_("unit-menu-format contains unknown "
"format sequence '%%%c'"), *format);
g_warning ("unit-menu-format contains unknown format sequence '%%%c'", *format);
break;
}
break;

View File

@ -167,8 +167,8 @@ gimp_install_procedure ("plug_in_layer_rot90",
nmenuargs, nreturn_vals,
menuargs, return_vals);
gimp_install_procedure ("plug_in_layer_rot180",
_("Rotates the given layer 180 degrees clockwise."),
_("Rotates the given layer 180 degrees clockwise."),
_("Rotates the given layer 180 degrees."),
_("Rotates the given layer 180 degrees."),
PLUG_IN_AUTHOR,
PLUG_IN_COPYRIGHT,
PLUG_IN_VERSION,
@ -201,8 +201,8 @@ gimp_install_procedure ("plug_in_image_rot90",
nmenuargs, nreturn_vals,
menuargs, return_vals);
gimp_install_procedure ("plug_in_image_rot180",
_("Rotates the given image 180 degrees clockwise."),
_("Rotates the given image 180 degrees clockwise."),
_("Rotates the given image 180 degrees."),
_("Rotates the given image 180 degrees."),
PLUG_IN_AUTHOR,
PLUG_IN_COPYRIGHT,
PLUG_IN_VERSION,

View File

@ -42,7 +42,7 @@
* (98/06/06) v0.9 fixed a stupid bug in the dialog
* (99/08/12) v0.9.1 somebody changed the dialog;
* unset the image name and set the resolution
* (99/09/01) v0.9.2 try to fix a bug
* (99/09/01) v0.9.2 tried to fix a bug
*/
#include <stdio.h>
@ -54,16 +54,10 @@
#endif
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
/* Defines */
#define PLUG_IN_NAME "extension_screenshot"
#define PLUG_IN_PRINT_NAME "Screen Shot"
#define PLUG_IN_VERSION "v0.9.2 (99/09/01)"
#define PLUG_IN_MENU_PATH "<Toolbox>/File/Acquire/Screen Shot..."
#define PLUG_IN_AUTHOR "Sven Neumann (neumanns@uni-duesseldorf.de)"
#define PLUG_IN_COPYRIGHT "Sven Neumann"
#define PLUG_IN_DESCRIBTION "Create a screenshot of a single window or the whole screen"
#define PLUG_IN_HELP "This extension serves as a simple frontend to the X-window utility xwd and the xwd-file-plug-in. After specifying some options, xwd is called, the user selects a window, and the resulting image is loaded into the gimp. Alternatively the whole screen can be grabbed. When called non-interactively it may grab the root window or use the window-id passed as a parameter."
#define NUMBER_IN_ARGS 3
#define IN_ARGS { PARAM_INT32, "run_mode", "Interactive, non-interactive" },\
@ -149,12 +143,18 @@ static void query (void)
/* the actual installation of the plugin */
gimp_install_procedure (PLUG_IN_NAME,
PLUG_IN_DESCRIBTION,
PLUG_IN_HELP,
PLUG_IN_AUTHOR,
PLUG_IN_COPYRIGHT,
PLUG_IN_VERSION,
PLUG_IN_MENU_PATH,
_("Creates a screenshot of a single window or the whole screen"),
_("This extension serves as a simple frontend to the X-window "
"utility xwd and the xwd-file-plug-in. After specifying some "
"options, xwd is called, the user selects a window, and the "
"resulting image is loaded into the gimp. Alternatively the "
"whole screen can be grabbed. When called non-interactively "
"it may grab the root window or use the window-id passed as "
"a parameter."),
"Sven Neumann <sven@gimp.org>",
"1998, 1999 Sven Neumann",
"v0.9.2 (99/09/01)",
_("<Toolbox>/File/Acquire/Screen Shot..."),
NULL,
PROC_EXTENSION,
nargs,
@ -373,6 +373,7 @@ shoot_dialog (void)
GtkWidget *vbox;
GtkWidget *button;
GtkWidget *hbox;
GtkWidget *hbbox;
GtkWidget *label;
GSList *radio_group = NULL;
GtkAdjustment *adj;
@ -396,29 +397,34 @@ shoot_dialog (void)
/* Main Dialog */
dialog = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dialog), PLUG_IN_PRINT_NAME);
gtk_window_set_title (GTK_WINDOW (dialog), _("Screen Shot"));
gtk_window_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dialog), "destroy",
(GtkSignalFunc) shoot_close_callback,
NULL);
/* Action area */
button = gtk_button_new_with_label ("Grab");
gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), 2);
gtk_box_set_homogeneous (GTK_BOX (GTK_DIALOG (dialog)->action_area), FALSE);
hbbox = gtk_hbutton_box_new ();
gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbbox), 4);
gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dialog)->action_area), hbbox, FALSE, FALSE, 0);
gtk_widget_show (hbbox);
button = gtk_button_new_with_label (_("Grab"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) shoot_ok_callback,
dialog);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->action_area),
button, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (hbbox), button, FALSE, FALSE, 0);
gtk_widget_grab_default (button);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Cancel");
button = gtk_button_new_with_label (_("Cancel"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gtk_widget_destroy,
GTK_OBJECT (dialog));
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->action_area),
button, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (hbbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
/* Single Window */
@ -443,7 +449,7 @@ shoot_dialog (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (shootint.single_button),
radio_pressed[0]);
gtk_widget_show (shootint.single_button);
label = gtk_label_new ( "Grab a single window" );
label = gtk_label_new (_("Grab a single window"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
gtk_widget_show (hbox);
@ -451,7 +457,7 @@ shoot_dialog (void)
/* with decorations */
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_end (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
shootint.decor_button = gtk_check_button_new_with_label ("Include decorations");
shootint.decor_button = gtk_check_button_new_with_label (_("Include decorations"));
gtk_signal_connect (GTK_OBJECT (shootint.decor_button), "toggled",
(GtkSignalFunc) shoot_toggle_update,
&decorations);
@ -484,7 +490,7 @@ shoot_dialog (void)
&radio_pressed[1]);
gtk_widget_show (shootint.root_button);
label = gtk_label_new ("Grab the whole screen");
label = gtk_label_new (_("Grab the whole screen"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -497,7 +503,7 @@ shoot_dialog (void)
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
hbox, TRUE, TRUE, 2);
label = gtk_label_new ("after");
label = gtk_label_new (_("after"));
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 4);
gtk_widget_show (label);
@ -506,7 +512,7 @@ shoot_dialog (void)
gtk_box_pack_start (GTK_BOX(hbox), shootint.delay_spinner, FALSE, TRUE, 0);
gtk_widget_show(shootint.delay_spinner);
label = gtk_label_new ("seconds delay");
label = gtk_label_new (_("seconds delay"));
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 4);
gtk_widget_show (label);

View File

@ -326,7 +326,7 @@ p_convert_indexed_dialog(gint32 *dest_colors, gint32 *dest_dither,
p_init_arr_arg(&argv[3], WGT_INT_PAIR);
argv[3].constraint = TRUE;
argv[3].label_txt = _("Number ofColors");
argv[3].label_txt = _("Number of Colors");
argv[3].help_txt = _("Number of resulting Colors \n(ignored if Palette Type is not Generate optimal palette)");
argv[3].int_min = 2;
argv[3].int_max = 256;

View File

@ -30,6 +30,8 @@
#include <gtk-xmhtml/gtk-xmhtml.h>
#include <gdk/gdkkeysyms.h>
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
#include "queue.h"
/* pixmaps */
@ -85,38 +87,38 @@ typedef struct
/* constant strings */
static char *doc_not_found_format_string =
"<html><head><title>Document not found</title></head>"
"<body bgcolor=\"#ffffff\">"
"<center>"
"<p>"
"%s"
"<h3>Couldn't find document</h3>"
"<tt>%s</tt>"
"</center>"
"<p>"
"<small>This either means that the help for this topic has not been written yet "
"or that something is wrong with your installation. Please check carefully "
"before you report this as a bug.</small>"
"</body>"
"</html>";
_("<html><head><title>Document not found</title></head>"
"<body bgcolor=\"#ffffff\">"
"<center>"
"<p>"
"%s"
"<h3>Couldn't find document</h3>"
"<tt>%s</tt>"
"</center>"
"<p>"
"<small>This either means that the help for this topic has not been written "
"yet or that something is wrong with your installation. "
"Please check carefully before you report this as a bug.</small>"
"</body>"
"</html>");
static char *dir_not_found_format_string =
"<html><head><title>Directory not found</title></head>"
"<body bgcolor=\"#ffffff\">"
"<center>"
"<p>"
"%s"
"<h3>Couldn't change to directory</h3>"
"<tt>%s</tt>"
"<h3>while trying to access</h3>"
"<tt>%s</tt>"
"</center>"
"<p>"
"<small>This either means that the help for this topic has not been written yet "
"or that something is wrong with your installation. Please check carefully "
"before you report this as a bug.</small>"
"</body>"
"</html>";
_("<html><head><title>Directory not found</title></head>"
"<body bgcolor=\"#ffffff\">"
"<center>"
"<p>"
"%s"
"<h3>Couldn't change to directory</h3>"
"<tt>%s</tt>"
"<h3>while trying to access</h3>"
"<tt>%s</tt>"
"</center>"
"<p>"
"<small>This either means that the help for this topic has not been written "
"yet or that something is wrong with your installation. "
"Please check carefully before you report this as a bug.</small>"
"</body>"
"</html>");
static gchar *eek_png_tag = "<h1>Eeek!</h1>";
@ -127,7 +129,7 @@ static HelpPage pages[] =
{
{
CONTENTS,
"Contents",
N_("Contents"),
NULL,
NULL,
NULL,
@ -136,7 +138,7 @@ static HelpPage pages[] =
{
INDEX,
"Index",
N_("Index"),
NULL,
NULL,
NULL,
@ -145,7 +147,7 @@ static HelpPage pages[] =
{
HELP,
"Help",
NULL,
NULL,
NULL,
NULL,
@ -393,7 +395,7 @@ html_source (HelpPage *page,
{
title = XmHTMLGetTitle (page->html);
if (!title)
title = ("<Untitled>");
title = (_("<Untitled>"));
if (add_to_history)
history_add (ref, title);
@ -730,8 +732,8 @@ open_browser_dialog (gchar *path)
if (chdir (root_dir) == -1)
{
gimp_message ("GIMP Help Browser Error.\n\n"
"Couldn't find my root html directory.");
gimp_message (_("GIMP Help Browser Error.\n\n"
"Couldn't find my root html directory."));
return FALSE;
}
@ -751,7 +753,7 @@ open_browser_dialog (gchar *path)
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC (close_callback), NULL);
gtk_window_set_wmclass (GTK_WINDOW (window), "gimp_help_browser", "Gimp");
gtk_window_set_title (GTK_WINDOW (window), "GIMP Help Browser");
gtk_window_set_title (GTK_WINDOW (window), _("GIMP Help Browser"));
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (window), vbox);
@ -763,14 +765,14 @@ open_browser_dialog (gchar *path)
gtk_button_box_set_spacing (GTK_BUTTON_BOX (bbox), 0);
gtk_box_pack_start (GTK_BOX (hbox), bbox, FALSE, FALSE, 0);
back_button = pixmap_button_new (back_xpm, "Back", window);
back_button = pixmap_button_new (back_xpm, _("Back"), window);
gtk_container_add (GTK_CONTAINER (bbox), back_button);
gtk_widget_set_sensitive (GTK_WIDGET (back_button), FALSE);
gtk_signal_connect (GTK_OBJECT (back_button), "clicked",
GTK_SIGNAL_FUNC (back_callback), NULL);
gtk_widget_show (back_button);
forward_button = pixmap_button_new (forward_xpm, "Forward", window);
forward_button = pixmap_button_new (forward_xpm, _("Forward"), window);
gtk_container_add (GTK_CONTAINER (bbox), forward_button);
gtk_widget_set_sensitive (GTK_WIDGET (forward_button), FALSE);
gtk_signal_connect (GTK_OBJECT (forward_button), "clicked",
@ -782,7 +784,7 @@ open_browser_dialog (gchar *path)
bbox = gtk_hbutton_box_new ();
gtk_box_pack_end (GTK_BOX (hbox), bbox, FALSE, FALSE, 0);
button = gtk_button_new_with_label ("Close");
button = gtk_button_new_with_label (_("Close"));
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
gtk_container_add (GTK_CONTAINER (bbox), button);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
@ -819,7 +821,7 @@ open_browser_dialog (gchar *path)
case CONTENTS:
case INDEX:
title = drag_source = gtk_event_box_new ();
label = gtk_label_new (pages[i].label);
label = gtk_label_new (gettext (pages[i].label));
gtk_container_add (GTK_CONTAINER (title), label);
gtk_widget_show (label);
break;
@ -836,10 +838,11 @@ open_browser_dialog (gchar *path)
gtk_widget_show (combo);
break;
default:
title = drag_source = NULL; /* to please the compiler */
break;
}
/* connect to the button_press signal to make notebook switching working */
/* connect to the button_press signal to make notebook switching work */
gtk_signal_connect (GTK_OBJECT (title), "button_press_event",
GTK_SIGNAL_FUNC (notebook_label_button_press_callback),
GUINT_TO_POINTER (i));
@ -1055,8 +1058,9 @@ query ()
static int nreturn_vals = 0;
gimp_install_procedure (GIMP_HELP_EXT_NAME,
"Browse the GIMP help pages.",
"",
_("Browse the GIMP help pages"),
_("A small and simple HTML browser optimzed for "
"browsing the GIMP help pages."),
"Sven Neumann <sven@gimp.org>, "
"Michael Natterer <mitschel@cs.tu-berlin.de>",
"Sven Neumann & Michael Natterer",
@ -1104,14 +1108,16 @@ run (char *name,
path = g_strdup (param[1].data.d_string);
break;
default:
path = NULL;
status = STATUS_CALLING_ERROR;
break;
}
g_strdelimit (path, "/", G_DIR_SEPARATOR);
if (status == STATUS_SUCCESS)
{
if (!open_url (path))
g_strdelimit (path, "/", G_DIR_SEPARATOR);
if (!open_url (path))
values[0].data.d_status = STATUS_EXECUTION_ERROR;
else
values[0].data.d_status = STATUS_SUCCESS;
@ -1119,8 +1125,8 @@ run (char *name,
g_free (path);
}
else
values[0].data.d_status = STATUS_EXECUTION_ERROR;
values[0].data.d_status = status;
}
else
g_assert_not_reached ();
values[0].data.d_status = STATUS_CALLING_ERROR;
}

View File

@ -1,3 +1,9 @@
Mon Nov 22 23:20:27 MET 1999 Sven Neumann <sven@gimp.org>
* de.po: updated
I have only updated the worst fuzzy translations and tried to make
the menu entries consistent. Still much work to do...
1999-11-16 Tor Lillqvist <tml@iki.fi>
* fi.po: Moved the libgimp strings here. They are used by

View File

@ -21,8 +21,8 @@ plug-ins/common/bumpmap.c
plug-ins/common/bz2.c
plug-ins/common/c_astretch.c
plug-ins/common/checkerboard.c
plug-ins/common/colorify.c
plug-ins/common/color_enhance.c
plug-ins/common/colorify.c
plug-ins/common/colortoalpha.c
plug-ins/common/compose.c
plug-ins/common/convmatrix.c
@ -30,10 +30,13 @@ plug-ins/common/cubism.c
plug-ins/common/decompose.c
plug-ins/common/depthmerge.c
plug-ins/common/destripe.c
plug-ins/common/film.c
plug-ins/common/gif.c
plug-ins/common/gifload.c
plug-ins/common/grid.c
plug-ins/common/film.c
plug-ins/common/guillotine.c
plug-ins/common/jpeg.c
plug-ins/common/lic.c
plug-ins/common/mail.c
plug-ins/common/mapcolor.c
plug-ins/common/normalize.c
@ -42,7 +45,9 @@ plug-ins/common/oilify.c
plug-ins/common/papertile.c
plug-ins/common/png.c
plug-ins/common/ps.c
plug-ins/common/psp.c
plug-ins/common/rotate.c
plug-ins/common/screenshot.c
plug-ins/common/threshold_alpha.c
plug-ins/common/warp.c
plug-ins/common/xbm.c
@ -63,6 +68,10 @@ plug-ins/gap/gap_range_ops.c
plug-ins/gap/gap_resi_dialog.c
plug-ins/gap/gap_split.c
plug-ins/gap/resize.c
plug-ins/gdyntext/charmap.c
plug-ins/gdyntext/charmap_window.c
plug-ins/gdyntext/font_selection.c
plug-ins/gdyntext/message_window.c
plug-ins/gimpressionist/brush.c
plug-ins/gimpressionist/color.c
plug-ins/gimpressionist/general.c
@ -78,6 +87,7 @@ plug-ins/gimpressionist/preview.c
plug-ins/gimpressionist/repaint.c
plug-ins/gimpressionist/size.c
plug-ins/gimpressionist/sizemap.c
plug-ins/helpbrowser/helpbrowser.c
plug-ins/ifscompose/ifscompose.c
plug-ins/imagemap/imap_about.c
plug-ins/imagemap/imap_circle.c
@ -132,7 +142,6 @@ plug-ins/sel2path/sel2path.c
plug-ins/sinus/sinus.c
plug-ins/struc/struc.c
libgimp/gimpcolorbutton.c
libgimp/gimpenv.c
libgimp/gimpexport.c
libgimp/gimpfileselection.c
libgimp/gimpunit.c

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,9 @@
Mon Nov 22 23:20:27 MET 1999 Sven Neumann <sven@gimp.org>
* de.po: updated
I have only updated the worst fuzzy translations and tried to make
the menu entries consistent. Still much work to do...
1999-11-19 Stanislav Brabec <utx@penguin.cz>
* cs.po: Updated translation.

2897
po/de.po

File diff suppressed because it is too large Load Diff