GithubHelp home page GithubHelp logo

Comments (10)

Largo avatar Largo commented on June 1, 2024

Quickfix: inserting $this->app['locale'] = 'de'; into the constructor of BoltForms.

from boltforms.

GwendolenLynch avatar GwendolenLynch commented on June 1, 2024

Yeah, this is mildly problematic… and is actually a Bolt bug as the locale should fall back to the two letter version.

from boltforms.

GwendolenLynch avatar GwendolenLynch commented on June 1, 2024

That said, let me see what I can do here as I thought Symfony handled ISO locale codes properly.

from boltforms.

GwendolenLynch avatar GwendolenLynch commented on June 1, 2024

ping @rarila

from boltforms.

rarila avatar rarila commented on June 1, 2024

I also thought it would handle this automatically.
Question is, where does this translation come from. Probably the translations have to be added to bolts own xlf. Other than that I'm in Schultz-mode when it comes to symfony forms.

from boltforms.

GwendolenLynch avatar GwendolenLynch commented on June 1, 2024

@rarila yeah, it's kinda tricky, it assumes what's in $app['locale'] by default so that looks the only way

from boltforms.

tameroski avatar tameroski commented on June 1, 2024

No update on that issue ? Still using @Largo 's hotfix, but editing a plugins source file is not my kind of stuff.

from boltforms.

GwendolenLynch avatar GwendolenLynch commented on June 1, 2024

There is not much the extension itself can do… it is reliant on Bolt itself.

from boltforms.

xstable avatar xstable commented on June 1, 2024

Maybe a better workarround as suggested by Largo:
Read the default-Format, and slice it to the two letter one:

        if(strlen($this->app['locale'])>2){
            $this->app['locale'] = substr($this->app['locale'],0,2);
        }

Put this at Line 75 before the closing curly braket of function initialize()

from boltforms.

GwendolenLynch avatar GwendolenLynch commented on June 1, 2024

@xstable that will override the locale settings for the entire application

from boltforms.

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.