Scaffold Translation

Adds scaffold commands to generate translation aware source files (plugin, controller, component, widget, etc)

Back to Scaffold Translation Support

hambern
hambern

Today I've started to get an ErrorException every time i use the plugin. It sais:

[ErrorException]                                                                  file_put_contents(/Volumes/Lagring/Kod/MAMP/mattiashamberg/plugins/hambern/company/lang/.DS_Store/lang.php): failed to open stream: No such file or directory

The error seemed to appear after I created a Controller class in my plugin. After that I get that ErrorException every time. I even tried a total reinstall of my plugin. It works at first, but after I create that new Controller. The error appears again.

And just to be clear. The lang.php file exists. Both lang/en/lang.php and lang/sv/lang.php

Any idea?

Last updated

gabsource
gabsource

Hi,

The plugin expects only language folders in vendor/plugin/lang directory. Your directory contains a .DS_Store file with is not a writable directory ; that's why it fails when the plugin tries to write the updated language files.

I'll patch the plugin to exclude non writable folders from the scope.

In the meantime you can delete /Volumes/Lagring/Kod/MAMP/mattiashamberg/plugins/hambern/company/lang/.DS_Store file to get rid of the error (.

hambern
hambern

Thank you very much :)

1-3 of 3