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

[PATCH] Mark some dates for translation

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta_at_gmail.com>
Date: 2007-08-18 00:40:41 CEST

Some dates should be marked for translation.

--- subversion/libsvn_diff/diff_file.c
+++ subversion/libsvn_diff/diff_file.c
@@ -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);

--- subversion/libsvn_subr/time.c
+++ subversion/libsvn_subr/time.c
@@ -78,7 +78,7 @@
 static const char * const human_timestamp_format =
 "%.4d-%.2d-%.2d %.2d:%.2d:%.2d %+.2d%.2d";
 /* Human explanatory part, generated by apr_strftime. */
-#define human_timestamp_format_suffix " (%a, %d %b %Y)"
+#define human_timestamp_format_suffix _(" (%a, %d %b %Y)")

 const char *
--- subversion/svn/list-cmd.c
+++ subversion/svn/list-cmd.c
@@ -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 */

-- 
Arfrever Frehtes Taifersar Arahesis

Received on Sat Aug 18 00:41:54 2007

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