diff --git a/libraries/sqlparser.data.php b/libraries/sqlparser.data.php
index 7581d8769b..1d7c78c698 100644
--- a/libraries/sqlparser.data.php
+++ b/libraries/sqlparser.data.php
@@ -34,18 +34,18 @@ $PMA_SQPdata_function_name = array (
'ADDTIME',
'AES_DECRYPT',
'AES_ENCRYPT',
- 'AREA', // Area() polygon-property-functions.html
- 'ASBINARY', // AsBinary()
+ 'AREA', // polygon-property-functions.html
+ 'ASBINARY',
'ASCII',
'ASIN',
- 'ASTEXT', // AsText()
+ 'ASTEXT',
'ATAN',
'ATAN2',
'AVG',
- 'BDMPOLYFROMTEXT', // BdMPolyFromText()
- 'BDMPOLYFROMWKB', // BdMPolyFromWKB()
- 'BDPOLYFROMTEXT', // BdPolyFromText()
- 'BDPOLYFROMWKB', // BdPolyFromWKB()
+ 'BDMPOLYFROMTEXT',
+ 'BDMPOLYFROMWKB',
+ 'BDPOLYFROMTEXT',
+ 'BDPOLYFROMWKB',
'BENCHMARK',
'BIN',
'BIT_AND',
@@ -53,12 +53,12 @@ $PMA_SQPdata_function_name = array (
'BIT_LENGTH',
'BIT_OR',
'BIT_XOR', // group-by-functions.html
- 'BOUNDARY', // Boundary() general-geometry-property-functions.html
- 'BUFFER', // Buffer()
+ 'BOUNDARY', // general-geometry-property-functions.html
+ 'BUFFER',
'CAST',
'CEIL',
'CEILING',
- 'CENTROID', // Centroid() multipolygon-property-functions.html
+ 'CENTROID', // multipolygon-property-functions.html
'CHAR', // string-functions.html
'CHARACTER_LENGTH',
'CHARSET', // information-functions.html
@@ -70,16 +70,16 @@ $PMA_SQPdata_function_name = array (
'CONCAT',
'CONCAT_WS',
'CONNECTION_ID',
- 'CONTAINS', // Contains()
+ 'CONTAINS',
'CONV',
'CONVERT',
'CONVERT_TZ',
- 'CONVEXHULL', // ConvexHull()
+ 'CONVEXHULL',
'COS',
'COT',
'COUNT',
'CRC32', // mathematical-functions.html
- 'CROSSES', // Crosses()
+ 'CROSSES',
'CURDATE',
'CURRENT_DATE',
'CURRENT_TIME',
@@ -103,21 +103,21 @@ $PMA_SQPdata_function_name = array (
'DEGREES',
'DES_DECRYPT',
'DES_ENCRYPT',
- 'DIFFERENCE', // Difference()
- 'DIMENSION', // Dimension() general-geometry-property-functions.html
- 'DISJOINT', // Disjoint()
- 'DISTANCE', // Distance()
+ 'DIFFERENCE',
+ 'DIMENSION', // general-geometry-property-functions.html
+ 'DISJOINT',
+ 'DISTANCE',
'ELT',
'ENCODE',
'ENCRYPT',
- 'ENDPOINT', // EndPoint() linestring-property-functions.html
- 'ENVELOPE', // Envelope() general-geometry-property-functions.html
- 'EQUALS', // Equals()
+ 'ENDPOINT', // linestring-property-functions.html
+ 'ENVELOPE', // general-geometry-property-functions.html
+ 'EQUALS',
'EXP',
'EXPORT_SET',
- 'EXTERIORRING', // ExteriorRing() polygon-property-functions.html
+ 'EXTERIORRING', // polygon-property-functions.html
'EXTRACT',
- 'EXTRACTVALUE', // ExtractValue() xml-functions.html
+ 'EXTRACTVALUE', // xml-functions.html
'FIELD',
'FIND_IN_SET',
'FLOOR',
@@ -125,20 +125,20 @@ $PMA_SQPdata_function_name = array (
'FOUND_ROWS',
'FROM_DAYS',
'FROM_UNIXTIME',
- 'GEOMCOLLFROMTEXT', // GeomCollFromText()
- 'GEOMCOLLFROMWKB', // GeomCollFromWKB()
- 'GEOMETRYCOLLECTION', // GeometryCollection()
- 'GEOMETRYCOLLECTIONFROMTEXT', // GeometryCollectionFromText()
- 'GEOMETRYCOLLECTIONFROMWKB', // GeometryCollectionFromWKB()
- 'GEOMETRYFROMTEXT', // GeometryFromText()
- 'GEOMETRYFROMWKB', // GeometryFromWKB()
- 'GEOMETRYN', // GeometryN() geometrycollection-property-functions.html
- 'GEOMETRYTYPE', // GeometryType() general-geometry-property-functions.html
- 'GEOMFROMTEXT', // GeomFromText()
- 'GEOMFROMWKB', // GeomFromWKB()
+ 'GEOMCOLLFROMTEXT',
+ 'GEOMCOLLFROMWKB',
+ 'GEOMETRYCOLLECTION',
+ 'GEOMETRYCOLLECTIONFROMTEXT',
+ 'GEOMETRYCOLLECTIONFROMWKB',
+ 'GEOMETRYFROMTEXT',
+ 'GEOMETRYFROMWKB',
+ 'GEOMETRYN', // geometrycollection-property-functions.html
+ 'GEOMETRYTYPE', // general-geometry-property-functions.html
+ 'GEOMFROMTEXT',
+ 'GEOMFROMWKB',
'GET_FORMAT',
'GET_LOCK',
- 'GLENGTH', // GLength() linestring-property-functions.html
+ 'GLENGTH', // linestring-property-functions.html
'GREATEST',
'GROUP_CONCAT',
'GROUP_UNIQUE_USERS',
@@ -150,15 +150,15 @@ $PMA_SQPdata_function_name = array (
'INET_NTOA',
'INSERT', // string-functions.html
'INSTR',
- 'INTERIORRINGN', // InteriorRingN() polygon-property-functions.html
- 'INTERSECTION', // Intersection()
- 'INTERSECTS', // Intersects()
+ 'INTERIORRINGN', // polygon-property-functions.html
+ 'INTERSECTION',
+ 'INTERSECTS',
'INTERVAL',
- 'ISCLOSED', // IsClosed() multilinestring-property-functions.html
- 'ISEMPTY', // IsEmpty() general-geometry-property-functions.html
+ 'ISCLOSED', // multilinestring-property-functions.html
+ 'ISEMPTY', // general-geometry-property-functions.html
'ISNULL',
- 'ISRING', // IsRing() linestring-property-functions.html
- 'ISSIMPLE', // IsSimple() general-geometry-property-functions.html
+ 'ISRING', // linestring-property-functions.html
+ 'ISSIMPLE', // general-geometry-property-functions.html
'IS_FREE_LOCK',
'IS_USED_LOCK', // miscellaneous-functions.html
'LAST_DAY',
@@ -167,11 +167,11 @@ $PMA_SQPdata_function_name = array (
'LEAST',
'LEFT',
'LENGTH',
- 'LINEFROMTEXT', // LineFromText()
- 'LINEFROMWKB', // LineFromWKB()
- 'LINESTRING', // LineString()
- 'LINESTRINGFROMTEXT', // LineStringFromText()
- 'LINESTRINGFROMWKB', // LineStringFromWKB()
+ 'LINEFROMTEXT',
+ 'LINEFROMWKB',
+ 'LINESTRING',
+ 'LINESTRINGFROMTEXT',
+ 'LINESTRINGFROMWKB',
'LN',
'LOAD_FILE',
'LOCALTIME',
@@ -188,61 +188,61 @@ $PMA_SQPdata_function_name = array (
'MAKE_SET',
'MASTER_POS_WAIT',
'MAX',
- 'MBRCONTAINS', // MBRContains()
- 'MBRDISJOINT', // MBRDisjoint()
- 'MBREQUAL', // MBREqual()
- 'MBRINTERSECTS', // MBRIntersects()
- 'MBROVERLAPS', // MBROverlaps()
- 'MBRTOUCHES', // MBRTouches()
- 'MBRWITHIN', // MBRWithin()
+ 'MBRCONTAINS',
+ 'MBRDISJOINT',
+ 'MBREQUAL',
+ 'MBRINTERSECTS',
+ 'MBROVERLAPS',
+ 'MBRTOUCHES',
+ 'MBRWITHIN',
'MD5',
'MICROSECOND',
'MID',
'MIN',
'MINUTE',
- 'MLINEFROMTEXT', // MLineFromText()
- 'MLINEFROMWKB', // MLineFromWKB()
+ 'MLINEFROMTEXT',
+ 'MLINEFROMWKB',
'MOD',
'MONTH',
'MONTHNAME',
- 'MPOINTFROMTEXT', // MPointFromText()
- 'MPOINTFROMWKB', // MPointFromWKB()
- 'MPOLYFROMTEXT', // MPolyFromText()
- 'MPOLYFROMWKB', // MPolyFromWKB()
- 'MULTILINESTRING', // MultiLineString()
- 'MULTILINESTRINGFROMTEXT', // MultiLineStringFromText()
- 'MULTILINESTRINGFROMWKB', // MultiLineStringFromWKB()
- 'MULTIPOINT', // MultiPoint()
- 'MULTIPOINTFROMTEXT', // MultiPointFromText()
- 'MULTIPOINTFROMWKB', // MultiPointFromWKB()
- 'MULTIPOLYGON', // MultiPolygon()
- 'MULTIPOLYGONFROMTEXT', // MultiPolygonFromText()
- 'MULTIPOLYGONFROMWKB', // MultiPolygonFromWKB()
+ 'MPOINTFROMTEXT',
+ 'MPOINTFROMWKB',
+ 'MPOLYFROMTEXT',
+ 'MPOLYFROMWKB',
+ 'MULTILINESTRING',
+ 'MULTILINESTRINGFROMTEXT',
+ 'MULTILINESTRINGFROMWKB',
+ 'MULTIPOINT',
+ 'MULTIPOINTFROMTEXT',
+ 'MULTIPOINTFROMWKB',
+ 'MULTIPOLYGON',
+ 'MULTIPOLYGONFROMTEXT',
+ 'MULTIPOLYGONFROMWKB',
'NAME_CONST', // NAME_CONST()
- 'NOW', // NOW()
+ 'NOW',
'NULLIF',
- 'NUMGEOMETRIES', // NumGeometries() geometrycollection-property-functions.html
- 'NUMINTERIORRINGS', // NumInteriorRings() polygon-property-functions.html
- 'NUMPOINTS', // NumPoints() linestring-property-functions.html
+ 'NUMGEOMETRIES', // geometrycollection-property-functions.html
+ 'NUMINTERIORRINGS', // polygon-property-functions.html
+ 'NUMPOINTS', // linestring-property-functions.html
'OCT',
'OCTET_LENGTH',
'OLD_PASSWORD',
'ORD',
- 'OVERLAPS', // Overlaps()
+ 'OVERLAPS',
'PASSWORD',
'PERIOD_ADD',
'PERIOD_DIFF',
'PI',
- 'POINT', // Point()
- 'POINTFROMTEXT', // PointFromText()
- 'POINTFROMWKB', // PointFromWKB()
- 'POINTN', // PointN() inestring-property-functions.html
- 'POINTONSURFACE', // PointOnSurface() multipolygon-property-functions.html
- 'POLYFROMTEXT', // PolyFromText()
- 'POLYFROMWKB', // PolyFromWKB()
- 'POLYGON', // Polygon()
- 'POLYGONFROMTEXT', // PolygonFromText()
- 'POLYGONFROMWKB', // PolygonFromWKB()
+ 'POINT',
+ 'POINTFROMTEXT',
+ 'POINTFROMWKB',
+ 'POINTN', // inestring-property-functions.html
+ 'POINTONSURFACE', // multipolygon-property-functions.html
+ 'POLYFROMTEXT',
+ 'POLYFROMWKB',
+ 'POLYGON',
+ 'POLYGONFROMTEXT',
+ 'POLYGONFROMWKB',
'POSITION',
'POW',
'POWER',
@@ -250,7 +250,7 @@ $PMA_SQPdata_function_name = array (
'QUOTE',
'RADIANS',
'RAND',
- 'RELATED', // Related()
+ 'RELATED',
'RELEASE_LOCK',
'REPEAT',
'REPLACE', // string-functions.html
@@ -273,7 +273,7 @@ $PMA_SQPdata_function_name = array (
'SPACE',
'SQRT',
'SRID', // general-geometry-property-functions.html
- 'STARTPOINT', // StartPoint() linestring-property-functions.html
+ 'STARTPOINT', // linestring-property-functions.html
'STD',
'STDDEV',
'STDDEV_POP', // group-by-functions.html
@@ -286,7 +286,7 @@ $PMA_SQPdata_function_name = array (
'SUBSTRING_INDEX',
'SUBTIME',
'SUM',
- 'SYMDIFFERENCE', // SymDifference()
+ 'SYMDIFFERENCE',
'SYSDATE',
'SYSTEM_USER',
'TAN',
@@ -297,7 +297,7 @@ $PMA_SQPdata_function_name = array (
'TIMESTAMPDIFF',
'TIME_FORMAT',
'TIME_TO_SEC',
- 'TOUCHES', // Touches()
+ 'TOUCHES',
'TO_DAYS',
'TRIM',
'TRUNCATE', // mathematical-functions.html
@@ -307,7 +307,7 @@ $PMA_SQPdata_function_name = array (
'UNHEX', // string-functions.html
'UNIQUE_USERS',
'UNIX_TIMESTAMP',
- 'UPDATEXML', // UpdateXML() xml-functions.html
+ 'UPDATEXML', // xml-functions.html
'UPPER',
'USER',
'UTC_DATE',
@@ -321,7 +321,7 @@ $PMA_SQPdata_function_name = array (
'WEEK',
'WEEKDAY',
'WEEKOFYEAR',
- 'WITHIN', // Within()
+ 'WITHIN',
'X', // point-property-functions.html
'Y', // point-property-functions.html
'YEAR',
@@ -365,7 +365,8 @@ $PMA_SQPdata_column_attrib = array (
);
/**
- * words that are reserved by MySQL and may not be used as identifiers without quotes
+ * words that are reserved by MySQL and may not be used as identifiers without
+ * quotes
*
* @see http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html
*
@@ -1215,7 +1216,7 @@ $PMA_SQPdata_column_type = array (
'POINT', // spatial
'POLYGON', // spatial
'REAL',
- 'SERIAL', // alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
+ 'SERIAL', // alias
'SET',
'SMALLINT',
'TEXT',
diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php
index 6d2743f218..1ca78e551d 100644
--- a/libraries/sqlparser.lib.php
+++ b/libraries/sqlparser.lib.php
@@ -765,7 +765,10 @@ function PMA_SQP_parse($sql)
$t_suffix = '_columnAttrib';
// INNODB is a MySQL table type, but in "SHOW INNODB STATUS",
// it should be regarded as a reserved word.
- if ($d_cur_upper == 'INNODB' && $d_prev_upper == 'SHOW' && $d_next_upper == 'STATUS') {
+ if ($d_cur_upper == 'INNODB'
+ && $d_prev_upper == 'SHOW'
+ && $d_next_upper == 'STATUS'
+ ) {
$t_suffix = '_reservedWord';
}
@@ -790,7 +793,9 @@ function PMA_SQP_parse($sql)
// Do nothing
}
// check if present in the list of forbidden words
- if ($t_suffix == '_reservedWord' && isset($PMA_SQPdata_forbidden_word[$d_cur_upper])) {
+ if ($t_suffix == '_reservedWord'
+ && isset($PMA_SQPdata_forbidden_word[$d_cur_upper])
+ ) {
$sql_array[$i]['forbidden'] = true;
} else {
$sql_array[$i]['forbidden'] = false;
@@ -825,7 +830,10 @@ function PMA_SQP_typeCheck($toCheck, $whatWeWant)
return true;
} else {
if (strpos($whatWeWant, $typeSeparator) === false) {
- return strncmp($whatWeWant, $toCheck, strpos($toCheck, $typeSeparator)) == 0;
+ return strncmp(
+ $whatWeWant, $toCheck,
+ strpos($toCheck, $typeSeparator)
+ ) == 0;
} else {
return false;
}
@@ -891,7 +899,8 @@ function PMA_SQP_analyze($arr)
* db, table, column, alias
* ------------------------
*
- * Inside the $subresult array, we create ['select_expr'] and ['table_ref'] arrays.
+ * Inside the $subresult array, we create ['select_expr'] and ['table_ref']
+ * arrays.
*
* The SELECT syntax (simplified) is
*
@@ -1043,7 +1052,8 @@ function PMA_SQP_analyze($arr)
// loop #1 for each token: select_expr, table_ref for SELECT
for ($i = 0; $i < $size; $i++) {
- //DEBUG echo "Loop1 " . $arr[$i]['data'] . " (" . $arr[$i]['type'] . ")
";
+ //DEBUG echo "Loop1 " . $arr[$i]['data']
+ //. " (" . $arr[$i]['type'] . ")
";
// High speed seek for locating the end of the current query
if ($seek_queryend == true) {
@@ -1055,7 +1065,8 @@ function PMA_SQP_analyze($arr)
} // end if ($seek_queryend)
/**
- * Note: do not split if this is a punct_queryend for the first and only query
+ * Note: do not split if this is a punct_queryend for the first and only
+ * query
* @todo when we find a UNION, should we split in another subresult?
*/
if ($arr[$i]['type'] == 'punct_queryend' && ($i + 1 != $size)) {
@@ -1360,7 +1371,10 @@ function PMA_SQP_analyze($arr)
// for each table_ref alias, put the true name of the table
// in the corresponding select expressions
- if (isset($current_table_ref) && ($seen_end_of_table_ref || $i == $size-1) && $subresult != $subresult_empty) {
+ if (isset($current_table_ref)
+ && ($seen_end_of_table_ref || $i == $size-1)
+ && $subresult != $subresult_empty
+ ) {
for ($tr=0; $tr <= $current_table_ref; $tr++) {
$alias = $subresult['table_ref'][$tr]['table_alias'];
$truename = $subresult['table_ref'][$tr]['table_true_name'];
@@ -1502,7 +1516,8 @@ function PMA_SQP_analyze($arr)
$in_subquery = false;
for ($i = 0; $i < $size; $i++) {
- //DEBUG echo "Loop2 " . $arr[$i]['data'] . " (" . $arr[$i]['type'] . ")
";
+ //DEBUG echo "Loop2 " . $arr[$i]['data']
+ //. " (" . $arr[$i]['type'] . ")
";
// need_confirm
//
@@ -1595,7 +1610,10 @@ function PMA_SQP_analyze($arr)
}
// if this is a real SELECT...FROM
- if ($upper_data == 'FROM' && isset($subresult['queryflags']['select_from']) && $subresult['queryflags']['select_from'] == 1) {
+ if ($upper_data == 'FROM'
+ && isset($subresult['queryflags']['select_from'])
+ && $subresult['queryflags']['select_from'] == 1
+ ) {
$in_from = true;
$from_clause = '';
$in_select_expr = false;
@@ -1663,7 +1681,9 @@ function PMA_SQP_analyze($arr)
// We use PMA_substr() to be charset-safe; otherwise
// if the table name contains accents, the unsorted
// query would be missing some characters.
- $unsorted_query = PMA_substr($arr['raw'], 0, $arr[$i]['pos'] - 8);
+ $unsorted_query = PMA_substr(
+ $arr['raw'], 0, $arr[$i]['pos'] - 8
+ );
$in_order_by = true;
$order_by_clause = '';
}
@@ -1713,16 +1733,22 @@ function PMA_SQP_analyze($arr)
}
// do not add a space after an identifier if followed by a dot
- if ($arr[$i]['type'] == 'alpha_identifier' && $i < $size - 1 && $arr[$i + 1]['data'] == '.') {
+ if ($arr[$i]['type'] == 'alpha_identifier'
+ && $i < $size - 1 && $arr[$i + 1]['data'] == '.'
+ ) {
$sep = '';
}
// do not add a space after a dot if followed by an identifier
- if ($arr[$i]['data'] == '.' && $i < $size - 1 && $arr[$i + 1]['type'] == 'alpha_identifier') {
+ if ($arr[$i]['data'] == '.' && $i < $size - 1
+ && $arr[$i + 1]['type'] == 'alpha_identifier'
+ ) {
$sep = '';
}
- if ($in_select_expr && $upper_data != 'SELECT' && $upper_data != 'DISTINCT') {
+ if ($in_select_expr && $upper_data != 'SELECT'
+ && $upper_data != 'DISTINCT'
+ ) {
$select_expr_clause .= $arr[$i]['data'] . $sep;
}
if ($in_from && $upper_data != 'FROM') {
@@ -1954,9 +1980,13 @@ function PMA_SQP_analyze($arr)
/**
* @see @todo 2005-10-16 note: the "or" part here is a workaround for a bug
*/
- if (($arr[$i]['type'] == 'alpha_columnType') || ($arr[$i]['type'] == 'alpha_functionName' && $seen_create_table)) {
+ if (($arr[$i]['type'] == 'alpha_columnType')
+ || ($arr[$i]['type'] == 'alpha_functionName' && $seen_create_table)
+ ) {
$upper_data = strtoupper($arr[$i]['data']);
- if ($seen_create_table && $in_create_table_fields && isset($current_identifier)) {
+ if ($seen_create_table && $in_create_table_fields
+ && isset($current_identifier)
+ ) {
$create_table_fields[$current_identifier]['type'] = $upper_data;
if ($upper_data == 'TIMESTAMP') {
$arr[$i]['type'] = 'alpha_columnType';
@@ -1971,7 +2001,9 @@ function PMA_SQP_analyze($arr)
}
- if ($arr[$i]['type'] == 'quote_backtick' || $arr[$i]['type'] == 'alpha_identifier') {
+ if ($arr[$i]['type'] == 'quote_backtick'
+ || $arr[$i]['type'] == 'alpha_identifier'
+ ) {
if ($arr[$i]['type'] == 'quote_backtick') {
// remove backquotes
@@ -2092,7 +2124,8 @@ function PMA_SQP_formatHtml_colorize($arr)
$class .= 'syntax_' . $arr['type'];
- return '' . htmlspecialchars($arr['data']) . '';
+ return ''
+ . htmlspecialchars($arr['data']) . '';
} // end of the "PMA_SQP_formatHtml_colorize()" function
@@ -2211,7 +2244,8 @@ function PMA_SQP_formatHtml(
$in_priv_list = false;
for ($i = $start_token; $i < $number_of_tokens; $i++) {
- // DEBUG echo "Loop format " . $arr[$i]['data'] . " " . $arr[$i]['type'] . "
";
+ // DEBUG echo "Loop format " . $arr[$i]['data']
+ // . " " . $arr[$i]['type'] . "
";
$before = '';
$after = '';
// array_shift($typearr);
@@ -2243,8 +2277,10 @@ function PMA_SQP_formatHtml(
$bracketlevel++;
$infunction = false;
// Make sure this array is sorted!
- if (($typearr[1] == 'alpha_functionName') || ($typearr[1] == 'alpha_columnType') || ($typearr[1] == 'punct')
- || ($typearr[3] == 'digit_integer') || ($typearr[3] == 'digit_hex') || ($typearr[3] == 'digit_float')
+ if (($typearr[1] == 'alpha_functionName')
+ || ($typearr[1] == 'alpha_columnType') || ($typearr[1] == 'punct')
+ || ($typearr[3] == 'digit_integer') || ($typearr[3] == 'digit_hex')
+ || ($typearr[3] == 'digit_float')
|| (($typearr[0] == 'alpha_reservedWord')
&& isset($keywords_with_brackets_2before[strtoupper($arr[$i - 2]['data'])]))
|| (($typearr[1] == 'alpha_reservedWord')
@@ -2255,11 +2291,17 @@ function PMA_SQP_formatHtml(
$after .= ' ';
} else {
$indent++;
- $after .= ($mode != 'query_only' ? '
' : ' ');
+ if ($mode != 'query_only') {
+ $after .= '
';
+ } else {
+ $after .= ' ';
+ }
}
break;
case 'alpha_identifier':
- if (($typearr[1] == 'punct_qualifier') || ($typearr[3] == 'punct_qualifier')) {
+ if (($typearr[1] == 'punct_qualifier')
+ || ($typearr[3] == 'punct_qualifier')
+ ) {
$after = '';
$before = '';
}
@@ -2267,7 +2309,9 @@ function PMA_SQP_formatHtml(
if ($typearr[1] == 'digit_integer') {
$before = ' ';
}
- if (($typearr[3] == 'alpha_columnType') || ($typearr[3] == 'alpha_identifier')) {
+ if (($typearr[3] == 'alpha_columnType')
+ || ($typearr[3] == 'alpha_identifier')
+ ) {
$after .= ' ';
}
break;
@@ -2284,7 +2328,10 @@ function PMA_SQP_formatHtml(
}
break;
case 'punct_queryend':
- if (($typearr[3] != 'comment_mysql') && ($typearr[3] != 'comment_ansi') && $typearr[3] != 'comment_c') {
+ if (($typearr[3] != 'comment_mysql')
+ && ($typearr[3] != 'comment_ansi')
+ && $typearr[3] != 'comment_c'
+ ) {
$after .= $html_line_break;
$after .= $html_line_break;
}
@@ -2353,7 +2400,13 @@ function PMA_SQP_formatHtml(
case 'bit':
case 'boolean':
case 'serial':
- $before .= PMA_showMySQLDocu('data-types', 'numeric-types', false, '', true);
+ $before .= PMA_showMySQLDocu(
+ 'data-types',
+ 'numeric-types',
+ false,
+ '',
+ true
+ );
$after = '' . $after;
break;
case 'date':
@@ -2361,7 +2414,13 @@ function PMA_SQP_formatHtml(
case 'timestamp':
case 'time':
case 'year':
- $before .= PMA_showMySQLDocu('data-types', 'date-and-time-types', false, '', true);
+ $before .= PMA_showMySQLDocu(
+ 'data-types',
+ 'date-and-time-types',
+ false,
+ '',
+ true
+ );
$after = '' . $after;
break;
case 'char':
@@ -2378,7 +2437,13 @@ function PMA_SQP_formatHtml(
case 'longblob':
case 'enum':
case 'set':
- $before .= PMA_showMySQLDocu('data-types', 'string-types', false, '', true);
+ $before .= PMA_showMySQLDocu(
+ 'data-types',
+ 'string-types',
+ false,
+ '',
+ true
+ );
$after = '' . $after;
break;
}
@@ -2394,16 +2459,23 @@ function PMA_SQP_formatHtml(
// ALTER TABLE tbl_name AUTO_INCREMENT = 1
// COLLATE LATIN1_GENERAL_CI DEFAULT
- if ($typearr[1] == 'alpha_identifier' || $typearr[1] == 'alpha_charset') {
+ if ($typearr[1] == 'alpha_identifier'
+ || $typearr[1] == 'alpha_charset'
+ ) {
$before .= ' ';
}
- if (($typearr[3] == 'alpha_columnAttrib') || ($typearr[3] == 'quote_single') || ($typearr[3] == 'digit_integer')) {
+ if (($typearr[3] == 'alpha_columnAttrib')
+ || ($typearr[3] == 'quote_single')
+ || ($typearr[3] == 'digit_integer')
+ ) {
$after .= ' ';
}
// workaround for
// AUTO_INCREMENT = 31DEFAULT_CHARSET = utf-8
- if ($typearr[2] == 'alpha_columnAttrib' && $typearr[3] == 'alpha_reservedWord') {
+ if ($typearr[2] == 'alpha_columnAttrib'
+ && $typearr[3] == 'alpha_reservedWord'
+ ) {
$before .= ' ';
}
// workaround for
@@ -2465,7 +2537,11 @@ function PMA_SQP_formatHtml(
* @todo fix all cases and find why this happens
*/
- if (!$in_priv_list || $typearr[1] == 'alpha_identifier' || $typearr[1] == 'quote_single' || $typearr[1] == 'white_newline') {
+ if (!$in_priv_list
+ || $typearr[1] == 'alpha_identifier'
+ || $typearr[1] == 'quote_single'
+ || $typearr[1] == 'white_newline'
+ ) {
$before .= $space_alpha_reserved_word;
}
} else {
@@ -2500,12 +2576,26 @@ function PMA_SQP_formatHtml(
case 'SERVER':
case 'DATABASE':
case 'VIEW':
- $before .= PMA_showMySQLDocu('SQL-Syntax', $arr[$i]['data'] . '_' . $arr[$i + 1]['data'], false, '', true);
+ $before .= PMA_showMySQLDocu(
+ 'SQL-Syntax',
+ $arr[$i]['data'] . '_' . $arr[$i + 1]['data'],
+ false,
+ '',
+ true
+ );
$close_docu_link = true;
break;
}
- if ($arr[$i + 1]['data'] == 'LOGFILE' && $arr[$i + 2]['data'] == 'GROUP') {
- $before .= PMA_showMySQLDocu('SQL-Syntax', $arr[$i]['data'] . '_LOGFILE_GROUP', false, '', true);
+ if ($arr[$i + 1]['data'] == 'LOGFILE'
+ && $arr[$i + 2]['data'] == 'GROUP'
+ ) {
+ $before .= PMA_showMySQLDocu(
+ 'SQL-Syntax',
+ $arr[$i]['data'] . '_LOGFILE_GROUP',
+ false,
+ '',
+ true
+ );
$close_docu_link = true;
}
}
@@ -2532,7 +2622,13 @@ function PMA_SQP_formatHtml(
break;
case 'SET':
if ($docu && ($i == 0 || $arr[$i - 1]['data'] != 'CHARACTER')) {
- $before .= PMA_showMySQLDocu('SQL-Syntax', $arr[$i]['data'], false, '', true);
+ $before .= PMA_showMySQLDocu(
+ 'SQL-Syntax',
+ $arr[$i]['data'],
+ false,
+ '',
+ true
+ );
$after = '' . $after;
}
if (!$in_priv_list) {
@@ -2546,7 +2642,13 @@ function PMA_SQP_formatHtml(
case 'SHOW':
case 'UPDATE':
if ($docu) {
- $before .= PMA_showMySQLDocu('SQL-Syntax', $arr[$i]['data'], false, '', true);
+ $before .= PMA_showMySQLDocu(
+ 'SQL-Syntax',
+ $arr[$i]['data'],
+ false,
+ '',
+ true
+ );
$after = '' . $after;
}
if (!$in_priv_list) {
@@ -2557,7 +2659,13 @@ function PMA_SQP_formatHtml(
case 'INSERT':
case 'REPLACE':
if ($docu) {
- $before .= PMA_showMySQLDocu('SQL-Syntax', $arr[$i]['data'], false, '', true);
+ $before .= PMA_showMySQLDocu(
+ 'SQL-Syntax',
+ $arr[$i]['data'],
+ false,
+ '',
+ true
+ );
$after = '' . $after;
}
if (!$in_priv_list) {
@@ -2571,7 +2679,13 @@ function PMA_SQP_formatHtml(
break;
case 'SELECT':
if ($docu) {
- $before .= PMA_showMySQLDocu('SQL-Syntax', 'SELECT', false, '', true);
+ $before .= PMA_showMySQLDocu(
+ 'SQL-Syntax',
+ 'SELECT',
+ false,
+ '',
+ true
+ );
$after = '' . $after;
}
$space_punct_listsep = ' ';
@@ -2581,26 +2695,76 @@ function PMA_SQP_formatHtml(
case 'DO':
case 'HANDLER':
if ($docu) {
- $before .= PMA_showMySQLDocu('SQL-Syntax', $arr[$i]['data'], false, '', true);
+ $before .= PMA_showMySQLDocu(
+ 'SQL-Syntax',
+ $arr[$i]['data'],
+ false,
+ '',
+ true
+ );
$after = '' . $after;
}
break;
default:
- if ($close_docu_link && in_array($arr[$i]['data'], array('LIKE', 'NOT', 'IN', 'REGEXP', 'NULL'))) {
+ if ($close_docu_link
+ && in_array(
+ $arr[$i]['data'],
+ array('LIKE', 'NOT', 'IN', 'REGEXP', 'NULL')
+ )
+ ) {
$after .= '';
$close_docu_link = false;
- } else if ($docu && isset($PMA_SQPdata_functions_docs[$arr[$i]['data']])) {
+ } else if ($docu
+ && isset($PMA_SQPdata_functions_docs[$arr[$i]['data']])
+ ) {
/* Handle multi word statements first */
- if (isset($typearr[4]) && $typearr[4] == 'alpha_reservedWord' && $typearr[3] == 'alpha_reservedWord' && isset($PMA_SQPdata_functions_docs[strtoupper($arr[$i]['data'] . '_' . $arr[$i + 1]['data'] . '_' . $arr[$i + 2]['data'])])) {
- $tempname = strtoupper($arr[$i]['data'] . '_' . $arr[$i + 1]['data'] . '_' . $arr[$i + 2]['data']);
- $before .= PMA_showMySQLDocu('functions', $PMA_SQPdata_functions_docs[$tempname]['link'], false, $PMA_SQPdata_functions_docs[$tempname]['anchor'], true);
+ if (isset($typearr[4])
+ && $typearr[4] == 'alpha_reservedWord'
+ && $typearr[3] == 'alpha_reservedWord'
+ && isset($PMA_SQPdata_functions_docs[strtoupper(
+ $arr[$i]['data'] . '_'
+ . $arr[$i + 1]['data'] . '_'
+ . $arr[$i + 2]['data']
+ )])
+ ) {
+ $tempname = strtoupper(
+ $arr[$i]['data'] . '_'
+ . $arr[$i + 1]['data'] . '_'
+ . $arr[$i + 2]['data']
+ );
+ $before .= PMA_showMySQLDocu(
+ 'functions',
+ $PMA_SQPdata_functions_docs[$tempname]['link'],
+ false,
+ $PMA_SQPdata_functions_docs[$tempname]['anchor'],
+ true
+ );
$close_docu_link = true;
- } else if (isset($typearr[3]) && $typearr[3] == 'alpha_reservedWord' && isset($PMA_SQPdata_functions_docs[strtoupper($arr[$i]['data'] . '_' . $arr[$i + 1]['data'])])) {
- $tempname = strtoupper($arr[$i]['data'] . '_' . $arr[$i + 1]['data']);
- $before .= PMA_showMySQLDocu('functions', $PMA_SQPdata_functions_docs[$tempname]['link'], false, $PMA_SQPdata_functions_docs[$tempname]['anchor'], true);
+ } else if (isset($typearr[3])
+ && $typearr[3] == 'alpha_reservedWord'
+ && isset($PMA_SQPdata_functions_docs[strtoupper(
+ $arr[$i]['data'] . '_' . $arr[$i + 1]['data']
+ )])
+ ) {
+ $tempname = strtoupper(
+ $arr[$i]['data'] . '_' . $arr[$i + 1]['data']
+ );
+ $before .= PMA_showMySQLDocu(
+ 'functions',
+ $PMA_SQPdata_functions_docs[$tempname]['link'],
+ false,
+ $PMA_SQPdata_functions_docs[$tempname]['anchor'],
+ true
+ );
$close_docu_link = true;
} else {
- $before .= PMA_showMySQLDocu('functions', $PMA_SQPdata_functions_docs[$arr[$i]['data']]['link'], false, $PMA_SQPdata_functions_docs[$arr[$i]['data']]['anchor'], true);
+ $before .= PMA_showMySQLDocu(
+ 'functions',
+ $PMA_SQPdata_functions_docs[$arr[$i]['data']]['link'],
+ false,
+ $PMA_SQPdata_functions_docs[$arr[$i]['data']]['anchor'],
+ true
+ );
$after .= '';
}
}
@@ -2635,7 +2799,9 @@ function PMA_SQP_formatHtml(
// the @ is incorrectly marked as alpha_variable
// in the parser, and here, the '%' gets a blank before,
// which is a syntax error
- if ($typearr[1] != 'punct_user' && $typearr[1] != 'alpha_bitfield_constant_introducer') {
+ if ($typearr[1] != 'punct_user'
+ && $typearr[1] != 'alpha_bitfield_constant_introducer'
+ ) {
$before .= ' ';
}
if ($infunction && $typearr[3] == 'punct_bracket_close_round') {
@@ -2646,10 +2812,16 @@ function PMA_SQP_formatHtml(
// here we check for punct_user to handle correctly
// DEFINER = `username`@`%`
// where @ is the punct_user and `%` is the quote_backtick
- if ($typearr[3] != 'punct_qualifier' && $typearr[3] != 'alpha_variable' && $typearr[3] != 'punct_user') {
+ if ($typearr[3] != 'punct_qualifier'
+ && $typearr[3] != 'alpha_variable'
+ && $typearr[3] != 'punct_user'
+ ) {
$after .= ' ';
}
- if ($typearr[1] != 'punct_qualifier' && $typearr[1] != 'alpha_variable' && $typearr[1] != 'punct_user') {
+ if ($typearr[1] != 'punct_qualifier'
+ && $typearr[1] != 'alpha_variable'
+ && $typearr[1] != 'punct_user'
+ ) {
$before .= ' ';
}
break;
diff --git a/po/es.po b/po/es.po
index 221176f04c..db4233ec30 100644
--- a/po/es.po
+++ b/po/es.po
@@ -4,7 +4,7 @@ msgstr ""
"Project-Id-Version: phpMyAdmin 4.0.0-dev\n"
"Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-05-29 09:46+0200\n"
-"PO-Revision-Date: 2012-05-26 18:46+0200\n"
+"PO-Revision-Date: 2012-05-29 16:04+0200\n"
"Last-Translator: Matías Bellone
\n"
"Language-Team: spanish \n"
"Language: es\n"
@@ -99,8 +99,8 @@ msgid ""
"The %s file is not available on this system, please visit www.phpmyadmin.net "
"for more information."
msgstr ""
-"El archivo %s no está disponible en este sistema, por favor visite www."
-"phpmyadmin.net para más información."
+"El archivo %s no está disponible en este sistema, visite www.phpmyadmin.net "
+"para más información."
#: db_create.php:74
#, php-format
@@ -616,8 +616,8 @@ msgid ""
"This view has at least this number of rows. Please refer to %sdocumentation"
"%s."
msgstr ""
-"Esta vista tiene al menos este número de filas. Por favor refiérase a la "
-"%sdocumentation%s."
+"Esta vista tiene al menos este número de filas. Refiérase a la %"
+"sdocumentation%s."
#: db_structure.php:543 db_structure.php:577 libraries/Menu.class.php:194
#: libraries/tbl_info.inc.php:60 tbl_structure.php:208
@@ -936,9 +936,8 @@ msgid ""
"You probably tried to upload too large file. Please refer to %sdocumentation"
"%s for ways to workaround this limit."
msgstr ""
-"Usted probablemente intentó cargar un archivo demasiado grande. Por favor, "
-"refiérase a %sla documentation%s para hallar modos de superar esta "
-"limitación."
+"Usted probablemente intentó cargar un archivo demasiado grande. Refiérase a "
+"%sla documentation%s para hallar modos de superar esta limitación."
#: import.php:216 import.php:443
msgid "Showing bookmark"
@@ -1002,7 +1001,7 @@ msgid ""
"file and import will resume."
msgstr ""
"Se ha agotado el tiempo de ejecución del script; si desea completar la "
-"importación por favor reenvíe el mismo archivo y la importación continuará."
+"importación reenvíe el mismo archivo y la importación continuará."
#: import.php:468
msgid ""
@@ -1220,9 +1219,8 @@ msgid ""
msgstr ""
"La configuración de distribución de gráficos en el almacenamiento local del "
"navegador no es compatible con la nueva versión del sistema de "
-"monitorización. Es probable que la configuración no funcione. Porfavor, "
-"reinicie la configuración a la predeterminada en el menú Configuración"
-"i>."
+"monitorización. Es probable que la configuración no funcione. Reinicie la "
+"configuración a la predeterminada en el menú Configuración."
#: js/messages.php:93
msgid "Query cache efficiency"
@@ -1372,7 +1370,7 @@ msgstr "Agregar gráfico a la grilla"
#: js/messages.php:138
msgid "Please add at least one variable to the series"
-msgstr "Por favor agregue al menos una variable a la serie"
+msgstr "Agregue al menos una variable a la serie"
#: js/messages.php:139 libraries/display_export.lib.php:323
#: libraries/display_tbl.lib.php:1171 libraries/export/sql.php:1395
@@ -1467,8 +1465,8 @@ msgid ""
"You can't change these variables. Please log in as root or contact your "
"database administrator."
msgstr ""
-"No posee permisos para cambiar estas variables. Por favor inicie sesión con "
-"la cuenta root o contacte a su administrador de base de datos."
+"No posee permisos para cambiar estas variables. Inicie sesión con la cuenta "
+"root o contacte a su administrador de base de datos."
#: js/messages.php:161
msgid "Change settings"
@@ -1669,7 +1667,7 @@ msgstr "Importar"
#: js/messages.php:213
msgid "Import monitor configuration"
-msgstr "Importar configuración de monitorización"
+msgstr "Importar configuración"
#: js/messages.php:214
msgid "Please select the file you want to import"
@@ -1906,7 +1904,7 @@ msgstr "Ubicar el cursor sobre un punto mostrará su etiqueta."
#: js/messages.php:304
msgid "To zoom in, select a section of the plot with the mouse."
-msgstr "Para ampliar, seleccione una sección del gráfico."
+msgstr "Para ampliar, seleccione el gráfico."
#: js/messages.php:306
msgid "Click reset zoom link to come back to original state."
@@ -1962,7 +1960,7 @@ msgstr "Seleccione la clave foránea"
#: js/messages.php:339
msgid "Please select the primary key or a unique key"
-msgstr "Por favor seleccione la clave primaria o una clave única"
+msgstr "Seleccione la clave primaria o una clave única"
#: js/messages.php:340 pmd_general.php:92 tbl_relation.php:551
msgid "Choose column to display"
@@ -3238,8 +3236,8 @@ msgstr ""
#, php-format
msgid "No activity within %s seconds; please log in again"
msgstr ""
-"No ha habido actividad desde hace %s o más segundos, por favor reingrese al "
-"sitio"
+"No ha habido actividad desde hace %s o más segundos; inicie sesión "
+"nuevamente"
#: libraries/auth/cookie.auth.lib.php:629
#: libraries/auth/cookie.auth.lib.php:631
@@ -3340,8 +3338,8 @@ msgid ""
"This usually means there is a syntax error in it, please check any errors "
"shown below."
msgstr ""
-"Esto generalmente significa que tiene un error de sintáxis, por favor revisa "
-"los errores que se muestran a continuación."
+"Esto generalmente significa que tiene un error de sintáxis, revisa los "
+"errores que se muestran a continuación."
#: libraries/common.inc.php:617
#, php-format
@@ -3365,7 +3363,7 @@ msgstr "Índice de servidor inválido: %s"
#, php-format
msgid "Invalid hostname for server %1$s. Please review your configuration."
msgstr ""
-"El nombre del host no es válido para el servidor %1$s. Por favor revise su "
+"El nombre del host no es válido para el servidor %1$s. Revise su "
"configuración."
#: libraries/common.inc.php:877
@@ -4406,8 +4404,8 @@ msgid ""
"Please note that phpMyAdmin is just a user interface and its features do not "
"limit MySQL"
msgstr ""
-"Por favor tome en cuenta que phpMyAdmin es solamente una interfaz y sus "
-"opciones no limitan a MySQL"
+"Tenga en cuenta que phpMyAdmin es solamente una interfaz y sus opciones no "
+"limitan a MySQL"
#: libraries/config/messages.inc.php:202
msgid "Basic settings"
@@ -6042,7 +6040,7 @@ msgstr "es"
#: libraries/core.lib.php:276
#, php-format
msgid "The %s extension is missing. Please check your PHP configuration."
-msgstr "No se encontró la extensión %s. Por favor revisa la configuración PHP."
+msgstr "No se encontró la extensión %s. Revisa la configuración PHP."
#: libraries/core.lib.php:430
msgid "possible deep recursion attack"
@@ -6345,15 +6343,15 @@ msgstr "Alrededor de %SEC seg. restantes."
#: libraries/display_import.lib.php:127
msgid "The file is being processed, please be patient."
-msgstr "El archivo está siendo procesado, por favor sea paciente."
+msgstr "El archivo está siendo procesado, sea paciente."
#: libraries/display_import.lib.php:147
msgid ""
"Please be patient, the file is being uploaded. Details about the upload are "
"not available."
msgstr ""
-"Por favor sea paciente, el archivo está siendo cargado. Los detalles de la "
-"carga no están disponibles."
+"Sea paciente, el archivo está siendo cargado. Los detalles de la carga no "
+"están disponibles."
#: libraries/display_import.lib.php:178
msgid "Importing into the current server"
@@ -7416,8 +7414,8 @@ msgid ""
"The XML file specified was either malformed or incomplete. Please correct "
"the issue and try again."
msgstr ""
-"El archivo XML especificado estaba incompleto o mal formado. Por favor "
-"corrija el problema e intente nuevamente."
+"El archivo XML especificado estaba incompleto o mal formado. Corrija el "
+"problema e intente nuevamente."
#: libraries/import/shp.php:20
msgid "ESRI Shape File"
@@ -7836,8 +7834,7 @@ msgstr "Transformación del navegador"
#: libraries/relation.lib.php:183
msgid ""
"Please see the documentation on how to update your column_comments table"
-msgstr ""
-"Para actualizar su tabla column_comments, por favor revise la documentación"
+msgstr "Para actualizar su tabla column_comments, revise la documentación"
#: libraries/relation.lib.php:195 libraries/sql_query_form.lib.php:382
msgid "Bookmarked SQL query"
@@ -8640,16 +8637,16 @@ msgid ""
"and submit a bug report with the data chunk in the CUT section below:"
msgstr ""
"Existe la posibilidad que usted haya encontrado un error en el intérprete de "
-"SQL. Por favor examine cuidadosamente su consulta y verifique que las "
-"comillas están siendo usadas adecuadamente y hacen juego. Otra posible causa "
-"del fallo es que esté subiendo un archivo con datos binarios por fuera del "
-"área de texto delimitado con comillas. Intente su consulta en la interfaz de "
-"comandos de MySQL. La salida generada por el servidor de MySQL, de existir, "
-"aparece abajo y puede ayudar a diagnosticar el problema. Si aún tiene "
-"problemas o el intérprete falla en tanto que en la interfaz de comandos "
-"funciona, por favor reduzca la salida de su consulta de SQL a la consulta "
-"que genera el problema y envíe un reporte de error con la cadena de datos en "
-"la sección de CORTE indicada abajo:"
+"SQL. Examine cuidadosamente su consulta y verifique que las comillas están "
+"siendo usadas adecuadamente y hacen juego. Otra posible causa del fallo es "
+"que esté subiendo un archivo con datos binarios por fuera del área de texto "
+"delimitado con comillas. Intente su consulta en la interfaz de comandos de "
+"MySQL. La salida generada por el servidor de MySQL, de existir, aparece "
+"abajo y puede ayudar a diagnosticar el problema. Si aún tiene problemas o el "
+"intérprete falla en tanto que en la interfaz de órdenes funciona, reduzca "
+"la salida de su consulta de SQL a la consulta que genera el problema y envíe "
+"un reporte de error con la cadena de datos en la sección de CORTE indicada "
+"abajo:"
#: libraries/sqlparser.lib.php:178
msgid "BEGIN CUT"
@@ -8689,8 +8686,8 @@ msgid ""
"The SQL validator could not be initialized. Please check if you have "
"installed the necessary PHP extensions as described in the %sdocumentation%s."
msgstr ""
-"El validador de SQL no pudo inicializarse. Por favor revise si ha instalado "
-"las extensiones php necesarias, como están descritas en la %sdocumentación%s."
+"El validador de SQL no pudo inicializarse. Revise si ha instalado las "
+"extensiones PHP necesarias, como indica la %sdocumentación%s."
#: libraries/tbl_common.inc.php:58
#, php-format
@@ -8825,8 +8822,8 @@ msgid ""
"No description is available for this transformation.
Please ask the "
"author what %s does."
msgstr ""
-"No hay una descripción disponible para esta transformación.
Por favor "
-"pregunte al autor lo que %s hace."
+"No hay una descripción disponible para esta transformación.
Pregunte al "
+"autor lo que hace «%s»."
#: libraries/transformations/application_octetstream__download.inc.php:13
msgid ""
@@ -9181,8 +9178,8 @@ msgid ""
"Server running with Suhosin. Please refer to %sdocumentation%s for possible "
"issues."
msgstr ""
-"El servidor está utilizando Suhosin. Por favor refiérase a la %sdocumentación"
-"%s para posibles ajustes."
+"El servidor está utilizando Suhosin. Refiérase a la %sdocumentación%s por "
+"posibles inconvenientes."
#: navigation.php:175 server_databases.php:311 server_synchronize.php:1465
msgid "No databases"
@@ -10091,7 +10088,7 @@ msgstr ""
"Se pede seleccionar replicar todas las bases de datos e ignorar algunas "
"(útil cuando se quiere replicar la mayoría de las bases de datos) o bien "
"ignorar todas las bases de datos y sólo permitir que ciertas bases de datos "
-"sean replicadas. Por favor elija el modo:"
+"sean replicadas. Elija el modo:"
#: server_replication.php:248
msgid "Replicate all databases; Ignore:"
@@ -10419,8 +10416,8 @@ msgid ""
"For further information about replication status on the server, please visit "
"the replication section."
msgstr ""
-"Para más información sobre el estado de replicación en el servidor, por "
-"favor visita la sección sobre replicación."
+"Para más información sobre el estado de replicación en el servidor, revise "
+"la sección sobre replicación."
#: server_status.php:1092
msgid "Replication status"
@@ -11537,9 +11534,9 @@ msgid ""
"level directory as described in [a@Documentation.html#setup_script]"
"documentation[/a]. Otherwise you will be only able to download or display it."
msgstr ""
-"Por favor cree una carpeta [em]config[/em] que pueda ser modificada por el "
-"servidor web en el nivel más alto del directorio phpMyAdmin como se describe "
-"en [a@Documentation.html#setup_script]la documentación[/a]. De lo contrario, "
+"Cree una carpeta [em]config[/em] que pueda ser modificada por el servidor "
+"web en el nivel más alto del directorio phpMyAdmin como se describe en "
+"[a@Documentation.html#setup_script]la documentación[/a]. De lo contrario, "
"sólamente podrá descargar o mostrar la configuración."
#: setup/frames/index.inc.php:60
@@ -12378,8 +12375,8 @@ msgid ""
"You can execute the dump by creating and using a temporary database. Please "
"ensure that you have the privileges to do so."
msgstr ""
-"Puedes ejecutar el volcado creando y utilizando una base de datos temporal. "
-"Por favor asegúrate de tener los privilegios para poder hacerlo."
+"Puede ejecutar el volcado creando y utilizando una base de datos temporal. "
+"Asegúrese de tener los privilegios para poder hacerlo."
#: tbl_tracking.php:252
msgid "Comment out these two lines if you do not need them."
@@ -12387,7 +12384,7 @@ msgstr "Comenta estas dos líneas si no las necesitas."
#: tbl_tracking.php:261
msgid "SQL statements exported. Please copy the dump or execute it."
-msgstr "Sentencias SQL exportadas. Por favor copia el volcado o ejecútalo."
+msgstr "Sentencias SQL exportadas. Copia el volcado o ejecútalo."
#: tbl_tracking.php:292
#, php-format
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 87633ba3cf..a9814f5f5b 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -4,8 +4,8 @@ msgstr ""
"Project-Id-Version: phpMyAdmin 4.0.0-dev\n"
"Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-05-29 09:46+0200\n"
-"PO-Revision-Date: 2012-05-23 10:36+0200\n"
-"Last-Translator: Sebastiao Rocha \n"
+"PO-Revision-Date: 2012-05-29 15:01+0200\n"
+"Last-Translator: Thales Carpi \n"
"Language-Team: brazilian_portuguese \n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
@@ -440,7 +440,7 @@ msgstr "Critério"
#: db_qbe.php:380 db_qbe.php:462 db_qbe.php:554 db_qbe.php:585
msgid "Ins"
-msgstr "Ins"
+msgstr "Inserir"
#: db_qbe.php:384 db_qbe.php:466 db_qbe.php:551 db_qbe.php:582
msgid "And"
@@ -448,7 +448,7 @@ msgstr "E"
#: db_qbe.php:393 db_qbe.php:474 db_qbe.php:556 db_qbe.php:587
msgid "Del"
-msgstr "Del"
+msgstr "Deletar"
#: db_qbe.php:397 db_qbe.php:478 db_qbe.php:549 db_qbe.php:580
#: libraries/insert_edit.lib.php:1054 server_privileges.php:484
@@ -1505,7 +1505,7 @@ msgstr "Do relatório geral"
#: js/messages.php:172
msgid "Analysing logs"
-msgstr "Analisando relatorios"
+msgstr "Analisando relatórios"
#: js/messages.php:173
msgid "Analysing & loading logs. This may take a while."
@@ -1546,7 +1546,7 @@ msgstr "Ir para a tabela de Log"
#: js/messages.php:180
msgid "No data found"
-msgstr "Não existem dados"
+msgstr "Dados não encontrados"
#: js/messages.php:181
msgid "Log analysed, but no data found in this time span."
@@ -2638,7 +2638,7 @@ msgstr ""
#: libraries/Menu.class.php:522
msgid "Engines"
-msgstr "Engines"
+msgstr "Motores"
#: libraries/Message.class.php:199 libraries/common.lib.php:629
#: libraries/core.lib.php:217 libraries/import.lib.php:141
@@ -3318,19 +3318,19 @@ msgstr "Documentação"
#: libraries/common.lib.php:469
msgctxt "MySQL 5.5 documentation language"
msgid "en"
-msgstr "en"
+msgstr "ing"
#. l10n: Please check that translation actually exists.
#: libraries/common.lib.php:473
msgctxt "MySQL 5.1 documentation language"
msgid "en"
-msgstr "en"
+msgstr "ing"
#. l10n: Please check that translation actually exists.
#: libraries/common.lib.php:477
msgctxt "MySQL 5.0 documentation language"
msgid "en"
-msgstr "en"
+msgstr "ing"
#: libraries/common.lib.php:642 server_status.php:602 server_status.php:1262
#: sql.php:934
@@ -4052,7 +4052,7 @@ msgstr "Rótulo da chave"
#: libraries/config/messages.inc.php:138 libraries/export/odt.php:450
#: libraries/tbl_properties.inc.php:137
msgid "MIME type"
-msgstr "MIME type"
+msgstr "MIME"
#: libraries/config/messages.inc.php:104 libraries/config/messages.inc.php:116
#: libraries/config/messages.inc.php:140 tbl_relation.php:398
@@ -6524,7 +6524,7 @@ msgstr ""
#: libraries/engines/innodb.lib.php:133
msgid "Buffer Pool"
-msgstr "Buffer Pool"
+msgstr "\"Buffer Pool\""
#: libraries/engines/innodb.lib.php:134 server_status.php:663
msgid "InnoDB Status"
@@ -8486,7 +8486,7 @@ msgstr "mudar o estado do Scratchboard"
#. l10n: Text direction, use either ltr or rtl
#: libraries/select_lang.lib.php:497
msgid "ltr"
-msgstr "ltr"
+msgstr "esquerda pra direita"
#: libraries/select_lang.lib.php:515 libraries/select_lang.lib.php:524
#: libraries/select_lang.lib.php:533
@@ -8773,7 +8773,7 @@ msgstr "Você deve adicionar pelo menos um campo."
#: libraries/tbl_properties.inc.php:820 server_engines.php:41
#: tbl_operations.php:377
msgid "Storage Engine"
-msgstr "Storage Engine"
+msgstr ""
#: libraries/tbl_properties.inc.php:861
msgid "PARTITION definition"
@@ -9550,7 +9550,7 @@ msgstr ""
#: server_engines.php:32
msgid "Storage Engines"
-msgstr "Storage Engines"
+msgstr ""
#: server_export.php:16
msgid "View dump (schema) of databases"
@@ -10024,6 +10024,7 @@ msgid "Users having access to "%s""
msgstr "Usuários que têm acesso à "%s""
#: server_privileges.php:2522
+#, fuzzy
msgid "global"
msgstr "global"
diff --git a/po/sv.po b/po/sv.po
index edd8801394..1e67865a18 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -4,7 +4,7 @@ msgstr ""
"Project-Id-Version: phpMyAdmin 4.0.0-dev\n"
"Report-Msgid-Bugs-To: phpmyadmin-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2012-05-29 09:46+0200\n"
-"PO-Revision-Date: 2012-05-20 21:47+0200\n"
+"PO-Revision-Date: 2012-05-29 20:47+0200\n"
"Last-Translator: ProUser \n"
"Language-Team: swedish \n"
"Language: sv\n"
@@ -1884,7 +1884,7 @@ msgstr "Hovra över en punkt kommer visa etiketten."
#: js/messages.php:304
msgid "To zoom in, select a section of the plot with the mouse."
-msgstr ""
+msgstr "För att zooma in, välja en del av grafen med musen."
#: js/messages.php:306
msgid "Click reset zoom link to come back to original state."
@@ -6335,10 +6335,9 @@ msgid "vertical"
msgstr "vertikal"
#: libraries/display_tbl.lib.php:635
-#, fuzzy
#| msgid "Headers every %s rows"
msgid "Headers every"
-msgstr "Sidhuvud var %s rad"
+msgstr "Rubriker varje"
#: libraries/display_tbl.lib.php:639
msgid "rows"
@@ -12272,10 +12271,9 @@ msgid "How to use"
msgstr "Hur du använder"
#: tbl_zoom_select.php:432
-#, fuzzy
#| msgid "Reset"
msgid "Reset zoom"
-msgstr "Återställ"
+msgstr "Återställ zoom"
#: themes.php:28
msgid "Get more themes!"
diff --git a/tbl_printview.php b/tbl_printview.php
index 68764443ae..78d5876154 100644
--- a/tbl_printview.php
+++ b/tbl_printview.php
@@ -299,10 +299,6 @@ foreach ($the_tables as $key => $table) {
-
- |
- |
-
|
|
@@ -355,10 +351,6 @@ foreach ($the_tables as $key => $table) {
-
- |
- |
-
diff --git a/tbl_structure.php b/tbl_structure.php
index f60f2412dd..013cab4bc5 100644
--- a/tbl_structure.php
+++ b/tbl_structure.php
@@ -828,12 +828,6 @@ if ($cfg['ShowStats']) {
-
-
- |
- |
-
-
|
@@ -894,12 +888,6 @@ if ($cfg['ShowStats']) {
?>
-
-
- |
- |
-
-
';
$html .= $GLOBALS['PMA_Types']->getTypeOperatorsHtml(
- preg_replace('@\(.*@s', '', $fields_type[$i]),
+ preg_replace('@\(.*@s', '', $fields_type[$key]),
$fields_null[$key]
);
$html .= '';
| |