Log message #4261254

# At Username Text
# Apr 13th 2021, 15:24 slackebot translated fields: they only get saved in the `i18n` table, and the "main entity" has `null` in place of translated fields. I think this is because the default language is not correctly detected, and insertions are viewed as already translated. I did put `App.language` in my config file tho. Did I miss something? I double checked the cake book about Translations and cakephp-i18n repo README, but I can't find a solution. Thanks for
# Apr 13th 2021, 15:24 slackebot ['locale' => 'eng']` . I need to translate to english.) If I put `/eng` in the URL, the locale is detected correctly (I think? I can see `<html lang="">` switch language correctly and there is a parameter `lang` in my request), yet all my entities come untranslated. Do I need to manually set the locale before querying my database? Also, if I try to save a new entity from a non-localized page, the "main table" entity lacks the
# Apr 13th 2021, 15:24 ale.migliardi Hi! I'm having trouble with localization and cakephp, and I wanted to ask for some help. I'm using cakephp-i18n to get localized content. I added the `Translate` behavior to my Table (specifying only some fields) and added the i18n middleware in `Application.php` . I set languages in my config file and have some fields registered in my `i18n` table. (I use 3 letter locales, so I mapped in my middleware `'eng' =>
# Apr 13th 2021, 15:19 jadelbe418 I am currently working through an issue on integrating an API connection into the Cake model layer that needs to be used to generate virtual fields on render. I put detailed version of this on stackoverflow, if you would like to look at it there: https://stackoverflow.com/questions/67077616/how-to-use-api-generated-values-in-entity-virtual-fields-in-cakephp
# Apr 13th 2021, 14:59 kevin.pfeifer sure the bake templates are nice because you can define what is generated automatically But nonetheless you will have to make adjustments for each generated template in the end
# Apr 13th 2021, 14:54 richard oh i have no idea, i hardly use bake
# Apr 13th 2021, 14:48 paolo.bragagni @richard but hotel to integrate it in my own bake template?
# Apr 13th 2021, 14:32 richard once you have those in your plugin or whatever you are good
# Apr 13th 2021, 14:32 richard @paolo.bragagni bootstrap ui plugin is all about just loading the right helpers in the view
# Apr 13th 2021, 13:08 paolo.bragagni thanks again @kevin.pfeifer
# Apr 13th 2021, 12:37 kevin.pfeifer i would guess you would need to copy the bootstrap plugin templates instead of the normal bake templates
# Apr 13th 2021, 12:36 kevin.pfeifer that i can’t tell you since i have never used any bootstrap plugins ,:)
# Apr 13th 2021, 12:25 paolo.bragagni @kevin.pfeifer I'd like to use the friendsofcake bootstrap-ui. How to combine that to my own template plugin?
# Apr 13th 2021, 11:37 paolo.bragagni thanks (lot of work... arghhhh)
# Apr 13th 2021, 11:36 paolo.bragagni yes probaby s the way
# Apr 13th 2021, 11:36 kevin.pfeifer use that
# Apr 13th 2021, 11:36 kevin.pfeifer sure you can just use a symlink to a “global” plugin core and so all your apps
# Apr 13th 2021, 11:36 kevin.pfeifer i would guess
# Apr 13th 2021, 11:35 kevin.pfeifer then it would be the easiest to just copy that plugin to your apps
# Apr 13th 2021, 11:35 paolo.bragagni and I'd like that the 'core' compare one only time in my server with dozen of apps
# Apr 13th 2021, 11:34 paolo.bragagni (government organization..)
# Apr 13th 2021, 11:34 paolo.bragagni I have to use only internal source
# Apr 13th 2021, 11:33 kevin.pfeifer github is just an easy example but you can use it with other vendors as well https://packagist.com/features/integration-github-bitbucket-gitlab
# Apr 13th 2021, 11:32 paolo.bragagni one step at a time :)
# Apr 13th 2021, 11:31 paolo.bragagni cant use github in my organization
# Apr 13th 2021, 11:30 paolo.bragagni then I bake all my apps from that folder
# Apr 13th 2021, 11:30 kevin.pfeifer then I would develop the core as a plugin, publish that via e.g. github and make it downloadable via packagist And then you can require that core plugin in all your apps where your “normal” src directory is app specific but all your core functionality lives in the plugin
# Apr 13th 2021, 11:30 paolo.bragagni now in my linux server I have a folder called cake-2.9
# Apr 13th 2021, 11:29 paolo.bragagni I mean. I will have many projects with same core
# Apr 13th 2021, 11:28 paolo.bragagni another thing that I like to do is to separate the 'core' from the src
# Apr 13th 2021, 11:27 kevin.pfeifer yop :)
# Apr 13th 2021, 11:27 paolo.bragagni (have to learn twig, I uppose..)
# Apr 13th 2021, 11:26 kevin.pfeifer and then adjust the templates as you like it
# Apr 13th 2021, 11:26 paolo.bragagni wow thanks
# Apr 13th 2021, 11:26 kevin.pfeifer ```// in src/Application::bootstrapCli() before loading the 'Bake' plugin. Configure::write('Bake.theme', 'MyTemplates');```
# Apr 13th 2021, 11:26 kevin.pfeifer and set your new templates as the new generation default
# Apr 13th 2021, 11:25 kevin.pfeifer copy all folders from vendor/cakephp/bake/templates/bake to plugins/MyTemplates/templates/bake
# Apr 13th 2021, 11:25 kevin.pfeifer all you need to do is that: ```bin/cake bake plugin MyTemplates```
# Apr 13th 2021, 11:24 paolo.bragagni (already done for cake2 but its time to switch..)
# Apr 13th 2021, 11:23 paolo.bragagni I'd like to create a template for all my future apps
# Apr 13th 2021, 11:23 kevin.pfeifer i personally hate it when i have like 50 folders in my templates directory