Labels
The labels this extension shows in the frontend come from
EXT:academic_jobs/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_academicjobs._LOCAL_LANG {
default.jobs.back = All vacancies
de.jobs.back = Alle Stellen
}
# Only in one content element:
plugin.tx_academicjobs_detail._LOCAL_LANG.default.jobs.back = All vacancies
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 |
|---|---|
Job list (
academicjobs_) |
plugin. |
Job detail (
academicjobs_) |
plugin. |
New job form (
academicjobs_) |
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, 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 |
|---|---|
create.<field>. | Partials/, see The messages of a rejected field |
create.<field>. | Partials/ |
create. | Partials/, see The messages of a rejected field |
create. | Partials/ |
create. | Partials/ |
create. | Partials/ |
create. | Partials/, the title of the mark of a required field |
edit.<field>. | Partials/, Partials/ |
jobs.<property>
| Partials/, Partials/ |
jobs.<property>.<value>
| Partials/, Partials/ |
jobs. | Templates/ |
jobs. | Partials/ |
jobs. | Partials/, Partials/ |
jobs. | Templates/ |
tx_,
tx_ | The messages after a job is saved |
tx_,
tx_ | The options of the job type and employment type selects of the form; the labels live in locallang_, the override is keyed by their id |
The messages of a rejected field
A field of the new job form that was rejected on submit shows a message below it. The message of an error is the first of these that exists:
- The label for the field and the error code, for example
create..job. contact Email. error. 1221559976 - The label for the error code, for example
create.. The extension ships one for each error the shipped validation settings produce: a required field left empty, an invalid email address, an invalid URL and a date that cannot be read.error. 1221559976 - The message of the validator or of the conversion of the value.
Each of them is given the arguments of the error, so a label can name the
rejected value with %s, for example the text that could not be read as a
date:
create. with
"%s" is no date.