Internationalize opml and rss strings
Internationalize opml and rss strings

--- a/include/locale/en_US.php
+++ b/include/locale/en_US.php
@@ -375,6 +375,30 @@
 	 * Used on a plaintext diff to indicate the subject
 	 */
 	'Subject' => 'Subject',
+
+	/*
+	 * Used in the rss feed description to indicate that this
+	 * is a certain project's log, where %1$s is the project path
+	 */
+	'projectlog' => '%1$s log',
+
+	/*
+	 * Used in the rss feed to indicate the language
+	 */
+	'rsslang' => 'en',
+
+	/*
+	 * Used as the title of the opml export to indicate that this
+	 * is an export of a certain gitphp instance, where
+	 * %1$s is the title of the gitphp install
+	 */
+	'opmlexport' => '%1$s OPML Export',
+
+	/*
+	 * Used as the text for the opml container to indicate that
+	 * it contains git rss feeds
+	 */
+	'gitrssfeeds' => 'git RSS feeds',
 );
 
 ?>

--- a/include/locale/zz_DEBUG.php
+++ b/include/locale/zz_DEBUG.php
@@ -375,6 +375,30 @@
 	 * Used on a plaintext diff to indicate the subject
 	 */
 	'Subject' => '{Sübjêct••}',
+
+	/*
+	 * Used in the rss feed description to indicate that this
+	 * is a certain project's log, where %1$s is the project path
+	 */
+	'projectlog' => '{lög ‹%1$s›•}',
+
+	/*
+	 * Used in the rss feed to indicate the language
+	 */
+	'rsslang' => 'zz',
+
+	/*
+	 * Used as the title of the opml export to indicate that this
+	 * is an export of a certain gitphp instance, where
+	 * %1$s is the title of the gitphp install
+	 */
+	'opmlexport' => '{ÖPML ‹%1$s› Êxpört•••}',
+
+	/*
+	 * Used as the text for the opml container to indicate that
+	 * it contains git rss feeds
+	 */
+	'gitrssfeeds' => '{gît RSS féèds••••}',
 );
 
 ?>

--- a/templates/opml.tpl
+++ b/templates/opml.tpl
@@ -8,10 +8,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <opml version="1.0">
   <head>
-    <title>{$title} OPML Export</title>
+    <title>{$localize.opmlexport|sprintf:$title}</title>
   </head>
   <body>
-    <outline text="git RSS feeds">
+    <outline text="{$localize.gitrssfeeds}">
 
       {foreach from=$opmllist item=proj}
       <outline type="rss" text="{$proj}" title="{$proj}" xmlUrl="{$self}?p={$proj}&amp;a=rss" htmlUrl="{$self}?p={$proj}&amp;a=summary" />

--- a/templates/rss.tpl
+++ b/templates/rss.tpl
@@ -10,8 +10,8 @@
   <channel>
     <title>{$project}</title>
     <link>{$self}?p={$project}&amp;a=summary</link>
-    <description>{$project} log</description>
-    <language>en</language>
+    <description>{$localize.projectlog|sprintf:$project}</description>
+    <language>{$localize.rsslang}</language>
 
     {section name=rssitem loop=$commitlines}
       <item>

comments