mnicole90 / wordpress-openai-translation

A Wordpress plugin that uses OpenAI to translate posts and pages
MIT License
6 stars 2 forks source link

require plugin_dir_path(__FILE__) . 'vendor/autoload.php'; #1

Open hcl7 opened 1 year ago

hcl7 commented 1 year ago

Not working at this point, I do not have laravel installed on my wordpress project. What cat put instead of 'vendor/autoload.php' ?

hcl7 commented 1 year ago

define('OPENAI_SECRET', getenv_docker('OPENAI_SECRET', '')); define('OPENAI_TRANSLATION_VALIDATOR', getenv_docker('OPENAI_TRANSLATION_VALIDATOR', 'custom'));

I removed getenv_docker, and this: $plugin = new Translation\TranslationPlugin(FILE, OPENAI_SECRET, OPENAI_TRANSLATION_VALIDATOR);

needs to be changed, just to call TranslationPlugin class not as laravel project.

hcl7 commented 1 year ago

please do same tutorial on how to install and configure so it can be activated on a wordpress project.

thank you

DiMiTriFrog commented 1 year ago

please do same tutorial on how to install and configure so it can be activated on a wordpress project.

thank you

i can't run it on Wordpress