-
Notifications
You must be signed in to change notification settings - Fork 55
/
transformations.pot
133 lines (104 loc) · 9.75 KB
/
transformations.pot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2012 - 2021, The phpMyAdmin devel team
# This file is distributed under the same license as the phpMyAdmin package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: phpMyAdmin 6.0.0-dev\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-11-30 00:00+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../phpmyadmin/doc/transformations.rst:4
msgid "Transformations"
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:8
msgid "You need to have configured the :ref:`linked-tables` to use the transformations feature."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:14
msgid "Introduction"
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:16
msgid "To enable transformations, you have to set up the ``column_info`` table and the proper directives. Please see the :ref:`config` on how to do so."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:19
msgid "phpMyAdmin has two different types of transformations: browser display transformations, which affect only how the data is shown when browsing through phpMyAdmin; and input transformations, which affect a value prior to being inserted through phpMyAdmin. You can apply different transformations to the contents of each column. Each transformation has options to define how it will affect the stored data."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:27
msgid "Say you have a column ``filename`` which contains a filename. Normally you would see in phpMyAdmin only this filename. Using display transformations you can transform that filename into a HTML link, so you can click inside of the phpMyAdmin structure on the column's link and will see the file displayed in a new browser window. Using transformation options you can also specify strings to append/prepend to a string or the format you want the output stored in."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:35
msgid "For a general overview of all available transformations and their options, you can either go to the ``Change`` link for an existing column or from the dialog to create a new column, in either case there is a link on that column structure page for \"Browser display transformation\" and \"Input transformation\" which will show more information about each transformation that is available on your system."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:42
msgid "For a tutorial on how to effectively use transformations, see our `Link section <https://www.phpmyadmin.net/docs/>`_ on the official phpMyAdmin homepage."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:49
msgid "Usage"
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:51
msgid "Go to the table structure page (reached by clicking on the 'Structure' link for a table). There click on \"Change\" (or the change icon) and there you will see the five transformation--related fields at the end of the line. They are called ':term:`Media type`', 'Browser transformation' and 'Transformation options'."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:57
msgid "The field ':term:`Media type`' is a drop-down field. Select the :term:`Media type` that corresponds to the column's contents. Please note that many transformations are inactive until a :term:`Media type` is selected."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:60
msgid "The field 'Browser display transformation' is a drop-down field. You can choose from a hopefully growing amount of pre-defined transformations. See below for information on how to build your own transformation. There are global transformations and mimetype-bound transformations. Global transformations can be used for any mimetype. They will take the mimetype, if necessary, into regard. Mimetype-bound transformations usually only operate on a certain mimetype. There are transformations which operate on the main mimetype (like 'image'), which will most likely take the subtype into regard, and those who only operate on a specific subtype (like 'image/jpeg'). You can use transformations on mimetypes for which the function was not defined for. There is no security check for you selected the right transformation, so take care of what the output will be like."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:73
msgid "The field 'Browser display transformation options' is a free-type textfield. You have to enter transform-function specific options here. Usually the transforms can operate with default options, but it is generally a good idea to look up the overview to see which options are necessary. Much like the ENUM/SET-Fields, you have to split up several options using the format 'a','b','c',...(NOTE THE MISSING BLANKS). This is because internally the options will be parsed as an array, leaving the first value the first element in the array, and so forth. If you want to specify a MIME character set you can define it in the transformation\\_options. You have to put that outside of the pre- defined options of the specific mime-transform, as the last value of the set. Use the format \"'; charset=XXX'\". If you use a transform, for which you can specify 2 options and you want to append a character set, enter \"'first parameter','second parameter','charset=us-ascii'\". You can, however use the defaults for the parameters: \"'','','charset =us-ascii'\". The default options can be configured using :config:option:`$cfg['DefaultTransformations']`."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:90
msgid "'Input transformation' is another drop-down menu that corresponds exactly with the instructions above for \"Browser display transformation\" except these these affect the data before insertion in to the database. These are most commonly used to either provide a specialized editor (for example, using the phpMyAdmin SQL editor interface) or selector (such as for uploading an image). It's also possible to manipulate the data such as converting an IPv4 address to binary or parsing it through a regular expression."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:97
msgid "Finally, 'Input transformation options' is the equivalent of the \"Browser display transformation options\" section above and is where optional and required parameters are entered."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:103
msgid "File structure"
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:105
msgid "All specific transformations for mimetypes are defined through class files in the directory :file:`src/Plugins/Transformations/`. Each of them extends a certain transformation abstract class declared in :file:`src/Plugins/Transformations/Abs`."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:110
msgid "They are stored in files to ease customization and to allow easy adding of new or custom transformations."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:113
msgid "Because the user cannot enter their own mimetypes, it is kept certain that the transformations will always work. It makes no sense to apply a transformation to a mimetype the transform-function doesn't know to handle."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:118
msgid "There is a file called :file:`src/Plugins/Transformations.php` that provides some basic functions which can be included by any other transform function."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:121
msgid "The file name convention is ``[Mimetype]_[Subtype]_[Transformation Name].php``, while the abstract class that it extends has the name ``[Transformation Name]TransformationsPlugin``. All of the methods that have to be implemented by a transformations plug-in are:"
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:126
msgid "getMIMEType() and getMIMESubtype() in the main class;"
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:127
msgid "getName(), getInfo() and applyTransformation() in the abstract class it extends."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:130
msgid "The getMIMEType(), getMIMESubtype() and getName() methods return the name of the MIME type, MIME Subtype and transformation accordingly. getInfo() returns the transformation's description and possible options it may receive and applyTransformation() is the method that does the actual work of the transformation plug-in."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:136
msgid "Please see the :file:`src/Plugins/Transformations/TEMPLATE` and :file:`src/Plugins/Transformations/TEMPLATE\\_ABSTRACT` files for adding your own transformation plug-in. You can also generate a new transformation plug-in (with or without the abstract transformation class), by using :file:`bin/transformations_generator_plugin.sh` or :file:`bin/transformations_generator_main_class.sh`."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:144
msgid "The applyTransformation() method always gets passed three variables:"
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:146
msgid "**$buffer** - Contains the text inside of the column. This is the text, you want to transform."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:148
msgid "**$options** - Contains any user-passed options to a transform function as an array."
msgstr ""
#: ../phpmyadmin/doc/transformations.rst:150
msgid "**$meta** - Contains an object with information about your column. The data is drawn from the output of the `mysql\\_fetch\\_field() <https://www.php.net/mysql_fetch_field>`_ function. This means, all object properties described on the `manual page <https://www.php.net/mysql_fetch_field>`_ are available in this variable and can be used to transform a column accordingly to unsigned/zerofill/not\\_null/... properties. The $meta->mimetype variable contains the original :term:`Media type` of the column (i.e. 'text/plain', 'image/jpeg' etc.)"
msgstr ""