Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic fields with parameters In language lines #55

Open
PRodO5lNk5 opened this issue Mar 8, 2017 · 0 comments
Open

Dynamic fields with parameters In language lines #55

PRodO5lNk5 opened this issue Mar 8, 2017 · 0 comments

Comments

@PRodO5lNk5
Copy link

Maybe this is more of a question, somewhat referencing issue #53
I am still getting the same error when running localization:missing command but on a different line

My directive is this:

@lang('pages/master/home.offers.message.' . session("message"), ['membership' => url('membership')])

And my translation file looks like this:

'offers' => array(
         'message' => array(
           'login'  => 'You need to login first.',
           'premium' => 'You need to change your membership to premium. If you want to know more, click <a class="btn-link" target="_blank" href=":membership">here</a> to find out.',
           'card'     => 'You can use your member card for this offer.'
         )
    ), 

Then I added message to the never_obsolete_keys array

'never_obsolete_keys' => array(
	'dynamic',
	'fields',
        'message',
    ) ,

And the error_log gives this output:

'pages/master/home.offers.dynamic.message.' . session("message"), ['membership' => url('membership'
PHP ParseError:  syntax error, unexpected ',', expecting ';' in /var/www/html/local.familiando/vendor/potsky/laravel-localization-helpers/src/Potsky/LaravelLocalizationHelpers/Factory/Localization.php(559) : eval()'d code on line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant