On Sun, 6 Feb 2005 15:08:36 +0100
Christian Biere wrote:
> I've tagged a few more translatable but most of them are so
> technical or maybe even cryptic that it's not worth to
> translate them.
I know if internal messages between servent and servent are
translated, it'll be pitifully. If those messages and messages
appearing user-interface is commonized, it needs to be separated
but I don't find that case yet, instead find a few strings can be
candidate.
Index: downloads.c
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/core/downloads.c,v
retrieving revision 1.36
diff -u -r1.36 downloads.c
--- downloads.c 6 Feb 2005 13:39:35 -0000 1.36
+++ downloads.c 7 Feb 2005 05:53:06 -0000
@@ -2989,26 +2989,29 @@
download_guid(d), download_ip(d), download_port(d), TRUE);
} else
download_queue_hold(d, download_retry_refused_delay,
- "No direct connection yet (%d retr%s)",
- d->retries, d->retries == 1 ? "y" : "ies");
+ NG_("No direct connection yet (%d retry)",
+ "No direct connection yet (%d retries)", d->retries),
+ d->retries);
} else if (d->retries < download_max_retries) {
d->retries++;
if (on_timeout)
download_queue_hold(d, download_retry_timeout_delay,
- "Timeout (%d retr%s)",
- d->retries, d->retries == 1 ? "y" : "ies");
+ NG_("Timeout (%d retry)",
+ "Timeout (%d retries)", d->retries), d->retries);
else
download_queue_hold(d, download_retry_refused_delay,
- "Connection refused (%d retr%s)",
- d->retries, d->retries == 1 ? "y" : "ies");
+ NG_("Connection refused (%d retry)",
+ "Connection refused (%d retries)", d->retries),
+ d->retries);
} else {
/*
* Looks like this host is down. Abort the download, and remove all
* the ones queued for the same host.
*/
- download_unavailable(d, GTA_DL_ERROR, "Timeout (%d retr%s)",
- d->retries, d->retries == 1 ? "y" : "ies");
+ download_unavailable(d, GTA_DL_ERROR,
+ NG_("Timeout (%d retry)", "Timeout (%d retries)", d->retries),
+ d->retries);
download_remove_all_from_peer(
download_guid(d), download_ip(d), download_port(d), TRUE);
And well, I've noticed 'HTTP 404 Not Found' or the like, which is
a response message never translate without 'something'. I don't
know which is a strict RFC issue, however is there possible these
messages can be translated like others? I don't know also where
come from these strings :-( um... namely, I shouldn't sent i18n
response message while I hope I'll see translated message on my
screen. Concerned code is:
src/core/downloads.c
5286 const gchar *ack_message = "";
5651 if (!ok) {
5652 download_queue_delay(d, download_retry_busy_delay,
5653 "%sHTTP %d %s", short_read, ack_code, ack_message);
5654 return;
5655 }
etc. or my system library has already what '&ack_message' refers.
Thanks.
--
Daichi
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel