Comments (10)
Quickfix: inserting $this->app['locale'] = 'de'; into the constructor of BoltForms.
from boltforms.
Yeah, this is mildly problematic… and is actually a Bolt bug as the locale should fall back to the two letter version.
from boltforms.
That said, let me see what I can do here as I thought Symfony handled ISO locale codes properly.
from boltforms.
ping @rarila
from boltforms.
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.
@rarila yeah, it's kinda tricky, it assumes what's in $app['locale']
by default so that looks the only way
from boltforms.
No update on that issue ? Still using @Largo 's hotfix, but editing a plugins source file is not my kind of stuff.
from boltforms.
There is not much the extension itself can do… it is reliant on Bolt itself.
from boltforms.
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.
@xstable that will override the locale settings for the entire application
from boltforms.
Related Issues (20)
- Redirect target to static route can't use the route name
- Limit document file upload type HOT 2
- Fix for flash messages breaks redirects
- Feedback Messages inconsistencies with multiple forms HOT 5
- [RFC] Contenttype updating via form HOT 3
- Indentation database example near field_map is wrong when copying
- Saving to a contenttype HOT 2
- Runtime error with file upload saving to a contenttype HOT 9
- Suggestion: make boltforms contain a boltform selector field HOT 2
- Error message when file is too large in size HOT 1
- MP3 compressed to mpga
- Redirect after submission gives error on Chrome & Firefox HOT 1
- Multiple files upload HOT 1
- [Feature Request] Environment variables or bolt parameters in extension configuration file
- Individual form templates aren't used HOT 1
- error while sending a form HOT 1
- from_email not substituted from filed
- Setting ReCaptcha v3 score threshold HOT 6
- recaptcha v3 forms not submitting HOT 1
- Submit form redirect ("Notice: Undefined index: query")
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boltforms.