# |
Jul 17th 2017, 10:42 |
inoas |
not the trigger word... |
# |
Jul 17th 2017, 10:42 |
inoas |
ship ;)? |
# |
Jul 17th 2017, 10:42 |
inoas |
Is there "common sense" semantic difference between "stack" and "queue" in CS? |
# |
Jul 17th 2017, 10:41 |
braeden |
:) |
# |
Jul 17th 2017, 10:41 |
spencdev |
Definitely /kb braeden. lol |
# |
Jul 17th 2017, 10:40 |
hmic |
its a simple decision to take |
# |
Jul 17th 2017, 10:40 |
hmic |
just by using __d() or __() in your plugin |
# |
Jul 17th 2017, 10:40 |
hmic |
or you can ship it without and let the app prvide the translations |
# |
Jul 17th 2017, 10:40 |
hmic |
you can ship your plugin with translations, and it does just work in the app |
# |
Jul 17th 2017, 10:39 |
hmic |
it is like it is. and it is for a reason. - separation! |
# |
Jul 17th 2017, 10:38 |
braeden |
./kb braeden |
# |
Jul 17th 2017, 10:38 |
braeden |
CakePHP sucks |
# |
Jul 17th 2017, 10:38 |
MohammadSaleh |
it's not good at all |
# |
Jul 17th 2017, 10:37 |
hmic |
you need to use __d() if you want the translations from the plugins .po files - thats it. |
# |
Jul 17th 2017, 10:36 |
braeden |
:) |
# |
Jul 17th 2017, 10:36 |
MohammadSaleh |
hmic, for those words that using __d() works good, but for words that translated by __() in plugin i18n generate default.po in plugin, but not working |
# |
Jul 17th 2017, 10:35 |
MohammadSaleh |
so why cakephp create default.po for __() which is in plugin? |
# |
Jul 17th 2017, 10:34 |
inoas |
we will see how reasonable it is when its done and working |
# |
Jul 17th 2017, 10:34 |
hmic |
__d() does |
# |
Jul 17th 2017, 10:34 |
hmic |
because you need to specify the plugin __() will not work with your plugin .po files at all. |
# |
Jul 17th 2017, 10:34 |
braeden |
sounds reasonable to me! |
# |
Jul 17th 2017, 10:34 |
MohammadSaleh |
hmic, yes i read it already. as is in cake document "When no group is used, then the default group is selected." but why that not working when default.po is in a plugin? |
# |
Jul 17th 2017, 10:33 |
inoas |
so the software has to enable people to work efficient |
# |
Jul 17th 2017, 10:33 |
inoas |
but I am not to make the decision which parties work on the projects |
# |
Jul 17th 2017, 10:33 |
inoas |
braeden the easy way out would be to only work with reasonably competent people and a file system based content management/content application framework... some sql migrations could land in there and good to go |
# |
Jul 17th 2017, 10:32 |
hmic |
this is only a short hint, but: you need to use the correct plugins name as the translation domain. the default __() does use the app domain, not a plugin domain for translations |
# |
Jul 17th 2017, 10:31 |
inoas |
now that's still manageable, however in style.css you reference sunrise-header.jpg ... and that needs to be revisioned too |
# |
Jul 17th 2017, 10:31 |
hmic |
MohammadSaleh: https://book.cakephp.org/3.0/en/core-libraries/internationalization-and-localization.html#language-files |
# |
Jul 17th 2017, 10:31 |
inoas |
but now you publish a new version of style.css ;-) |
# |
Jul 17th 2017, 10:31 |
inoas |
when you reference style.css (saved in the database) you can easily create a file copy so that it gets served from the file system |
# |
Jul 17th 2017, 10:30 |
inoas |
the tricky part is revisioning + release management |
# |
Jul 17th 2017, 10:30 |
inoas |
or even just call shell scripts to do the minification... combination is no problem |
# |
Jul 17th 2017, 10:30 |
inoas |
but that's not the tricky part... I just want to rely on assetic or something there... |
# |
Jul 17th 2017, 10:29 |
inoas |
mini-asset asset_compress |
# |
Jul 17th 2017, 10:29 |
inoas |
there are cakephp plugins that handle those things in certain ways |
# |
Jul 17th 2017, 10:29 |
braeden |
oh okay |
# |
Jul 17th 2017, 10:29 |
inoas |
huh no I am building stuff for that |
# |
Jul 17th 2017, 10:28 |
inoas |
so we need content revision, content translation, media and code asset management, website-widgets (shopping cart, checkout steps) etc. etc |
# |
Jul 17th 2017, 10:28 |
braeden |
so there is a CakePHP app that manages all these assets? |
# |
Jul 17th 2017, 10:28 |
inoas |
non to mediocre-technical people make the decisions and we have a lot of parties involved in changing things and we cannot yield ssh access/local copies of the software to every party |
# |
Jul 17th 2017, 10:27 |
braeden |
and tricky |