mirror of https://github.com/GNOME/gimp.git
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:
parent
824b31e454
commit
7b1327dd86
13
ChangeLog
13
ChangeLog
|
@ -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>
|
2006-06-27 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* libgimp/gimpexport.c (gimp_export_image): use NULL as the
|
* libgimp/gimpexport.c (gimp_export_image): use NULL as the
|
||||||
|
|
|
@ -284,7 +284,7 @@ main (int argc,
|
||||||
no_interface = TRUE;
|
no_interface = TRUE;
|
||||||
#endif
|
#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);
|
g_option_context_add_main_entries (context, main_entries, GETTEXT_PACKAGE);
|
||||||
|
|
||||||
app_libs_init (context, no_interface);
|
app_libs_init (context, no_interface);
|
||||||
|
|
|
@ -301,9 +301,14 @@ gimp_dock_delete_event (GtkWidget *widget,
|
||||||
|
|
||||||
gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
|
gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
|
||||||
_("Close all tabs?"));
|
_("Close all tabs?"));
|
||||||
|
|
||||||
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,
|
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,
|
||||||
_("This window has %d tabs open. Closing the "
|
ngettext ("This window has %d tab open. "
|
||||||
"window will also close all its tabs."), n);
|
"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);
|
retval = (gimp_dialog_run (GIMP_DIALOG (dialog)) != GTK_RESPONSE_OK);
|
||||||
|
|
||||||
|
|
|
@ -1180,9 +1180,14 @@ gimp_page_selector_selection_changed (GtkIconView *icon_view,
|
||||||
gchar *text;
|
gchar *text;
|
||||||
|
|
||||||
if (n_selected == priv->n_pages)
|
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
|
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);
|
gtk_label_set_text (GTK_LABEL (priv->count_label), text);
|
||||||
g_free (text);
|
g_free (text);
|
||||||
|
|
|
@ -380,13 +380,13 @@ midi_get_event_blurb (GimpController *controller,
|
||||||
if (! midi_events[event_id].blurb)
|
if (! midi_events[event_id].blurb)
|
||||||
{
|
{
|
||||||
if (event_id <= 127)
|
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);
|
event_id);
|
||||||
else if (event_id <= 255)
|
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);
|
event_id - 128);
|
||||||
else if (event_id <= 383)
|
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);
|
event_id - 256);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -383,7 +383,9 @@ browser_search (GimpBrowser *gimp_browser,
|
||||||
|
|
||||||
if (! search_text || strlen (search_text) == 0)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
SF-DRAWABLE "Drawable" 0
|
SF-DRAWABLE "Drawable" 0
|
||||||
SF-OPTION _"Direction" '(_"Horizontal"
|
SF-OPTION _"Direction" '(_"Horizontal"
|
||||||
_"Vertical")
|
_"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"
|
(script-fu-menu-register "script-fu-guide-new"
|
||||||
"<Image>/Image/Guides")
|
"<Image>/Image/Guides")
|
||||||
|
|
Loading…
Reference in New Issue