clusteramaryllis / laravel-gettext

https://packagist.org/packages/clusteramaryllis/gettext
GNU General Public License v2.0
4 stars 5 forks source link

I don't see that the syntax given in readme actually works in templates? #3

Closed rulatir closed 8 years ago

rulatir commented 8 years ago

The readme says to use the following syntax in templates:

{!! __('Translated string') !!}

These strings are not detected when I update the catalogs from sources in Poedit.

A different syntax seems to work for string extraction:

{{ _('Translated string') }}

At the bottom of readme there is a table with gettext function aliases (including '__'), but the default configuration in gettext.php after vendor:publish doesn't seem to configure these as keywords.

rulatir commented 8 years ago

Nevermind, wrong branch.