Internationalize plain commitdiff
Internationalize plain commitdiff

--- a/include/locale/en_US.php
+++ b/include/locale/en_US.php
@@ -360,6 +360,21 @@
 	 * where %1$d is the numebr of files changed
 	 */
 	'fileschanged' => '%1$d files changed',
+
+	/*
+	 * Used on a plaintext diff to indicate who it's from
+	 */
+	'From' => 'From',
+
+	/*
+	 * Used on a plaintext diff to indicate the date
+	 */
+	'Date' => 'Date',
+
+	/*
+	 * Used on a plaintext diff to indicate the subject
+	 */
+	'Subject' => 'Subject',
 );
 
 ?>

--- a/include/locale/zz_DEBUG.php
+++ b/include/locale/zz_DEBUG.php
@@ -235,19 +235,19 @@
 	'HEAD' => '{HĚĂD•}',
 	
 	/*
-     * Used to indicate the description of the project, on the project summary page
-     */
-    'description' => '{dêscrïptìõn•••}',
-
-    /*
-     * Used to indicate the owner of the project, on the project summary page
-     */
-    'owner' => '{öwnêr•}',
-
-    /*
-     * Used to indicate the age (last change) of the project, on the project summary page
-     */
-    'lastchange' => '{låst chãngë•••}',
+         * Used to indicate the description of the project, on the project summary page
+         */
+        'description' => '{dêscrïptìõn•••}',
+
+        /*
+         * Used to indicate the owner of the project, on the project summary page
+         */
+        'owner' => '{öwnêr•}',
+
+       /*
+        * Used to indicate the age (last change) of the project, on the project summary page
+        */
+        'lastchange' => '{låst chãngë•••}',
 
 	/*
 	 * Used to indicate the object that is the parent of this one (eg the commit that
@@ -355,11 +355,26 @@
 	 */
 	'agerightnow' => '{rĩght nøw•••}',
 	
-     /*
-      * Used to indicate a certain number of files were changed in a commit
-      * where %1$d is the numebr of files changed
-      */
-     'fileschanged' => '{chângëd ‹%1$d› fĭlēs••••}',
+        /*
+         * Used to indicate a certain number of files were changed in a commit
+         * where %1$d is the numebr of files changed
+         */
+        'fileschanged' => '{chângëd ‹%1$d› fĭlēs••••}',
+
+	/*
+	 * Used on a plaintext diff to indicate who it's from
+	 */
+	'From' => '{Fröm•}',
+
+	/*
+	 * Used on a plaintext diff to indicate the date
+	 */
+	'Date' => '{Dātë•}',
+
+	/*
+	 * Used on a plaintext diff to indicate the subject
+	 */
+	'Subject' => '{Sübjêct••}',
 );
 
 ?>

--- a/templates/diff_plaintext.tpl
+++ b/templates/diff_plaintext.tpl
@@ -5,9 +5,9 @@
  *
  *  Copyright (C) 2006 Christopher Han <xiphux@gmail.com>
  *}
-From: {$from}
-Date: {$date}
-Subject: {$subject}
+{$localize.From}: {$from}
+{$localize.Date}: {$date}
+{$localize.Subject}: {$subject}
 {if $tagname}
 X-Git-Tag: {$tagname}
 {/if}

comments