potsky / laravel-localization-helpers

🎌 Artisan commands to generate and update lang files automatically
GNU General Public License v3.0
187 stars 38 forks source link

[ErrorException] touch(): Unable to create file .... \lang\de\confide::confide.php because Invalid argument #1

Closed fonz-lu closed 10 years ago

fonz-lu commented 10 years ago

Hi, your tool works great, but I have a problem with some packages that have their translation files in the vendor folder.

For example with confide.

This is in a view:

{{{ Lang::get('confide::confide.password') }}}

And when I use the command, I get this error:

45 lemmas have been found in code

Scan files:
    \app\lang\de\confide::confide.php
    > File has been created

  [ErrorException]
  touch(): Unable to create file..... \app\lang\de\confide::confide.php because Invalid argument

So I pointed to a folder with views without confide and it's working.

potsky commented 10 years ago

HI !

Oups, indeed I don't manage package translations... They should be skipped, right ?

fonz-lu commented 10 years ago

Yes, they should be skipped

potsky commented 10 years ago

Hi !

I just have published the new version on packagist and github. Can you tell me if it is ok for you ?

I have added the support for dynamic translation too (lemmas with inner PHP variables).

fonz-lu commented 10 years ago

Hi, great, it is working now.

Thank you!

potsky commented 10 years ago

Nice ! You're welcome