Skip to content
This repository has been archived by the owner on Aug 18, 2018. It is now read-only.

Multi-domain configuration results in filesystem error? #79

Closed
Hypaethral opened this issue Jun 13, 2016 · 2 comments
Closed

Multi-domain configuration results in filesystem error? #79

Hypaethral opened this issue Jun 13, 2016 · 2 comments

Comments

@Hypaethral
Copy link

Hypaethral commented Jun 13, 2016

Following https://github.com/xinax/laravel-gettext#d-adding-source-directories-and-domains, I seem to be configuring this incorrectly, but I can't figure out what I'm doing wrong.

...
'locale' => 'fr_CA',
'supported-locales' => array(
    'en_US',
    'fr_CA',
)
'domain' => 'core',
'source-paths' => array(
    'core-php' => array(
        'Http/Controllers',
        '../resources/views',
        '../resources/assets/js',
        'Console/Commands'
    ),
    'core-js' => array(
        'public/build/js/bundle.js'
    )
),
...

php artisan gettext:create results in /vendor/symfony/finder/Finder.php:635 - The "" directory does not exist.
Core.po and core-php.po are created, but only for en_US. I would expect core.po, core-php.po, and core-js.po for both en_US and fr_CA.

Changing domain to 'domain' => 'core-php' results in the same error, and only creates core-php.po for en_US.
I do not have this problem using source-paths without the nested domain arrays.

@charles-rumley
Copy link
Contributor

charles-rumley commented Jul 12, 2016

The Symfony error is caused by a non-existent path in your configuration file. A more informative error message was added in #65.

As far as the paths go,

@shaggyz
Copy link
Owner

shaggyz commented Oct 17, 2016

Closed, since #65 is already merged.

@shaggyz shaggyz closed this as completed Oct 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants