Convert to PHP code and use pgettext to provide context.
We already use Insert/Update/Delete in other places and this one might have to be translated differently.
This commit is contained in:
@@ -298,13 +298,11 @@ function PMA_sqlQueryFormInsert($query = '', $is_querywindow = false, $delimiter
|
|||||||
.$auto_sel . $locking . '>' . htmlspecialchars($query) . '</textarea>' . "\n";
|
.$auto_sel . $locking . '>' . htmlspecialchars($query) . '</textarea>' . "\n";
|
||||||
// Add buttons to generate query easily for select all,single select,insert,update and delete
|
// Add buttons to generate query easily for select all,single select,insert,update and delete
|
||||||
if(count($fields_list)) {
|
if(count($fields_list)) {
|
||||||
?>
|
echo '<input type="button" value="' . _pgettext('Create SELECT * query', 'Select all') . '" id="selectall" onclick="insertQuery(this.id)" />';
|
||||||
<input type='button' value='<?php echo __('Select all'); ?>' id='selectall' onclick='insertQuery(this.id)' />
|
echo '<input type="button" value="' . _pgettext('Create SELECT ... query', 'Select') . '" id="select" onclick="insertQuery(this.id)" />';
|
||||||
<input type='button' value='<?php echo __('Select'); ?>' id='select' onclick='insertQuery(this.id)' />
|
echo '<input type="button" value="' . _pgettext('Create INSERT query', 'Insert') . '" id="insert" onclick="insertQuery(this.id)" />';
|
||||||
<input type='button' value='<?php echo __('Insert'); ?>' id='insert' onclick='insertQuery(this.id)' />
|
echo '<input type="button" value="' . _pgettext('Create UPDATE query', 'Update') . '" id="update" onclick="insertQuery(this.id)" />';
|
||||||
<input type='button' value='<?php echo __('Update'); ?>' id='update' onclick='insertQuery(this.id)' />
|
echo '<input type="button" value="' . _pgettext('Create DELETE query', 'Delete') . '" id="delete" onclick="insertQuery(this.id)" />';
|
||||||
<input type='button' value='<?php echo __('Delete'); ?>' id='delete' onclick='insertQuery(this.id)' />
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
echo '</div>' . "\n";
|
echo '</div>' . "\n";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user