Commit da5426cc authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

libgimp/gimpprocbrowserdialog.c libgimpwidgets/gimppropwidgets.c use

2005-11-02  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpprocbrowserdialog.c
	* libgimpwidgets/gimppropwidgets.c
	* plug-ins/uri/uri-backend-wget.c: use dngettext() for plural
	forms. Fixes bug #320460, bug #320461 and bug #320462.
parent afde82bb
2005-11-02 Michael Natterer <mitch@gimp.org>
* libgimp/gimpprocbrowserdialog.c
* libgimpwidgets/gimppropwidgets.c
* plug-ins/uri/uri-backend-wget.c: use dngettext() for plural
forms. Fixes bug #320460, bug #320461 and bug #320462.
2005-11-02 Sven Neumann <sven@gimp.org>
* app/widgets/gimpclipboard.[ch] (gimp_clipboard_set_text): clear
......
......@@ -481,8 +481,10 @@ browser_search (GimpBrowser *browser,
if (! query_text || strlen (query_text) == 0)
{
/* translate with the appropriate plural form for a *lot* of procedures */
str = g_strdup_printf (_("%d procedures"), num_procs);
str = g_strdup_printf (dngettext (GETTEXT_PACKAGE "-libgimp",
"%d procedure",
"%d procedures",
num_procs), num_procs);
}
else
{
......
......@@ -1865,9 +1865,10 @@ gimp_prop_text_buffer_callback (GtkTextBuffer *text_buffer,
if (max_len > 0 && strlen (text) > max_len)
{
/* translate with the appropriate plural form for many characters */
g_message (_("This text input field is limited to %d characters."),
max_len);
g_message (dngettext (GETTEXT_PACKAGE "-libgimp",
"This text input field is limited to %d character.",
"This text input field is limited to %d characters.",
max_len), max_len);
gtk_text_buffer_get_iter_at_offset (text_buffer, &start_iter,
max_len - 1);
......
......@@ -37,7 +37,7 @@
#include "libgimp/stdplugins-intl.h"
#define TIMEOUT "300"
#define TIMEOUT 300
#define BUFSIZE 1024
......@@ -89,6 +89,8 @@ uri_backend_load_image (const gchar *uri,
}
else if (pid == 0)
{
gchar timeout_str[16];
close (p[0]);
close (2);
dup (p[1]);
......@@ -101,7 +103,9 @@ uri_backend_load_image (const gchar *uri,
putenv ("LANG=C");
#endif
execlp ("wget", "wget", "-e", "server-response=off", "-T", TIMEOUT,
g_snprintf (timeout_str, sizeof (timeout_str), "%d", TIMEOUT);
execlp ("wget", "wget", "-e", "server-response=off", "-T", timeout_str,
uri, "-O", tmpname, NULL);
g_set_error (error, 0, 0, "exec() failed: wget: %s", g_strerror (errno));
_exit (127);
......@@ -168,7 +172,10 @@ uri_backend_load_image (const gchar *uri,
/* The third line is "Connecting to..." */
/* translate with the appropriate plural form for many seconds */
timeout_msg = g_strdup_printf (_("(timeout is %s seconds)"), TIMEOUT);
timeout_msg = g_strdup_printf (dngettext (GETTEXT_PACKAGE "-std-plug-ins",
"(timeout is %d second)",
"(timeout is %d seconds)",
TIMEOUT), TIMEOUT);
gimp_progress_init_printf ("%s %s",
_("Connecting to server"), timeout_msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment