[Fusionforge-commits] r18496 - trunk/src/common/widget

Marc-Etienne VARGENAU vargenau at fusionforge.org
Thu Nov 21 17:23:49 CET 2013


Author: vargenau
Date: 2013-11-21 17:23:49 +0100 (Thu, 21 Nov 2013)
New Revision: 18496

Modified:
   trunk/src/common/widget/Widget_Rss.class.php
Log:
Translate strings

Modified: trunk/src/common/widget/Widget_Rss.class.php
===================================================================
--- trunk/src/common/widget/Widget_Rss.class.php	2013-11-21 14:28:31 UTC (rev 18495)
+++ trunk/src/common/widget/Widget_Rss.class.php	2013-11-21 16:23:49 UTC (rev 18496)
@@ -89,16 +89,32 @@
 	}
 	function getPreferences() {
 		$hp = Codendi_HTMLPurifier::instance();
-		$prefs  = '';
-		$prefs .= '<table><tr><td>Title:</td><td><input type="text" class="textfield_medium" name="rss[title]" value="'. $hp->purify($this->rss_title, CODENDI_PURIFIER_CONVERT_HTML) .'" /></td></tr>';
-		$prefs .= '<tr><td>Url:</td><td><input type="text" class="textfield_medium" name="rss[url]" value="'. $hp->purify($this->rss_url, CODENDI_PURIFIER_CONVERT_HTML) .'" /></td></tr>';
+		$prefs = '<table>';
+		$prefs .= '<tr>';
+		$prefs .= '<td>';
+		$prefs .= _('Title')._(':');
+		$prefs .= '</td>';
+		$prefs .= '<td>';
+		$prefs .= '<input type="text" class="textfield_medium" name="rss[title]" value="'. $hp->purify($this->rss_title, CODENDI_PURIFIER_CONVERT_HTML) .'" /></td></tr>';
+		$prefs .= '<tr>';
+		$prefs .= '<td>';
+		$prefs .= 'URL'._(':');
+		$prefs .= '</td>';
+		$prefs .= '<td>';
+		$prefs .= '<input type="url" class="textfield_medium" name="rss[url]" value="'. $hp->purify($this->rss_url, CODENDI_PURIFIER_CONVERT_HTML) .'" /></td></tr>';
 		$prefs .= '</table>';
 		return $prefs;
 	}
 	function getInstallPreferences() {
-		$prefs  = '';
-		$prefs .= '<table>';
-		$prefs .= '<tr><td>URL:</td><td><input type="text" class="textfield_medium" name="rss[url]" value="'. _("http://search.twitter.com/search.atom?q=fusionforge&show_user=1") .'" /></td></tr>';
+		$prefs = '<table>';
+		$prefs .= '<tr>';
+		$prefs .= '<td>';
+		$prefs .= 'URL'._(':');
+		$prefs .= '</td>';
+		$prefs .= '<td>';
+		$prefs .= '<input type="url" class="textfield_medium" name="rss[url]" value="http://search.twitter.com/search.atom?q=alcatel-lucent&show_user=1" />';
+		$prefs .= '</td>';
+		$prefs .= '</tr>';
 		$prefs .= '</table>';
 		return $prefs;
 	}




More information about the Fusionforge-commits mailing list