Log message #4150470

# At Username Text
# Jun 12th 2018, 11:56 Sulthan how r u
# Jun 12th 2018, 11:56 Sulthan HI
# Jun 12th 2018, 11:51 josbeir good old days where mootools was the cake js lib of choice ;)
# Jun 12th 2018, 11:46 josbeir just some 'niche' dom manipulations require a bit more code
# Jun 12th 2018, 11:45 josbeir but its so easy to do most things these days jquery-less, we have fetch api, querySelector, querySelectorAll, all the things that made jquery great
# Jun 12th 2018, 11:44 josbeir probably yes
# Jun 12th 2018, 11:43 admad I say there are still enough use cases for it
# Jun 12th 2018, 11:43 josbeir vanilla js covers much things these days by default
# Jun 12th 2018, 11:43 josbeir nah of course not! but the high years of $ are over
# Jun 12th 2018, 11:42 admad Now now... Don't you dare bad mouth jQuery :P
# Jun 12th 2018, 11:42 josbeir 100% agreed with front-end
# Jun 12th 2018, 11:41 josbeir but for me the biggest problem is the extreme verbosity, maintainability long term and ... jquery :slightly_smiling_face:
# Jun 12th 2018, 11:41 admad I would never use it for frontend
# Jun 12th 2018, 11:41 josbeir yeah as i stated, its nice for productivity
# Jun 12th 2018, 11:40 admad @josbeir I am not a fan of BS either, but it pretty convenient using it for backed/admin areas and picking up one of the multiple "skins" available for it
# Jun 12th 2018, 11:37 admad arnis: so why haven't you opened issues/PRs for the foc/bootstrap plugin with the issues you have had with BS 4.1?
# Jun 12th 2018, 11:21 arnis and {0} will be your first param (link in above case)
# Jun 12th 2018, 11:21 arnis logan_: and in each translation you simply add "my translation {0} bla bla foo"
# Jun 12th 2018, 11:19 arnis If I got you right.
# Jun 12th 2018, 11:19 arnis and translate to each language as you want
# Jun 12th 2018, 11:19 arnis logan_: I would do as following: __('LINK_TEXT {0}', [$this->Html->link('mylink')]);
# Jun 12th 2018, 10:38 logan_ arnis: something like that https://pastebin.com/ekm9SBTn i will logout but my bot is here you can talk
# Jun 12th 2018, 10:29 arnis logan_: show an example of what you want.
# Jun 12th 2018, 10:23 logan_ Hello how can i translate string with link inside the language will change words order. how cake i18n manage it ?
# Jun 12th 2018, 10:10 Martin` it also works with tree's thats why it needs a strange array
# Jun 12th 2018, 10:09 neon1024 Maybe it write a data attribute or something?
# Jun 12th 2018, 10:09 Martin` I want to rebuild it so it just accepts a list, and yes it uses javascript
# Jun 12th 2018, 10:09 neon1024 Could be javascript
# Jun 12th 2018, 10:09 Martin` but Don't have time to refactor it now
# Jun 12th 2018, 10:09 Martin` Yes I don't understant why it uses the modelname and id in the key of te array
# Jun 12th 2018, 10:08 neon1024 Although, as it’s upgrading an old helper. I’d be more tempted to refactor the helper myself
# Jun 12th 2018, 10:08 neon1024 Then you can use that in the collection method to build the index
# Jun 12th 2018, 10:07 neon1024 If you want to concatenate `name` and `id` I would use an entity mutator method for that
# Jun 12th 2018, 10:07 neon1024 This is what I’d look at first
# Jun 12th 2018, 10:07 neon1024 https://book.cakephp.org/3.0/en/core-libraries/collections.html#Cake\Collection\Collection::indexBy
# Jun 12th 2018, 10:06 Martin` I've converted that helper from our cakephp 1.3 project, I really like to change some things, but better to just format it the way it likes :P
# Jun 12th 2018, 10:06 neon1024 I agree with arnis then, I’d use a Collection method
# Jun 12th 2018, 10:06 Martin` Well I'm using a view helper to select multiple users. but that helper needs the data as an array: [users_231 => ['id' => 231, 'name' => 'Pieter']] etc
# Jun 12th 2018, 10:05 slackebot !xy
# Jun 12th 2018, 10:05 slackebot Command sent from Slack by neon1024:
# Jun 12th 2018, 10:05 neon1024 But do tell use your use-case, as it sounds like