# |
Jun 4th 2021, 19:28 |
aengblom |
Yep, I did the extract command |
# |
Jun 4th 2021, 19:27 |
kevin.pfeifer |
do you generate your `.pot` file with the cake cli as well? |
# |
Jun 4th 2021, 19:25 |
aengblom |
Thanks for the tip! Unfortunately that didn't do it. I'm fairly new to this translating stuff. I've been studying the cakephp docs on i18n. If anyone has any video resources on the topic they would like to share, I would appreciate it very much. I do much better with videos for some reason. Thanks! |
# |
Jun 4th 2021, 19:17 |
kevin.pfeifer |
sometimes I need to do a `bin/cake cache clear_all` to have all newly tranlated strings be loaded correctly |
# |
Jun 4th 2021, 19:13 |
aengblom |
Has anyone ever encountered certain strings not translating even when __() is used and the string is translated in the po file? Nearly everything else in the app is translating except for a few strings. I'm not sure what is going on |
# |
Jun 4th 2021, 19:05 |
kevin.pfeifer |
sometimes its all just so flexible and can be re-used in so many places that it is hard to communicate a specific problem ^^ |
# |
Jun 4th 2021, 19:04 |
kevin.pfeifer |
but as you said Zuluru, Helpers are for Views (the V in MVC) :) However one decides to use that V :) |
# |
Jun 4th 2021, 19:03 |
greg138 |
And hence my question. ;) |
# |
Jun 4th 2021, 19:02 |
kevin.pfeifer |
sure. it depends what you define as backend and frontend :) |
# |
Jun 4th 2021, 19:02 |
greg138 |
And helpers can obviously be used in the views for admin pages. :) |
# |
Jun 4th 2021, 19:02 |
greg138 |
Some people consider "the admin pages" to be "backend", though... |
# |
Jun 4th 2021, 19:01 |
kevin.pfeifer |
shared backend logic can be inside components for controller or behaviours for models |
# |
Jun 4th 2021, 19:01 |
kevin.pfeifer |
the name "helper" in cakephp is mainly reserved for frontend logic |
# |
Jun 4th 2021, 19:01 |
greg138 |
What do you mean by "backend"? Helpers are for views. |
# |
Jun 4th 2021, 18:58 |
rightscoreanalysis |
Are Helpers for Cake mainly for the front end - since they reside in the 'view' folder. Does Cake not use Helpers for the backend? |
# |
Jun 4th 2021, 18:47 |
kevin.pfeifer |
I am currently thinking about implementing an e2e testing framework into my cakephp app and was just wondering of someone here has already some (good or bad) experience with a specific one :) |
# |
Jun 4th 2021, 16:48 |
kevin.pfeifer |
true that |
# |
Jun 4th 2021, 16:43 |
admad |
I actually don't mind the naked BS in backends but greatly dislike the BS "smell" in fronted designs |
# |
Jun 4th 2021, 16:43 |
kevin.pfeifer |
for the whole JS/SCSS generation |
# |
Jun 4th 2021, 16:43 |
kevin.pfeifer |
i also "still" use gulp4 instead of webpack or any other modern package bundler because it has everything I need and is not that complicated :) |
# |
Jun 4th 2021, 16:42 |
admad |
:+1: |
# |
Jun 4th 2021, 16:40 |
kevin.pfeifer |
sure my approach definitely takes more time but for me its worth it :) |
# |
Jun 4th 2021, 16:40 |
kevin.pfeifer |
sure its good to have basically everything you probably need in the future ready to just use it without the need to invest time for each "new" feature But I generally just dont like the bootstrap look aka. the "smell" :P |
# |
Jun 4th 2021, 16:38 |
admad |
But it's good for backends |
# |
Jun 4th 2021, 16:37 |
admad |
Sure is |
# |
Jun 4th 2021, 16:37 |
kevin.pfeifer |
and think that bootstrap is overloaded AF |
# |
Jun 4th 2021, 16:37 |
admad |
:clap: |
# |
Jun 4th 2021, 16:37 |
kevin.pfeifer |
nope, I am one of those crazy people who has its own library/grid system and builds everything else from scratch |
# |
Jun 4th 2021, 16:36 |
admad |
@kevin.pfeifer don't tell me you like tailwind instead :) |
# |
Jun 4th 2021, 16:34 |
kevin.pfeifer |
@ndm I keep my very unpopular opinion about bootstrap shut so I can't contribute something usefull there :) But I guess many other people would love to see bootstrap 5 support in that plugin |
# |
Jun 4th 2021, 16:30 |
admad |
In unrelated news middlewares at controller level have landed in 4.next https://github.com/cakephp/cakephp/pull/15558 Hopefully now one won't have to tackle the router to run middleware only for specific controllers/actions. |
# |
Jun 4th 2021, 16:28 |
admad |
Yeah that's great let me know when it's merged xP. |
# |
Jun 4th 2021, 15:29 |
slackebot |
https://github.com/FriendsOfCake/bootstrap-ui/pull/350 |
# |
Jun 4th 2021, 15:29 |
ndm |
I've posted it in friendsofcake already, but let me quickly also misuse this channel... If you're a user of `friendsofcake/bootstrap-ui`, and you have any opinion on Bootstrap 5 support, please check the following issue/PR, and leave some feedback if you have any. Suggestions, questions, whatever is on your heart... k thx bye! https://github.com/FriendsOfCake/bootstrap-ui/issues/349 |
# |
Jun 4th 2021, 10:17 |
paolo.bragagni |
thanks again |
# |
Jun 4th 2021, 10:17 |
paolo.bragagni |
tryng to reproduce my old skeleton.. :S |
# |
Jun 4th 2021, 10:17 |
paolo.bragagni |
I did some years ago for cake 2 |
# |
Jun 4th 2021, 10:16 |
paolo.bragagni |
yes yes thanks |
# |
Jun 4th 2021, 10:16 |
slackebot |
<paolo.bragagni> |
# |
Jun 4th 2021, 10:16 |
kevin.pfeifer |
there you go, now you have your reason :) Cakephp has many ways how you can deal with this, it just depends on how you want to deal with it |
# |
Jun 4th 2021, 10:13 |
paolo.bragagni |
now it works without the 'options' => $lingue |