agentejo / cockpit

Add content management functionality to any site - plug & play / headless / api-first CMS
http://getcockpit.com
MIT License
5.4k stars 525 forks source link

Creating a language file fails #888

Open WebShapedBiz opened 6 years ago

WebShapedBiz commented 6 years ago

Hi. On version 0.8.1. I'm trying to create a new language file with

php cp create-lang --lang hr --language Hrvatski

I even get the success message

Done! Language file created: config/cockpit/i18n/hr.php

but there is no file created in that folder. It may be worth to mention that I tried with and without creating the config/cockpit/i18n folder before running the cp command with the same end result.

Cheers.

raffaelj commented 6 years ago

Do you use the latest version of my FormValidation Addon? If yes - sorry. I was able to reproduce your issue. I added another config folder inside the addon to store custom mail templates. It works fine, but now the language file is in /addons/FormValidation/config/cockpit/i18n/

If it's not my addon, maybe another addon has a line of code like this: $app->path('#config', __DIR__.'/config');

aheinze commented 6 years ago

maybe the /config folder isn't writable?

I'll add a check and a notice in the next release

WebShapedBiz commented 6 years ago

Thank you @aheinze for your quick reply. Config folder and all subfolders (cockpit/i18n) are 0777 (I'm on Vagrant box) so that's OK. Thank you @raffaelj but I'm not using FormValidation addon.