[Fusionforge-commits] r11923 - branches/Branch_5_1/src/www/account

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sat Jan 1 21:21:00 CET 2011


Author: aljeux
Date: 2011-01-01 21:20:59 +0100 (Sat, 01 Jan 2011)
New Revision: 11923

Modified:
   branches/Branch_5_1/src/www/account/first.php
Log:
Apply fix [#247] Fix first.php to make it display $forge_name rather than $%1s by Sylvain Le Gall

Modified: branches/Branch_5_1/src/www/account/first.php
===================================================================
--- branches/Branch_5_1/src/www/account/first.php	2010-12-29 18:48:12 UTC (rev 11922)
+++ branches/Branch_5_1/src/www/account/first.php	2011-01-01 20:20:59 UTC (rev 11923)
@@ -26,14 +26,15 @@
 require_once('../env.inc.php');
 require_once $gfcommon.'include/pre.php';
 
-site_user_header(array('title'=>sprintf(_('Welcome to %1$s'), forge_get_config ('forge_name'))));
+$forge_name = forge_get_config ('forge_name');
+site_user_header(array('title'=>sprintf(_('Welcome to %1$s'), $forge_name)));
 
-print '<p>' . _('You are now a registered user on %1$s, the online development environment for Open Source projects.') . '</p>';
+print '<p>' . sprintf(_('You are now a registered user on %1$s, the online development environment for Open Source projects.'), $forge_name) . '</p>';
 
-print '<p>' . _('As a registered user, you can participate fully in the activities on the site. You may now post messages to the project message forums, post bugs for software in %1$s, sign on as a project developer, or even start your own project.') . '</p>';
+print '<p>' . sprintf(_('As a registered user, you can participate fully in the activities on the site. You may now post messages to the project message forums, post bugs for software in %1$s, sign on as a project developer, or even start your own project.'), $forge_name) . '</p>';
 
 print '<p>';
-printf(_('--the %1$s staff.'), forge_get_config ('forge_name'));
+printf(_('--the %1$s staff.'), $forge_name);
 print '</p>';
 
 site_user_footer(array());




More information about the Fusionforge-commits mailing list