mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Module and module function names now pulled from lang file
git-svn-id: file:///svn/phpbb/trunk@1422 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
45a4be47fb
commit
6f02536adf
2 changed files with 35 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
||||||
// Load default header
|
// Load default header
|
||||||
//
|
//
|
||||||
$phpbb_root_dir = "./../";
|
$phpbb_root_dir = "./../";
|
||||||
|
|
||||||
$no_page_header = TRUE;
|
$no_page_header = TRUE;
|
||||||
require('pagestart.inc');
|
require('pagestart.inc');
|
||||||
|
|
||||||
|
@ -62,19 +63,25 @@ if( $HTTP_GET_VARS['pane'] == 'left' )
|
||||||
"L_PREVIEW_FORUM" => $lang['Preview_forum'])
|
"L_PREVIEW_FORUM" => $lang['Preview_forum'])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ksort($module);
|
||||||
|
|
||||||
while( list($cat, $action_array) = each($module) )
|
while( list($cat, $action_array) = each($module) )
|
||||||
{
|
{
|
||||||
|
$cat = $lang[$cat];
|
||||||
|
|
||||||
$template->assign_block_vars("catrow", array(
|
$template->assign_block_vars("catrow", array(
|
||||||
"ADMIN_CATEGORY" => $cat)
|
"ADMIN_CATEGORY" => $cat)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ksort($action_array);
|
||||||
|
|
||||||
$row_count = 0;
|
$row_count = 0;
|
||||||
while( list($action, $file) = each($action_array) )
|
while( list($action, $file) = each($action_array) )
|
||||||
{
|
{
|
||||||
$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
|
$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
|
||||||
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
|
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
|
||||||
|
|
||||||
$action = preg_replace("'_'", " ", $action);
|
$action = $lang[$action];
|
||||||
|
|
||||||
$template->assign_block_vars("catrow.modulerow", array(
|
$template->assign_block_vars("catrow.modulerow", array(
|
||||||
"ROW_COLOR" => "#" . $row_color,
|
"ROW_COLOR" => "#" . $row_color,
|
||||||
|
|
|
@ -24,6 +24,33 @@
|
||||||
// Format is same as lang_main
|
// Format is same as lang_main
|
||||||
//
|
//
|
||||||
|
|
||||||
|
//
|
||||||
|
// Modules, this replaces the keys used
|
||||||
|
// in the modules[][] arrays in each module file
|
||||||
|
//
|
||||||
|
$lang['General'] = "General Admin";
|
||||||
|
$lang['Users'] = "User Admin";
|
||||||
|
$lang['Groups'] = "Group Admin";
|
||||||
|
$lang['Forums'] = "Forum Admin";
|
||||||
|
$lang['Styles'] = "Styles Admin";
|
||||||
|
|
||||||
|
$lang['Configuration'] = "Configuration";
|
||||||
|
$lang['Permissions'] = "Permissions";
|
||||||
|
$lang['Manage'] = "Manage";
|
||||||
|
$lang['Disallow'] = "Disallowed words";
|
||||||
|
$lang['Prune'] = "Pruning";
|
||||||
|
$lang['Mass_Email'] = "Send Bulk Email";
|
||||||
|
$lang['Ranks'] = "Ranks";
|
||||||
|
$lang['Smilies'] = "Smilies";
|
||||||
|
$lang['Ban_Management'] = "Ban Control";
|
||||||
|
$lang['Word_Censor'] = "Word Censoring";
|
||||||
|
$lang['Export'] = "Export";
|
||||||
|
$lang['Create_new'] = "Create";
|
||||||
|
$lang['Add_new'] = "Add";
|
||||||
|
$lang['Backup_DB'] = "Backup Database";
|
||||||
|
$lang['Restore_DB'] = "Restore Database";
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Index
|
// Index
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue