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

Re: [PATCH] Mark some dates for translation

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta_at_gmail.com>
Date: 2007-08-18 21:42:26 CEST

2007-08-18 00:40:18 Arfrever Frehtes Taifersar Arahesis napisaƂ(a):
> Some dates should be marked for translation.

Please make these dates translatable. We would like to see localized
dates in e. g. `svn ls -v`.
I'm including the updated version of this patch.

Index: subversion/svn/list-cmd.c
===================================================================
--- subversion/svn/list-cmd.c (revision 26166)
+++ subversion/svn/list-cmd.c (working copy)
@@ -87,12 +87,12 @@
           && apr_time_sec(dirent->time - now) < (365 * 86400 / 2))
         {
           apr_err = apr_strftime(timestr, &size, sizeof(timestr),
- "%b %d %H:%M", &exp_time);
+ _("%b %d %H:%M"), &exp_time);
         }
       else
         {
           apr_err = apr_strftime(timestr, &size, sizeof(timestr),
- "%b %d %Y", &exp_time);
+ _("%b %d %Y"), &exp_time);
         }

       /* if that failed, just zero out the string and print nothing */
Index: subversion/libsvn_diff/diff_file.c
===================================================================
--- subversion/libsvn_diff/diff_file.c (revision 26166)
+++ subversion/libsvn_diff/diff_file.c (working copy)
@@ -1058,7 +1058,7 @@
   apr_time_exp_lt(&exploded_time, file_info.mtime);

   apr_strftime(time_buffer, &time_len, sizeof(time_buffer) - 1,
- "%a %b %e %H:%M:%S %Y", &exploded_time);
+ _("%a %b %e %H:%M:%S %Y"), &exploded_time);

   *header = apr_psprintf(pool, "%s\t%s", path, time_buffer);

-- 
Arfrever Frehtes Taifersar Arahesis

Received on Sat Aug 18 21:46:41 2007

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.