I18n improvements based on a patch from Zbigniew Chyla:

2006-06-27  Sven Neumann  <sven@gimp.org>

	I18n improvements based on a patch from Zbigniew Chyla:

	* app/main.c:
	* modules/controller_midi.c
	* plug-ins/script-fu/scripts/guides-new.scm: marked strings for
	translation.

	* app/widgets/gimpdock.c
	* libgimpwidgets/gimppageselector.c
	* plug-ins/common/plugin-browser.c: use ngettext() for plural
forms.
This commit is contained in:
Sven Neumann 2006-06-27 07:49:14 +00:00 committed by Sven Neumann
parent 824b31e454
commit 7b1327dd86
7 changed files with 35 additions and 10 deletions

View File

@ -1,3 +1,16 @@
2006-06-27 Sven Neumann <sven@gimp.org>
I18n improvements based on a patch from Zbigniew Chyla:
* app/main.c:
* modules/controller_midi.c
* plug-ins/script-fu/scripts/guides-new.scm: marked strings for
translation.
* app/widgets/gimpdock.c
* libgimpwidgets/gimppageselector.c
* plug-ins/common/plugin-browser.c: use ngettext() for plural forms.
2006-06-27 Sven Neumann <sven@gimp.org>
* libgimp/gimpexport.c (gimp_export_image): use NULL as the

View File

@ -284,7 +284,7 @@ main (int argc,
no_interface = TRUE;
#endif
context = g_option_context_new ("[FILE|URI...]");
context = g_option_context_new (_("[FILE|URI...]"));
g_option_context_add_main_entries (context, main_entries, GETTEXT_PACKAGE);
app_libs_init (context, no_interface);

View File

@ -301,9 +301,14 @@ gimp_dock_delete_event (GtkWidget *widget,
gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("Close all tabs?"));
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("This window has %d tabs open. Closing the "
"window will also close all its tabs."), n);
ngettext ("This window has %d tab open. "
"Closing the window will also close "
"all its tabs.",
"This window has %d tabs open. "
"Closing the window will also close "
"all its tabs.", n), n);
retval = (gimp_dialog_run (GIMP_DIALOG (dialog)) != GTK_RESPONSE_OK);

View File

@ -1180,9 +1180,14 @@ gimp_page_selector_selection_changed (GtkIconView *icon_view,
gchar *text;
if (n_selected == priv->n_pages)
text = g_strdup_printf (_("All %d pages selected"), n_selected);
text = g_strdup_printf (ngettext ("All %d page selected",
"All %d pages selected", n_selected),
n_selected);
else
text = g_strdup_printf (_("%d pages selected"), n_selected);
text = g_strdup_printf (ngettext ("%d page selected",
"%d pages selected",
n_selected),
n_selected);
gtk_label_set_text (GTK_LABEL (priv->count_label), text);
g_free (text);

View File

@ -380,13 +380,13 @@ midi_get_event_blurb (GimpController *controller,
if (! midi_events[event_id].blurb)
{
if (event_id <= 127)
midi_events[event_id].blurb = g_strdup_printf ("Note %02x on",
midi_events[event_id].blurb = g_strdup_printf (_("Note %02x on"),
event_id);
else if (event_id <= 255)
midi_events[event_id].blurb = g_strdup_printf ("Note %02x off",
midi_events[event_id].blurb = g_strdup_printf (_("Note %02x off"),
event_id - 128);
else if (event_id <= 383)
midi_events[event_id].blurb = g_strdup_printf ("Controller %03d",
midi_events[event_id].blurb = g_strdup_printf (_("Controller %03d"),
event_id - 256);
}

View File

@ -383,7 +383,9 @@ browser_search (GimpBrowser *gimp_browser,
if (! search_text || strlen (search_text) == 0)
{
str = g_strdup_printf (_("%d plug-ins"), num_plugins);
str = g_strdup_printf (ngettext ("%d plug-in", "%d plug-ins",
num_plugins),
num_plugins);
}
else
{

View File

@ -29,7 +29,7 @@
SF-DRAWABLE "Drawable" 0
SF-OPTION _"Direction" '(_"Horizontal"
_"Vertical")
SF-ADJUSTMENT "Position" '(0 0 262144 1 10 0 1))
SF-ADJUSTMENT _"Position" '(0 0 262144 1 10 0 1))
(script-fu-menu-register "script-fu-guide-new"
"<Image>/Image/Guides")