You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Arfrever Frehtes Taifersar Arahesis <ar...@gmail.com> on 2007/08/17 22:40:41 UTC

[PATCH] Mark some dates for translation

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

Re: [PATCH] Mark some dates for translation

Posted by Arfrever Frehtes Taifersar Arahesis <ar...@gmail.com>.
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