# |
Mar 6th 2018, 06:31 |
savant |
Close enough |
# |
Mar 6th 2018, 06:30 |
savant |
nice nice |
# |
Mar 6th 2018, 06:28 |
yadav.manu36 |
Thanks @savant now it is working. |
# |
Mar 6th 2018, 06:24 |
megan |
Morning everyone :slightly_smiling_face: |
# |
Mar 6th 2018, 04:57 |
ricksaccous |
oh, lol |
# |
Mar 6th 2018, 04:57 |
savant |
@ricksaccous just use `__()` |
# |
Mar 6th 2018, 04:57 |
ricksaccous |
for validation |
# |
Mar 6th 2018, 04:57 |
ricksaccous |
when you define the messages in the model |
# |
Mar 6th 2018, 04:56 |
savant |
@ricksaccous get what going |
# |
Mar 6th 2018, 04:56 |
ricksaccous |
like auto-translate? |
# |
Mar 6th 2018, 04:56 |
yadav.manu36 |
i am follow below url steps but still is,t working https://stackoverflow.com/questions/34426567/cakephp-3-paginator-sort-by-languages-with-i18n-translate-behavior |
# |
Mar 6th 2018, 04:56 |
ricksaccous |
is there a way to get that going with form error messages? |
# |
Mar 6th 2018, 04:55 |
savant |
you’ll need to handle that on your end |
# |
Mar 6th 2018, 04:55 |
savant |
it doesnt automatically change the field to the “translated” version of that field, unfortunately |
# |
Mar 6th 2018, 04:55 |
yadav.manu36 |
File uploaded https://cakesf.slack.com/files/U83JZGBTR/F9K2H0RC4/image.png / https://slack-files.com/T053DPNCM-F9K2H0RC4-8b01acfc71 - i have used Translate Behavior for title and other columns |
# |
Mar 6th 2018, 04:55 |
savant |
https://github.com/cakephp/cakephp/issues/8074 <-- an issue that shows how to setup pagination with i18n |
# |
Mar 6th 2018, 04:54 |
yadav.manu36 |
yes |
# |
Mar 6th 2018, 04:53 |
savant |
you’re expecting a sort by the translated value? |
# |
Mar 6th 2018, 04:53 |
yadav.manu36 |
File uploaded https://cakesf.slack.com/files/U83JZGBTR/F9L4QCJLF/image.png / https://slack-files.com/T053DPNCM-F9L4QCJLF-cf0f133957 - I am using order and sortWhitelist for title in controller |
# |
Mar 6th 2018, 04:50 |
yadav.manu36 |
i am sorting title using Translate Behavior but result is not sorted |
# |
Mar 6th 2018, 04:47 |
savant |
What doesnt work properly here? |
# |
Mar 6th 2018, 04:47 |
yadav.manu36 |
Cakephp 3.x Pagination not working proper with translation i18n can you help me? |
# |
Mar 6th 2018, 04:47 |
yadav.manu36 |
Morning all |
# |
Mar 6th 2018, 00:24 |
jeremyharris |
Np! |
# |
Mar 6th 2018, 00:24 |
mikesmoniker |
Coolio. Thanks! |
# |
Mar 6th 2018, 00:24 |
jeremyharris |
Interesting, yeah open up an issue and I'll check it out tomorrow :+1: |
# |
Mar 6th 2018, 00:23 |
jeremyharris |
(Sorry on my phone) |
# |
Mar 6th 2018, 00:23 |
mikesmoniker |
But the second test fails. |
# |
Mar 6th 2018, 00:23 |
mikesmoniker |
The first test passes, which yeah, is basically as if we aren’t even using the trait (b/c we aren’t). |
# |
Mar 6th 2018, 00:23 |
jeremyharris |
Oh I see the second test does |
# |
Mar 6th 2018, 00:22 |
jeremyharris |
I don't understand. The test cases reset the entity class, so the lazy loader shouldn't be involved at all |
# |
Mar 6th 2018, 00:22 |
mikesmoniker |
Should I just go ahead and open an issue? I haven’t had time to dig into what’s up, but hopefully the tests are enough to communicate the perceived problem. |
# |
Mar 6th 2018, 00:21 |
mikesmoniker |
Thinking about opening an issue on lazyload. The trait seems to interfere with how by reference array functions work with relationships. I added a couple tests to demonstrate the issue: https://github.com/themrwilliams/cakephp-lazyload/commit/185aa5a4befb3b4a3e016ea79d5bb9a6894d4c2d |
# |
Mar 6th 2018, 00:20 |
jeremyharris |
Nah, but what's up? |
# |
Mar 6th 2018, 00:19 |
mikesmoniker |
@jeremyharris any chance you’re lurking? |
# |
Mar 5th 2018, 23:28 |
ricksaccous |
$this->request->is(['pdf']) is not a thing, lol |
# |
Mar 5th 2018, 23:27 |
ricksaccous |
File uploaded https://cakesf.slack.com/files/U8LQ47EPR/F9K3W2M37/appcontroller_php.php / https://slack-files.com/T053DPNCM-F9K3W2M37-ed9cf83a5b |
# |
Mar 5th 2018, 23:26 |
ricksaccous |
and I stopped setting the viewClass in beforeFilter... it seems that |
# |
Mar 5th 2018, 23:26 |
ricksaccous |
I removed $this->RequestHandler->renderAs($this, 'pdf', ['attachment' => 'filename.pdf']); this line |
# |
Mar 5th 2018, 23:26 |
ricksaccous |
I kind of sort of got it working |
# |
Mar 5th 2018, 23:09 |
ricksaccous |
so yeah, order matters, heh |