Localization of Extbase models
Identifiers in localized models
Domain models have a main identifier
uid
and an additional property
_localized
.
Depending on whether the
language
mode is enabled (
true
or
'hide
) or disabled (
false
),
the identifier contains different values.
When
language
is enabled, then the
uid
property contains the
uid
value of the default language record,
the
uid
of the translated record is kept in the
_localized
.
Context | Record in language 0 | Translated record |
---|---|---|
Database | uid:2 | uid:11, l10n_parent:2 |
Domain object values with language enabled | uid:2, _localizedUid:2 | uid:2, _localizedUid:11 |
Domain object values with language disabled | uid:2, _localizedUid:2 | uid:11, _localizedUid:11 |
Hint
In case your project uses
typo3/cms-workspaces
there is yet another
additional property,
_versioned
. Refer to the
Workspaces documentation for details on
workspace overlays.