# |
Feb 13th 2018, 12:31 |
ahmed_bodi |
hmmm one sec |
# |
Feb 13th 2018, 12:30 |
ahmed_bodi |
yep |
# |
Feb 13th 2018, 12:30 |
admad |
did you set `'I18n.languages' config as shown in readme? |
# |
Feb 13th 2018, 12:30 |
ahmed_bodi |
i'm getting about/faqs?lang=en |
# |
Feb 13th 2018, 12:30 |
ahmed_bodi |
i've been using the debug kit to do it. Ive changed it. Still no luck yet @admad |
# |
Feb 13th 2018, 12:28 |
admad |
also you can use `bin/cake routes` to check the routes connected |
# |
Feb 13th 2018, 12:25 |
ahmed_bodi |
ok let me try that |
# |
Feb 13th 2018, 12:25 |
ahmed_bodi |
ah |
# |
Feb 13th 2018, 12:25 |
admad |
https://github.com/admad/cakephp-i18n#i18nroute |
# |
Feb 13th 2018, 12:25 |
admad |
you don't need to add the `/:lang` part when using my I18nRoute class |
# |
Feb 13th 2018, 12:23 |
ahmed_bodi |
and thats how ive produced it |
# |
Feb 13th 2018, 12:23 |
ahmed_bodi |
<li><?= $this->Html->link('<i class="fa fa-files-o"></i><span>Login</span>', ['controller' => 'Profile', 'action' => 'login', 'lang' => $lang], array('escape' => false)); ?></li> |
# |
Feb 13th 2018, 12:23 |
ahmed_bodi |
http://exchange.vapesquaddirect.co.uk/profile/login?lang=en |
# |
Feb 13th 2018, 12:23 |
ahmed_bodi |
with those routes im getting this for the link |
# |
Feb 13th 2018, 12:20 |
ahmed_bodi |
https://gist.github.com/ahmedbodi/08f2e153b52d66e4e18372ea3a12e89f |
# |
Feb 13th 2018, 12:20 |
ahmed_bodi |
@admad they are |
# |
Feb 13th 2018, 12:19 |
ahmed_bodi |
I'm using prefixed controllers for things like the admin area |
# |
Feb 13th 2018, 12:18 |
admad |
ahmed_bodi: make sure your routes with /:lang are connected before other routes |
# |
Feb 13th 2018, 12:15 |
neon1024 |
I’m not too sure why you include a `*` at the end of your route though. Do you have routing token with slashes in them? |
# |
Feb 13th 2018, 12:15 |
neon1024 |
Although my first thought would be to use a prefix, but you probably don’t want prefixed controllers and such, so not a great idea |
# |
Feb 13th 2018, 12:14 |
neon1024 |
`$routes->connect('/:lang/:controller/:action', ['lang' => '[\w]+']);` perhaps |
# |
Feb 13th 2018, 12:14 |
neon1024 |
All I can think of is specifying the pattern for the token in the routing |
# |
Feb 13th 2018, 12:04 |
ahmed_bodi |
however instead it gives /profile/login?lang=en |
# |
Feb 13th 2018, 12:04 |
ahmed_bodi |
i figured doing Html->link(['controller' => 'Users', 'action' => 'login', 'lang' => $lang]) should work |
# |
Feb 13th 2018, 12:04 |
ahmed_bodi |
since the structure of the routes is /:lang/:controller/:action* |
# |
Feb 13th 2018, 12:03 |
ahmed_bodi |
@hmic, got that cleared, not sure what it was. But i'm not sure how to make the Html Helper use the language in the URL's |
# |
Feb 13th 2018, 11:46 |
hmic |
clear cache |
# |
Feb 13th 2018, 11:43 |
ahmed_bodi |
i've used I18n:setLocale to set the locale and things like the dates are converted fine. Just the text isnt converted |
# |
Feb 13th 2018, 11:42 |
ahmed_bodi |
Hi guys, I'm having an issue with cakephp. It doesnt appear to be loading the language .po files when i try and use the translate |
# |
Feb 13th 2018, 11:25 |
neon1024 |
Ah, I should ask in the foc channel :slightly_smiling_face: |
# |
Feb 13th 2018, 11:25 |
neon1024 |
Why doesn’t the foc/bootstrap-ui plugin implement the postLink? |
# |
Feb 13th 2018, 11:07 |
turkles |
sadly yes 32 bit :( Ah well.. I'll just test with lower values |
# |
Feb 13th 2018, 11:01 |
turkles |
hrm, I was testing on my windows box, Uniserver, may run 32 bit |
# |
Feb 13th 2018, 10:59 |
hmic |
delete the orm cache nether the less as a first step |
# |
Feb 13th 2018, 10:59 |
hmic |
turkles: is your php 64 bit? it still only supports signed integers i suppose :P |
# |
Feb 13th 2018, 10:56 |
turkles |
hrm, I had to change an id from int to bigint, but when I fetch data it seems to be truncating the value - where do I need to update to fix this? |
# |
Feb 13th 2018, 10:56 |
neon1024 |
Despite me containing it :thinking_face: |
# |
Feb 13th 2018, 10:56 |
neon1024 |
Well my bug seems to be that my initial entity I pass to my form, doesn’t contain the data I’m trying to patch back into it. Thus Cake thinks I’m creating a new associated entity. In case anyone wondered :slightly_smiling_face: |
# |
Feb 13th 2018, 10:44 |
neon1024 |
Might I suggest taking a look at https://github.com/friendsofcake/search |
# |
Feb 13th 2018, 10:43 |
michaelze |
Okay, thanks @neon1024 and @hmic... I'll give it a try... |
# |
Feb 13th 2018, 10:42 |
michaelze |
I'm using it to build a query... The form is a search form... |