Log message #4203610

# At Username Text
# Sep 17th 2019, 15:01 neon1024 I’ve done one site so far and it was quite a fun challenge
# Sep 17th 2019, 15:01 neon1024 We’re fully Brexit and don’t do any multi-lingual sites :face_palm:
# Sep 17th 2019, 15:01 spriz but adding `en_GB` is a matter of adding a `.po` file and adding the record to our bootstrap.php :P
# Sep 17th 2019, 15:00 spriz only `da_DK`, `en_US`, and `de_DE`
# Sep 17th 2019, 15:00 neon1024 Noice!
# Sep 17th 2019, 15:00 spriz we don't currently :)
# Sep 17th 2019, 15:00 neon1024 Oh, how do you select beween en_GB and en_US?
# Sep 17th 2019, 15:00 spriz or welp, we do it in a Middleware
# Sep 17th 2019, 14:59 spriz depending on the user's selected language
# Sep 17th 2019, 14:59 spriz we do that :)
# Sep 17th 2019, 14:59 neon1024 Unless maybe you want to change locale during execution for some reason
# Sep 17th 2019, 14:59 spriz set ALL the locales!
# Sep 17th 2019, 14:59 spriz ``` ini_set('intl.default_locale', $locale); I18n::setLocale($locale); FrozenTime::setDefaultLocale($locale); Time::setDefaultLocale($locale); FrozenDate::setDefaultLocale($locale); Date::setDefaultLocale($locale); ```
# Sep 17th 2019, 14:59 neon1024 Yeah, that doesn’t seem right :thinking_face:
# Sep 17th 2019, 14:58 spriz so if I did `I18n::setLocale($locale)` and then `Number::parseFloat()` it would read another locale from `ini_get()`
# Sep 17th 2019, 14:58 neon1024 Ooh, so might be worth trying to contribute a failing test for that
# Sep 17th 2019, 14:58 spriz @neon1024 ^
# Sep 17th 2019, 14:58 spriz Aha, what surprised me was that rather than using `I18n::getLocale()`, some of the code actually reads directly from `ini_get('intl.default_locale')` rather :shrug:
# Sep 17th 2019, 14:32 neon1024 Usually in these cases I get myself in a muddle ;)
# Sep 17th 2019, 14:32 peppejaripappalardo @neon1024 thx
# Sep 17th 2019, 14:32 neon1024 Perhaps the test-cases would give you more of an idea of the expected functionality
# Sep 17th 2019, 14:31 spriz I am not sure if it is a bug, or if it just me expecting weirdo things
# Sep 17th 2019, 14:31 neon1024 Sounds like a good test-case :slightly_smiling_face:
# Sep 17th 2019, 14:31 spriz (which both of those methods fall back to in case nothing is set already)
# Sep 17th 2019, 14:31 neon1024 `parseFloat(format())` ?
# Sep 17th 2019, 14:30 spriz just using `intl.defaultlocale`
# Sep 17th 2019, 14:30 spriz yeah but without any arguments
# Sep 17th 2019, 14:30 neon1024 As they might be converted into any format
# Sep 17th 2019, 14:30 neon1024 I would expect that strings produced by `format()` wouldn’t be immediatly compatible
# Sep 17th 2019, 14:28 spriz Am I wrong in expecting the `Number::parseFloat()` should accept the same format/locale stuff as something generated by `Number::format()` ,:) :cold_sweat:
# Sep 17th 2019, 14:27 neon1024 You’ll probably find that some of your existing dependancies do not allow 4.x release versions
# Sep 17th 2019, 14:22 peppejaripappalardo can simply modify composer.json?
# Sep 17th 2019, 14:21 peppejaripappalardo i get this error while tryng upgrade cake from 3.8 to 4 beta3 `satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.2, 3.8.3, 3.8.4] but these conflict with your requirements or minimum-stability.`
# Sep 17th 2019, 14:09 daniel.upshaw That'll do it :slightly_smiling_face: Thanks for the info
# Sep 17th 2019, 14:09 daniel.upshaw Nice
# Sep 17th 2019, 14:09 daniel.upshaw :slightly_smiling_face:
# Sep 17th 2019, 14:03 jotpe I didn't set 'signed' => false when creating the roles table.
# Sep 17th 2019, 14:03 technofection I got it fixed.. I had several classes in one file and that caused the issue.. when I seperated them in different files it worked!
# Sep 17th 2019, 14:03 ra7bi if anyone using this pluing https://book.cakephp.org/elasticsearch/ please explain me , why ->get(3) working but ->find()->where() not working
# Sep 17th 2019, 13:59 technofection I have 3 folders like Order PaymentGateway Tuition, I can use Tuition class from within Order, but cannot use PaymentGateway
# Sep 17th 2019, 13:59 daniel.upshaw Oh... are you saying that one of your `custom` classes is loaded, but not the other?