netson / l4gettext

Package to add Gettext support to Laravel 4 applications
61 stars 8 forks source link

php artisan l4gettext:extract returns error on latin characters #17

Open boraerbasoglu opened 9 years ago

boraerbasoglu commented 9 years ago

[Netson\L4gettext\XgettextException]
The xgettext command could not be executed:
[1] General error
Attempted to execute the following command:
'1' '--language=PHP' '--add-comments=TRANSLATORS' '--force-po' '--output=/home/vagrant/Code/nartframework/www/app/storage/l4gettext/messages.pot' '--from-code=utf8' '--copyright-holder=NartsWork' '--package-name=L4gettext' '--p
ackage-version=v1.0.0' '--msgid-bugs-address=bora.erbasoglu@technarts.com' '--escape' '--keyword=
' '--keyword=gettext' '--keyword=dgettext:2' '--keyword=dcgettext:2' '--keyword=ngettext:1,2' '--keyword=dngettext:2,3' '--keyword
=dcngettext:2,3' '--keyword=_n:1,2'

returns and error if using lating characters in a file that artisan looking for gettext strings

for ex: _('Kayıt Seç')

netson commented 9 years ago

Could you paste your config file in here so I can try to replicate this?

boraerbasoglu commented 9 years ago

Here is my config file

Thanks for your help

<?php /**

?> On 29-12-2014 16:10, netson wrote:

Could you paste your config file in here so I can try to replicate this?

— Reply to this email directly or view it on GitHub https://github.com/netson/l4gettext/issues/17#issuecomment-68259960.

netson commented 9 years ago

Hi, I apologize for the delay.

Is it possible that you need to change the character encoding for these characters to work? Alternatively, could you attempt to execute the command you posted in your first post manually to see what and if any error message gettext produces? That will help in determining the problem.

Looking forward to your reply!

Regards, Rinck