$result = db_query_params('SELECT sum(commits) AS commits, sum(adds) AS adds FROM stats_cvs_group WHERE group_id=$1',
array ($project->getID())) ;
$commit_num = db_result($result,0,'commits');
$result = db_query_params('SELECT sum(commits) AS commits, sum(adds) AS adds FROM stats_cvs_group WHERE group_id=$1',
array ($project->getID())) ;
$commit_num = db_result($result,0,'commits');
- $b .= ('Only project developers can access the Darcs tree via this method. SSH must be installed on your client machine. Substitute <i>developername</i> with the proper values. Enter your site password when prompted.');
+ $b .= sprintf(_('Only project developers can access the %s tree via this method.'), 'Darcs');
+ $b .= ' ';
+ $b .= _('SSH must be installed on your client machine.');
+ $b .= ' ';
+ $b .= _('Substitute <i>developername</i> with the proper values.');
+ $b .= ' ';
+ $b .= _('Enter your site password when prompted.');
- $b .= _('Browsing the Darcs tree gives you a view into the current status of this project\'s code. You may also view the complete histories of any file in the repository.');
+ $b .= sprintf(_("Browsing the %s tree gives you a view into the current status of this project's code."), 'Darcs');
+ $b .= ' ';
+ $b .= _('You may also view the complete histories of any file in the repository.');
- print '<p><strong>Create new repository:</strong></p>';
- print '<p>'._('Repository name: ').
- '<input type="string" name="scm_create_repo_name" size=16 maxlength=128 /></p>';
- print '<p>'._('Clone: ').
+ print '<p><strong>'._('Create new repository:') . '</strong></p>';
+ print '<p>'._('Repository name')._(': ');
+ print '<input type="string" name="scm_create_repo_name" size=16 maxlength=128 /></p>';
+ print '<p>'._('Clone')._(': ').
'<select name="scm_clone_repo_name">';
print '<option value=""><none></option>';
foreach ($this->getRepositories($project) as $repo_name)
'<select name="scm_clone_repo_name">';
print '<option value=""><none></option>';
foreach ($this->getRepositories($project) as $repo_name)