Localized stray string "list of registered members" in UCP
authorDan
Tue, 29 Jan 2008 16:20:55 -0500
changeset 388 9829ca63b53a
parent 386 f0978aed065a
child 389 da3bb3e99323
Localized stray string "list of registered members" in UCP
language/english/user.json
plugins/SpecialUserPrefs.php
--- a/language/english/user.json	Mon Jan 28 21:54:44 2008 -0500
+++ b/language/english/user.json	Tue Jan 29 16:20:55 2008 -0500
@@ -201,6 +201,8 @@
       sec_pm_drafts: 'Drafts',
       sec_pm_archive: 'Archive',
       
+      btn_memberlist: 'list of registered members',
+      
       // CP home
       intro_heading_main: '%username%, welcome to your control panel',
       intro_para1: 'Here you can make changes to your profile, view statistics on yourself on this site, and set your preferences.',
--- a/plugins/SpecialUserPrefs.php	Mon Jan 28 21:54:44 2008 -0500
+++ b/plugins/SpecialUserPrefs.php	Tue Jan 29 16:20:55 2008 -0500
@@ -46,6 +46,7 @@
 function userprefs_jbox_setup(&$button, &$tb, &$menubtn)
 {
   global $db, $session, $paths, $template, $plugins; // Common objects
+  global $lang;
   
   if ( $paths->namespace != 'Special' || $paths->page_id != 'Preferences' )
     return false;
@@ -54,7 +55,7 @@
   $template->toolbar_menu = '';
   
   $button->assign_vars(array(
-      'TEXT' => 'list of registered members',
+      'TEXT' => $lang->get('usercp_btn_memberlist'),
       'FLAGS' => '',
       'PARENTFLAGS' => '',
       'HREF' => makeUrlNS('Special', 'Memberlist')