Project

General

Profile

Actions

Bug #60980

closed

missing an easy way to use translations in a menu.speacial = browse

Added by Dieter Porth almost 10 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-08-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions

Also available in: Atom PDF