# |
Nov 7th 2019, 09:24 |
javier.villanueva |
yes |
# |
Nov 7th 2019, 09:24 |
conehead |
So you mean the day names are not translated? |
# |
Nov 7th 2019, 09:24 |
javier.villanueva |
xD |
# |
Nov 7th 2019, 09:24 |
javier.villanueva |
if I use MMMM or MMM I have NovNovNovNov ... |
# |
Nov 7th 2019, 09:23 |
javier.villanueva |
@jotpe ok I try |
# |
Nov 7th 2019, 09:22 |
javier.villanueva |
should be Dom Nov |
# |
Nov 7th 2019, 09:22 |
javier.villanueva |
but if I use D M for example -> Sun Nov |
# |
Nov 7th 2019, 09:22 |
jotpe |
or MMMM |
# |
Nov 7th 2019, 09:22 |
javier.villanueva |
in this example yes... |
# |
Nov 7th 2019, 09:22 |
jotpe |
d MMM :slightly_smiling_face: |
# |
Nov 7th 2019, 09:22 |
conehead |
and it should be? |
# |
Nov 7th 2019, 09:21 |
javier.villanueva |
d M is -> 04 Nov |
# |
Nov 7th 2019, 09:21 |
jotpe |
https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classSimpleDateFormat.html#details |
# |
Nov 7th 2019, 09:21 |
jotpe |
`$from->format('d M')` is just a Format of Day and Month (like 07 11) like I understand it? There's nothing to translate, or? |
# |
Nov 7th 2019, 09:18 |
javier.villanueva |
with APP_DEFAULT_LOCALE es_ES neither doesnt work (dates) |
# |
Nov 7th 2019, 09:12 |
javier.villanueva |
I have NO problem in rest of the translations (texts, tables...) with i18n, but dates... |
# |
Nov 7th 2019, 09:10 |
javier.villanueva |
``` I18n::setLocale('es_ES'); $from = new Date($date); $to = new Date($end_week); return $week.' ('.$from->format('d M').' - '.$to->format('d M').')'; ``` |
# |
Nov 7th 2019, 09:09 |
jotpe |
How do you format it? |
# |
Nov 7th 2019, 09:07 |
javier.villanueva |
any idea? |
# |
Nov 7th 2019, 09:07 |
javier.villanueva |
I am using Cake\I18n\Date; , and my I18n::setLocale('es_ES'); but dates always are shown in english ... |
# |
Nov 7th 2019, 08:55 |
challgren |
Pieceof the chat is in slack |
# |
Nov 7th 2019, 08:45 |
javier.villanueva |
morning all |
# |
Nov 7th 2019, 08:02 |
pieceof |
im looking for fresh news about jwt |
# |
Nov 7th 2019, 08:01 |
pieceof |
yo all, is there anyway to download the logs of the channel from topic url ? |
# |
Nov 7th 2019, 07:53 |
slackebot1 |
<dakota> |
# |
Nov 7th 2019, 07:44 |
conehead |
Morning |
# |
Nov 7th 2019, 07:42 |
jotpe |
Morning! |
# |
Nov 7th 2019, 06:19 |
Fastidius |
and one more question you probably have more insight than I on.... Saving a record theres a redirect that happens ....is there a variable for the previous page? im basically trying to make a add form where i have a list hit add then go back to wherever i cam from. |
# |
Nov 7th 2019, 06:18 |
Fastidius |
ahh that is very helpful. |
# |
Nov 7th 2019, 04:52 |
challgren |
https://book.cakephp.org/3/en/development/routing.html#route-elements |
# |
Nov 7th 2019, 04:51 |
challgren |
Wouldn’t `$this->request->getParam('id')` have your info? |
# |
Nov 7th 2019, 04:32 |
Fastidius |
it seems like a pretty easy thing to do but do i do it in the Controller? |
# |
Nov 7th 2019, 04:29 |
Fastidius |
i want to grab the ID used in the URL and put it into a session variable for use elsewhere with 'Val' in selects etc |
# |
Nov 7th 2019, 04:28 |
Fastidius |
is there a variable that is passed when you go to an ID via a controller? |
# |
Nov 6th 2019, 22:53 |
amanfulgence |
how cane use it please isAuthorized |
# |
Nov 6th 2019, 22:26 |
dev.cyrusjayson |
This keep redirecting to /users/products instead of /products/index I am using cakedc ``` $this->Auth->config('loginRedirect', ["controller"=>"Products", "action"=>"index"]); ``` |
# |
Nov 6th 2019, 22:02 |
dev.cyrusjayson |
@ricksaccous not idea I think. how to change this $this->Auth->redirectUrl() ? maybe you know. thanks |
# |
Nov 6th 2019, 21:58 |
ricksaccous |
also related reading |
# |
Nov 6th 2019, 21:57 |
ricksaccous |
https://book.cakephp.org/3/en/core-libraries/events.html |
# |
Nov 6th 2019, 21:56 |
ricksaccous |
there you go |
# |
Nov 6th 2019, 21:56 |
ricksaccous |
@dev.cyrusjayson https://github.com/CakeDC/users/blob/master/Docs/Documentation/Events.md |