OzzyCzech / potrans

Command line tool for translate Gettext with Google Translator API or DeepL API
MIT License
90 stars 30 forks source link

Correct autoload? #3

Closed NoMan2000 closed 9 years ago

NoMan2000 commented 9 years ago

On line 12 of potranscli.php it references this:

require_once __DIR__ . '/../vendor/autoload.php';

But that has no reference, there is no autoloader.php file inside of the root of the project. Unless I'm missing something, either you need to add one or use the default one with composer.

The vendor root is at least three levels above this one, (vendor/om/src/potranscli.php), so the correct path should be:

require_once __DIR__ . '/../../../autoload.php';
NoMan2000 commented 9 years ago

Also it gave me a server error when I tried to run it, even as sudo, but there was no debug output even with verbose enabled. It just said "Server Error".

Error "Server Error #403: " that's it.

Command run:

sudo ../../../../../../vendor/om/potrans/bin/potrans -k **key** -i ./english.po -o ./russian.po
OzzyCzech commented 9 years ago

I am using PHP composer, run composer install in potrans root and autoloader file will be generated.

oezgueng commented 9 years ago

i have the same problem... 403 error.... someone resolve this bug?