Code Monkey home page Code Monkey logo

Comments (3)

NamelessCoder avatar NamelessCoder commented on August 26, 2024

Not to dismiss the problem, but: you should not be using f:translate within Configuration sections - ideally you should rely on the automatic building of field labels, or use full label references with LLL:EXT:... syntax. And in general, you should not be using f:translate in anything that runs in backend context.

from flux.

magicsunday avatar magicsunday commented on August 26, 2024

This also fails for TYPO3 v12.4.10, Flux 10.0.9.

ideally you should rely on the automatic building of field labels

What does this mean?

or use full label references with LLL:EXT:...

This fails with the same error.

For instance:

<flux:field.custom name="settings.Banner.description">
    <div class="alert alert-info">
        <v:l key="LLL:EXT:ext_name/Resources/Private/Language/locallang.xlf:flux.Banner.description"/>
    </div>
</flux:field.custom>

And in general, you should not be using f:translate in anything that runs in backend context.

So what is the recommended way to translate the backend? TYPO3 itself uses f:translate too

from flux.

Gitsko avatar Gitsko commented on August 26, 2024

Hi @NamelessCoder ,

do you see another alternative if I want to use a translated element (f:translate) e.g. with a flux:field.custom element output a hint box for an editor ?

from flux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.