[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] One more string marked for translation

From: Nicolás Lichtmaier <nick_at_panoptico.reloco.com.ar>
Date: 2005-03-30 04:51:16 CEST

Here it is...

Marked a string for translation

   * subversion/clients/cmdline/log-cmd.c
     (log_message_receiver): Marked a string which needs plural
     handling for translation.
     We don't have the ngettext function, so we should do what we can.

Index: subversion/clients/cmdline/log-cmd.c
===================================================================
--- subversion/clients/cmdline/log-cmd.c (revisión: 13764)
+++ subversion/clients/cmdline/log-cmd.c (copia de trabajo)
@@ -182,10 +182,10 @@
   if (! lb->omit_log_message)
     {
       lines = svn_cstring_count_newlines (msg) + 1;
- /*### FIXME: how do we translate this without ngettext?! */
       SVN_ERR (svn_cmdline_printf (pool,
- " | %d line%s", lines,
- (lines > 1) ? "s" : ""));
+ (lines == 1) ?
+ _(" | %d line") : _(" | %d lines"),
+ lines));
     }
 
   SVN_ERR (svn_cmdline_printf (pool, "\n"));

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 30 04:53:42 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.