Bug #60980
closedmissing an easy way to use translations in a menu.speacial = browse
0%
Description
I want to build a easy pagination for my site with text like "next page" or "revious page". I define the following translation for this
LLL:fileadmin/Resources/Private/Language/RootMenu.xlf:menu.pagination.next = next
and I define in a contant file the translation reference:
root.menu.pagination.next = {LLL:fileadmin/Resources/Private/Language/RootMenu.xlf:menu.pagination.next}
I used the constants in TypoScript in two way
@
lib.menu.pagination.main = HMENU
lib.menu.pagination.main {
special=browse
special {
items = next
#shown result => "{LLL:fileadmin/Resources/Private/Language/RootMenu.xlf:menu.pagination.next}"
prev.fields.title = {$root.menu.pagination.next}
}
1 = TMENU
1 {
NO = 1
NO.allWrap = |
}
}
#shown result => "abc"
lib.text = TEXT
lib.text.value = {$root.menu.pagination.next}
lib.text.insertData = 1
@
It would be fine, if the constant would work in both situation in the same way.
I know that 'lib.text.value' and 'prev.fields.title' have different datatypes.
Why can I write something like the following?
prev.fields.title = {LLL:fileadmin/Resources/Private/Language/RootMenu.xlf:menu.pagination.next}
prev.fields.title = LLL:fileadmin/Resources/Private/Language/RootMenu.xlf:menu.pagination.next
I want to use easyly and directly my translation file for the 'title'-Information.
Dieter