Labels
The labels this extension shows in the frontend come from
EXT:academic_persons_edit/Resources/Private/Language/locallang.xlf and its
translations; the table below names the ones that come from another file. A site
changes a label without copying a template, in TypoScript:
under
plugin. for every content element
of the extension, or under
plugin.
for one of them. A label set for the plugin wins over one set for the extension.
plugin.tx_academicpersonsedit._LOCAL_LANG {
default.list.profile = Profile
de.list.profile = Profil
}
# Only in one content element:
plugin.tx_academicpersonsedit_profileediting._LOCAL_LANG.default.list.profile = Profile
The dots of a key need no escaping: TypoScript reads them as levels of its tree,
and TYPO3 joins the levels to the key again. A label of another language goes
under its language key,
de
for German.
| Content element | Path |
|---|---|
Profile editing (
academicpersonsedit_) |
plugin. |
A language file override works as well, and replaces the label of the file
itself:
$GLOBALS.
Earlier versions of this extension read these overrides on TYPO3 v12 and v13 from
plugin. instead, and the options of its select fields from
plugin., see
the changelog.
Where the labels are shown
Placeholders in angle brackets stand for a part of the key that the template or the code fills in, a category type or a field name for example.
| Key | Shown by |
|---|---|
<field>. | Partials/ |
<field>. | Partials/, Partials/ |
<property>. | Partials/ |
<form, see Messages of a rejected form | Partials/ |
actions. | Templates/, Templates/ |
actions. | Partials/, Partials/, Templates/ |
actions. | Partials/, Partials/, Partials/, Partials/, Partials/, Partials/, Templates/ |
actions. | Partials/, Partials/, Partials/, Partials/, Partials/, Partials/, Templates/, Templates/, Templates/, Templates/, Templates/, Templates/ |
actions. | Partials/, Partials/, Partials/ |
actions. | Partials/, Templates/ |
actions. | Partials/ |
actions. | Partials/, Partials/, Partials/, Partials/, Partials/ |
actions. | Partials/, Partials/, Partials/, Partials/, Partials/ |
actions. | Partials/, Partials/, Partials/ |
actions. | Partials/, Partials/, Partials/, Partials/, Partials/ |
actions. | Partials/, Partials/, Partials/, Partials/, Partials/ |
actions. | Templates/ |
actions. | Partials/, Partials/, Partials/, Templates/ |
back
| Layouts/ |
contract
| Templates/ |
contract.<field>. | Templates/ |
contract. | Templates/ |
contract. | Templates/, Templates/, Templates/ |
contract. | Templates/ |
contract. | Templates/, Templates/, Templates/ |
contract. | Templates/ |
contract. | Templates/, Templates/, Templates/ |
contract. | Templates/ |
email | Templates/ |
email | Partials/ |
email | Partials/ |
form., see Messages of a rejected form | Partials/ |
form. | Partials/ |
list. | Partials/, Partials/, Partials/, Partials/, Partials/, Templates/ |
list. | Partials/ |
list. | Partials/, Partials/, Partials/ |
list. | Partials/ |
list. | Partials/ |
list. | Partials/ |
list. | Partials/ |
list. | Partials/ |
list. | Templates/ |
list. | Templates/ |
list. | Templates/ |
list. | Templates/ |
list. | Partials/ |
list. | Partials/ |
phone | Templates/ |
phone | Partials/ |
phone | Partials/ |
physical | Templates/ |
physical | Partials/ |
physical | Partials/ |
physical | Partials/ |
profile.<textarea>. | Partials/ |
profile.<type>
| Templates/ |
profile. | Templates/ |
profile. | Partials/ |
profile. | Templates/, Templates/ |
profile. | Partials/ |
profile. | Partials/ |
profile. | Templates/, Templates/, Templates/ |
profile. | Partials/ |
profile. | Templates/ |
profile. | Partials/ |
profile | Templates/ |
The flash messages of the editor, keyed by the action that shows them, for example
profile. | The messages after a profile or one of its records is saved or deleted |
| The item labels of the select fields in TCA, full references into a language file of academic_persons: the override is keyed by the id of the label in that file | The options of the select fields of the editor forms |
detail.,
detail. of EXT:, read with the extension name of academic_persons: from
plugin. only, shared with the profile detail | Partials/ |
The messages of a rejected image upload,
upload. and
validation. of EXT:: no
_LOCAL_ reaches them, a language file override does | Templates/ |
Messages of a rejected form
A form the editor rejects is shown again with the values that were entered, a
note above it,
form., and a message at every field that was
rejected. The message is the first label found of these:
<form, for one field of one form, for exampleObject>.<field>. error.<code> contract. The form objects areForm Data. valid To. error. 1307719788 address,Form Data contract,Form Data email,Address Form Data phone,Number Form Data profileandForm Data profile.Information Form Data form., for every field, for exampleerror.<code> form.for a required field that was left empty.error. 1221560718 - The message of the TYPO3 validator that rejected the value.
<code>
is the code of the validation error. The extension ships a label
for the codes its forms produce: 1221560718 and 1221560910 for a required field
left empty, 1221559976 for an invalid email address, 1332933658 for a year that
is not a number and 1307719788 for an invalid date.
A
form. label is formatted with the arguments of the error,
the way
sprintf formats a string, whenever the error carries any. The
two conversion errors do: 1332933658 passes the entered value, 1307719788 the
entered value and the expected date format. In such a label a literal percent
sign is written
%%
, and
%1$s
inserts the first argument. A single
%
there makes the rendering fail. A
<form label is shown as it is written, never
formatted.