Merge pull request #15366 from mauriciofauth/media-type-2
Change Media (MIME) type references to Media type
This commit is contained in:
commit
cf7671edd1
@ -2,6 +2,7 @@ phpMyAdmin - ChangeLog
|
||||
======================
|
||||
|
||||
5.1.0 (not yet released)
|
||||
- issue #15350 Change Media (MIME) type references to Media type
|
||||
|
||||
5.0.0 (not yet released)
|
||||
- issue #13896 Drop support for PHP 5.5, PHP 5.6, PHP 7.0 and HHVM
|
||||
|
||||
@ -1623,7 +1623,7 @@ It means "average".
|
||||
any) will be included in backup.
|
||||
* "Enclose table and column names with backquotes" ensures that column
|
||||
and table names formed with special characters are protected.
|
||||
* "Add into comments" includes column comments, relations, and media (MIME)
|
||||
* "Add into comments" includes column comments, relations, and media
|
||||
types set in the pmadb in the dump as :term:`SQL` comments
|
||||
(*/\* xxx \*/*).
|
||||
|
||||
|
||||
@ -214,7 +214,7 @@ class Descriptions
|
||||
'Export_latex_data_caption_name' => __('Table caption'),
|
||||
'Export_latex_data_continued_caption_name' => __('Continued table caption'),
|
||||
'Export_latex_data_label_name' => __('Label key'),
|
||||
'Export_latex_mime_name' => __('Media (MIME) type'),
|
||||
'Export_latex_mime_name' => __('Media type'),
|
||||
'Export_latex_null_name' => __('Replace NULL with'),
|
||||
'Export_latex_relation_name' => __('Relationships'),
|
||||
'Export_latex_structure_caption_name' => __('Table caption'),
|
||||
@ -226,7 +226,7 @@ class Descriptions
|
||||
'Export_ods_null_name' => __('Replace NULL with'),
|
||||
'Export_odt_columns_name' => __('Put columns names in the first row'),
|
||||
'Export_odt_comments_name' => __('Comments'),
|
||||
'Export_odt_mime_name' => __('Media (MIME) type'),
|
||||
'Export_odt_mime_name' => __('Media type'),
|
||||
'Export_odt_null_name' => __('Replace NULL with'),
|
||||
'Export_odt_relation_name' => __('Relationships'),
|
||||
'Export_odt_structure_or_data_name' => __('Dump table'),
|
||||
@ -264,7 +264,7 @@ class Descriptions
|
||||
'Export_sql_include_comments_name' => __('Comments'),
|
||||
'Export_sql_insert_syntax_name' => __('Syntax to use when inserting data'),
|
||||
'Export_sql_max_query_size_name' => __('Maximal length of created query'),
|
||||
'Export_sql_mime_name' => __('Media (MIME) type'),
|
||||
'Export_sql_mime_name' => __('Media type'),
|
||||
'Export_sql_procedure_function_name' => sprintf(__('Add %s'), 'CREATE PROCEDURE / FUNCTION / EVENT'),
|
||||
'Export_sql_relation_name' => __('Relationships'),
|
||||
'Export_sql_structure_or_data_name' => __('Dump table'),
|
||||
@ -613,7 +613,7 @@ class Descriptions
|
||||
),
|
||||
'Servers_bookmarktable_name' => __('Bookmark table'),
|
||||
'Servers_column_info_desc' => __(
|
||||
'Leave blank for no column comments/media (MIME) types, suggested: '
|
||||
'Leave blank for no column comments/media types, suggested: '
|
||||
. '[kbd]pma__column_info[/kbd].'
|
||||
),
|
||||
'Servers_column_info_name' => __('Column information table'),
|
||||
|
||||
@ -412,7 +412,7 @@ class ExportHtmlword extends ExportPlugin
|
||||
}
|
||||
if ($do_mime && $cfgRelation['mimework']) {
|
||||
$schema_insert .= '<td class="print"><strong>'
|
||||
. __('Media (MIME) type')
|
||||
. __('Media type')
|
||||
. '</strong></td>';
|
||||
$mime_map = $this->transformations->getMime($db, $table, true);
|
||||
}
|
||||
|
||||
@ -153,7 +153,7 @@ class ExportLatex extends ExportPlugin
|
||||
if (! empty($GLOBALS['cfgRelation']['mimework'])) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
"mime",
|
||||
__('Display media (MIME) types')
|
||||
__('Display media types')
|
||||
);
|
||||
$structureOptions->addProperty($leaf);
|
||||
}
|
||||
|
||||
@ -113,7 +113,7 @@ class ExportOdt extends ExportPlugin
|
||||
if (! empty($GLOBALS['cfgRelation']['mimework'])) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
"mime",
|
||||
__('Display media (MIME) types')
|
||||
__('Display media types')
|
||||
);
|
||||
$structureOptions->addProperty($leaf);
|
||||
}
|
||||
@ -512,7 +512,7 @@ class ExportOdt extends ExportPlugin
|
||||
}
|
||||
if ($do_mime && $cfgRelation['mimework']) {
|
||||
$GLOBALS['odt_buffer'] .= '<table:table-cell office:value-type="string">'
|
||||
. '<text:p>' . __('Media (MIME) type') . '</text:p>'
|
||||
. '<text:p>' . __('Media type') . '</text:p>'
|
||||
. '</table:table-cell>';
|
||||
$mime_map = $this->transformations->getMime($db, $table, true);
|
||||
}
|
||||
|
||||
@ -129,7 +129,7 @@ class ExportSql extends ExportPlugin
|
||||
if (! empty($GLOBALS['cfgRelation']['mimework'])) {
|
||||
$leaf = new BoolPropertyItem(
|
||||
'mime',
|
||||
__('Display media (MIME) types')
|
||||
__('Display media types')
|
||||
);
|
||||
$subgroup->addProperty($leaf);
|
||||
}
|
||||
@ -1908,7 +1908,7 @@ class ExportSql extends ExportPlugin
|
||||
$schema_create .= $this->_possibleCRLF()
|
||||
. $this->_exportComment()
|
||||
. $this->_exportComment(
|
||||
__('MEDIA (MIME) TYPES FOR TABLE') . ' '
|
||||
__('MEDIA TYPES FOR TABLE') . ' '
|
||||
. Util::backquote($table, $sql_backquotes) . ':'
|
||||
);
|
||||
foreach ($mime_map as $mime_field => $mime) {
|
||||
|
||||
@ -392,7 +392,7 @@ class ExportTexytext extends ExportPlugin
|
||||
$comments = $this->relation->getComments($db, $table);
|
||||
}
|
||||
if ($do_mime && $cfgRelation['mimework']) {
|
||||
$text_output .= '|' . __('Media (MIME) type');
|
||||
$text_output .= '|' . __('Media type');
|
||||
$mime_map = $this->transformations->getMime($db, $table, true);
|
||||
}
|
||||
$text_output .= "\n|------\n";
|
||||
|
||||
@ -554,7 +554,7 @@ class Pdf extends PdfLib
|
||||
$columns_cnt++;
|
||||
}
|
||||
if ($do_mime && $cfgRelation['mimework']) {
|
||||
$this->colTitles[$columns_cnt] = __('Media (MIME) type');
|
||||
$this->colTitles[$columns_cnt] = __('Media type');
|
||||
$this->display_column[$columns_cnt] = true;
|
||||
$this->colAlign[$columns_cnt] = 'L';
|
||||
$this->tablewidths[$columns_cnt] = 120;
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
|
||||
{% if mimework and browse_mime %}
|
||||
<th>
|
||||
{% trans 'Media (MIME) type' %}
|
||||
{% trans 'Media type' %}
|
||||
</th>
|
||||
<th>
|
||||
<a href="transformation_overview.php
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
{% endif %}
|
||||
<th>{% trans 'Comments' %}</th>
|
||||
{% if table.has_mime %}
|
||||
<th>{% trans 'Media (MIME) type' %}</th>
|
||||
<th>{% trans 'Media type' %}</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% for column in table.columns %}
|
||||
|
||||
@ -67,7 +67,7 @@
|
||||
{{ extracted_columnspec['displayed_type']|raw }}
|
||||
{% if relation_commwork and relation_mimework and browse_mime
|
||||
and mime_map[row['Field']]['mimetype'] is defined %}
|
||||
<br>{% trans 'Media (MIME) type:' %} {{ mime_map[row['Field']]['mimetype']|replace({'_': '/'})|lower }}
|
||||
<br>{% trans 'Media type:' %} {{ mime_map[row['Field']]['mimetype']|replace({'_': '/'})|lower }}
|
||||
{% endif %}
|
||||
</bdo>
|
||||
</td>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<h2>{% trans 'Available media (MIME) types' %}</h2>
|
||||
<h2>{% trans 'Available media types' %}</h2>
|
||||
|
||||
<ul>
|
||||
{% for mime_type in mime_types %}
|
||||
@ -16,7 +16,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans 'Browser display transformation' %}</th>
|
||||
<th>{% trans %}Description{% context %}for media (MIME) type transformation{% endtrans %}</th>
|
||||
<th>{% trans %}Description{% context %}for media type transformation{% endtrans %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -35,7 +35,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans 'Input transformation' %}</th>
|
||||
<th>{% trans %}Description{% context %}for media (MIME) type transformation{% endtrans %}</th>
|
||||
<th>{% trans %}Description{% context %}for media type transformation{% endtrans %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@ -54,7 +54,7 @@ class TransformationOverviewControllerTest extends TestCase
|
||||
$actual = $controller->indexAction();
|
||||
|
||||
$this->assertStringContainsString(
|
||||
__('Available media (MIME) types'),
|
||||
__('Available media types'),
|
||||
$actual
|
||||
);
|
||||
$this->assertStringContainsString(
|
||||
|
||||
@ -565,7 +565,7 @@ class ExportHtmlwordTest extends PmaTestCase
|
||||
'<td class="print"><strong>Null</strong></td>' .
|
||||
'<td class="print"><strong>Default</strong></td>' .
|
||||
'<td class="print"><strong>Comments</strong></td>' .
|
||||
'<td class="print"><strong>Media (MIME) type</strong></td></tr>' .
|
||||
'<td class="print"><strong>Media type</strong></td></tr>' .
|
||||
'1<td class="print"></td><td class="print">Test<</td></tr></table>',
|
||||
$result
|
||||
);
|
||||
|
||||
@ -324,7 +324,7 @@ class ExportLatexTest extends PmaTestCase
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
'Display media (MIME) types',
|
||||
'Display media types',
|
||||
$property->getText()
|
||||
);
|
||||
|
||||
|
||||
@ -230,7 +230,7 @@ class ExportOdtTest extends PmaTestCase
|
||||
);
|
||||
|
||||
$this->assertEquals(
|
||||
'Display media (MIME) types',
|
||||
'Display media types',
|
||||
$property->getText()
|
||||
);
|
||||
|
||||
@ -791,7 +791,7 @@ class ExportOdtTest extends PmaTestCase
|
||||
);
|
||||
|
||||
$this->assertStringContainsString(
|
||||
'<table:table-cell office:value-type="string"><text:p>Media (MIME) type' .
|
||||
'<table:table-cell office:value-type="string"><text:p>Media type' .
|
||||
'</text:p></table:table-cell>',
|
||||
$GLOBALS['odt_buffer']
|
||||
);
|
||||
|
||||
@ -1284,7 +1284,7 @@ class ExportSqlTest extends PmaTestCase
|
||||
);
|
||||
|
||||
$this->assertStringContainsString(
|
||||
"-- MEDIA (MIME) TYPES FOR TABLE :\n" .
|
||||
"-- MEDIA TYPES FOR TABLE :\n" .
|
||||
"-- fieldname\n" .
|
||||
"-- Test<",
|
||||
$result
|
||||
|
||||
Loading…
Reference in New Issue
Block a user