Browse Source

Welcoming newest members in one sentence

Signed-off-by: emanuele <[email protected]>
emanuele 11 years ago
parent
commit
de896dff82
3 changed files with 3 additions and 2 deletions
  1. 1 1
      SSI.php
  2. 1 1
      Themes/default/BoardIndex.template.php
  3. 1 0
      Themes/default/languages/index.english.php

+ 1 - 1
SSI.php

@@ -749,7 +749,7 @@ function ssi_latestMember($output_method = 'echo')
 
 	if ($output_method == 'echo')
 		echo '
-	', $txt['welcome_member'], ' ', $context['common_stats']['latest_member']['link'], '', $txt['newest_member'], '<br />';
+	', sprintf($txt['welcome_newest_member'], ' ' . $context['common_stats']['latest_member']['link']), '<br />';
 	else
 		return $context['common_stats']['latest_member'];
 }

+ 1 - 1
Themes/default/BoardIndex.template.php

@@ -19,7 +19,7 @@ function template_main()
 		echo '
 	<div id="index_common_stats">
 		', $txt['members'], ': ', $context['common_stats']['total_members'], ' &nbsp;&#8226;&nbsp; ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; ', $txt['topics'], ': ', $context['common_stats']['total_topics'], '
-		', ($settings['show_latest_member'] ? ' ' . $txt['welcome_member'] . ' <strong>' . $context['common_stats']['latest_member']['link'] . '</strong>' . $txt['newest_member'] : '') , '
+		', $settings['show_latest_member'] ? ' ' . sprintf($txt['welcome_newest_member'], ' <strong>' . $context['common_stats']['latest_member']['link'] . '</strong>') : '' , '
 	</div>';
 
 	// Show the news fader?  (assuming there are things to show...)

+ 1 - 0
Themes/default/languages/index.english.php

@@ -173,6 +173,7 @@ $txt['title'] = 'Title';
 $txt['post_by'] = 'Post by';
 $txt['memberlist_searchable'] = 'Searchable list of all registered members.';
 $txt['welcome_member'] = 'Please welcome';
+$txt['welcome_newest_member'] = 'Please welcome %1$s, our newest member.';
 $txt['admin_center'] = 'Administration Center';
 $txt['last_edit'] = 'Last Edit';
 $txt['notify_deactivate'] = 'Would you like to deactivate notification on this topic?';