Giter Site home page Giter Site logo

Comments (4)

lukaskleinschmidt avatar lukaskleinschmidt commented on May 29, 2024

Thats a tricky one.
As far as I know there is no build in feature.

I did some testing. Somehow it's not possible to access langugage strings in a field set in the config.php. Althoug I disabled the language loader in the field.

Perhaps something like this could be suitable.

label: Sections
type: modules
translate:
  en:
    fields.modules.visible: Visible sections
    fields.modules.visible.info: Drag invisible sections here to sort them/make them visible.

But for now a fork would be the easiest way I think.

from kirby-sortable.

Thiousi avatar Thiousi commented on May 29, 2024

What about using config variables overrides:
c::set('variable', 'text')
And the in your code try to access the config c::get... and if it doesn't exist use the language variable instead?
Edit: and probably create those variables in the form of an array by language?

from kirby-sortable.

lukaskleinschmidt avatar lukaskleinschmidt commented on May 29, 2024

That would work.
But I'm not sure if using a config variable is the best way to solve this.

I don't have much time right now but I will try to look into this as soon as possible.

Thanks for the translation btw.

from kirby-sortable.

lukaskleinschmidt avatar lukaskleinschmidt commented on May 29, 2024

It' now possible to change the naming.

from kirby-sortable.

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.