Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-translated group names do not work #1524

Closed
yol opened this issue Feb 23, 2018 · 3 comments
Closed

Non-translated group names do not work #1524

yol opened this issue Feb 23, 2018 · 3 comments

Comments

@yol
Copy link

yol commented Feb 23, 2018

flux tries to auto-detect whether a group name given in <flux:form.option.group> is available from a locallang.xlf here: https://github.com/FluidTYPO3/flux/blob/development/Classes/Helper/ContentTypeBuilder.php#L261

But it does not work, since LocalizationUtility needs $GLOBALS['LANG'] for translating, which is not available at this point. So it will just return the LLL:... string unchanged. What should be done here? Initialize $GLOBALS['LANG'] manually?

@X-Tender
Copy link
Contributor

Are there any Updates on this issue? :/

@X-Tender
Copy link
Contributor

Oh I've figured it out by digging in the ContentTypeBuilder The correct trans-unit id have to be flux.newContentWizard.foobar with this decleration
<flux:form.option name="group" value="foobar" />

@NamelessCoder
Copy link
Member

@X-Tender is completely right - and this is the only way to have a group name consisting of anything except a-z0-9. Since the original reported issue, Flux no longer attempts to translate the group name and will instead generate the expected XLF reference. If the XLF label does not exist the group tab will still be rendered but appears invisible due to the empty name (if you hover the mouse where the tab should be, you will see it highlight and be able to click it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants