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

Messages configuration #39

Closed
legendarydrew opened this issue Dec 18, 2014 · 2 comments
Closed

Messages configuration #39

legendarydrew opened this issue Dec 18, 2014 · 2 comments

Comments

@legendarydrew
Copy link

First of all, thanks very much for this packagae - it has saved a lot of time, even though I've done a little modification for my own requirements.

Speaking of which, I've noticed that there isn't a configuration file for the messages that get used in the views, for example:

{{ trans('laravel-blog::messages.share.facebook') }}

After publishing the configration to my project, I've tried creating a configuration file called messages.php under the package's config directory, with the following contents:

return array(
    'adjacent' => array (
        'prev_link_text' => '< :title',
        'next_link_text' => '> :title'
    ),
    'share' => array (
        'twitter' => 'Yo!'
    )
);

However this doesn't change the output at all. Have I done something wrong?

@neilcrookes
Copy link
Contributor

Check out how to override package translation files here:

http://laravel.com/docs/4.2/localization#overriding-package-language-files

They don't go in the config directory

@legendarydrew
Copy link
Author

Ah, it's a language file. (trans() should have given me a clue!)

Thanks very much for the quick response!

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

2 participants