Reuse existing message with translation for alt text
This commit is contained in:
parent
d4d74455d2
commit
759ba35e13
@ -35,9 +35,10 @@ class Node_Column_Container extends Node
|
||||
);
|
||||
$this->real_name = 'columns';
|
||||
|
||||
$new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new column', 'New'));
|
||||
$new_label = _pgettext('Create new column', 'New');
|
||||
$new = PMA_NodeFactory::getInstance('Node', $new_label);
|
||||
$new->isNew = true;
|
||||
$new->icon = PMA_Util::getImage('b_column_add.png', __('New'));
|
||||
$new->icon = PMA_Util::getImage('b_column_add.png', $new_label);
|
||||
$new->links = array(
|
||||
'text' => 'tbl_addfield.php?server=' . $GLOBALS['server']
|
||||
. '&db=%3$s&table=%2$s'
|
||||
|
||||
@ -33,9 +33,10 @@ class Node_Function_Container extends Node
|
||||
);
|
||||
$this->real_name = 'functions';
|
||||
|
||||
$new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new function', 'New'));
|
||||
$new_label = _pgettext('Create new function', 'New');
|
||||
$new = PMA_NodeFactory::getInstance('Node', $new_label);
|
||||
$new->isNew = true;
|
||||
$new->icon = PMA_Util::getImage('b_routine_add.png', __('New'));
|
||||
$new->icon = PMA_Util::getImage('b_routine_add.png', $new_label);
|
||||
$new->links = array(
|
||||
'text' => 'db_routines.php?server=' . $GLOBALS['server']
|
||||
. '&db=%2$s&token=' . $GLOBALS['token']
|
||||
|
||||
@ -35,9 +35,10 @@ class Node_Index_Container extends Node
|
||||
);
|
||||
$this->real_name = 'indexes';
|
||||
|
||||
$new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new index', 'New'));
|
||||
$new_label = _pgettext('Create new index', 'New');
|
||||
$new = PMA_NodeFactory::getInstance('Node', $new_label);
|
||||
$new->isNew = true;
|
||||
$new->icon = PMA_Util::getImage('b_index_add.png', __('New'));
|
||||
$new->icon = PMA_Util::getImage('b_index_add.png', $new_label);
|
||||
$new->links = array(
|
||||
'text' => 'tbl_indexes.php?server=' . $GLOBALS['server']
|
||||
. '&create_index=1&added_fields=2'
|
||||
|
||||
@ -33,9 +33,10 @@ class Node_Procedure_Container extends Node
|
||||
);
|
||||
$this->real_name = 'procedures';
|
||||
|
||||
$new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new procedure', 'New'));
|
||||
$new_label = _pgettext('Create new procedure', 'New');
|
||||
$new = PMA_NodeFactory::getInstance('Node', $new_label);
|
||||
$new->isNew = true;
|
||||
$new->icon = PMA_Util::getImage('b_routine_add.png', __('New'));
|
||||
$new->icon = PMA_Util::getImage('b_routine_add.png', $new_label);
|
||||
$new->links = array(
|
||||
'text' => 'db_routines.php?server=' . $GLOBALS['server']
|
||||
. '&db=%2$s&token=' . $GLOBALS['token']
|
||||
|
||||
@ -38,9 +38,10 @@ class Node_Table_Container extends Node
|
||||
$this->real_name = 'tables';
|
||||
$this->classes = 'tableContainer';
|
||||
|
||||
$new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new table', 'New'));
|
||||
$new_label = _pgettext('Create new table', 'New');
|
||||
$new = PMA_NodeFactory::getInstance('Node', $new_label);
|
||||
$new->isNew = true;
|
||||
$new->icon = PMA_Util::getImage('b_table_add.png', __('New'));
|
||||
$new->icon = PMA_Util::getImage('b_table_add.png', $new_label);
|
||||
$new->links = array(
|
||||
'text' => 'tbl_create.php?server=' . $GLOBALS['server']
|
||||
. '&db=%2$s&token=' . $GLOBALS['token'],
|
||||
|
||||
@ -34,9 +34,10 @@ class Node_View_Container extends Node
|
||||
$this->classes = 'viewContainer';
|
||||
$this->real_name = 'views';
|
||||
|
||||
$new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new view', 'New'));
|
||||
$new_label = _pgettext('Create new view', 'New');
|
||||
$new = PMA_NodeFactory::getInstance('Node', $new_label);
|
||||
$new->isNew = true;
|
||||
$new->icon = PMA_Util::getImage('b_view_add.png', __('New'));
|
||||
$new->icon = PMA_Util::getImage('b_view_add.png', $new_label);
|
||||
$new->links = array(
|
||||
'text' => 'view_create.php?server=' . $GLOBALS['server']
|
||||
. '&db=%2$s&token=' . $GLOBALS['token'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user