manne65-hd / Kanboard_MakePluginTranslationFiles

A (self-contained) CLI-tool to find all calls to Kanboard's translate-function in your plugin and generate/update translation-files for it.
MIT License
1 stars 0 forks source link

Folder not found! #2

Open panpodziemia opened 9 months ago

panpodziemia commented 9 months ago

Hi. I try to install Kanboard_MakePluginTranslationFiles but i have many times FOLDER NOT FOUND! Where im put this folder? My patch to Kanboard is: /var/www/html/ My patch for Kanboard plugins: /var/www/html/plugins/

manne65-hd commented 9 months ago

Hi there, could you please post lines 13 to 37 (the configuration-part of my script) ?

I fear that this is a bug that exists in "linux-oid" operation-systems, because I developed this in a windows environment and we are dealing with backward-slashes there instead of forward-slashes on linux/mac. So i guess you are trying to run this on linux or mac?

Will have to try and fix that, but I don't think I will find the time before January.

panpodziemia commented 9 months ago

/*==============================================================================

============================================================================/

// foldername of the plugin for which you want to generate/update translations

$my_plugin_folder = 'AddressBook'; // CASE-sensitive!

/* array of language-codes for which you want to offer translations

$my_plugin_langs = array(

 'pl_PL',

);

/* set to TRUE if you want to "prepare" translations for all other languages.

panpodziemia commented 9 months ago

Hi

Yes on linux all path is / not a \

panpodziemia commented 9 months ago

i change \ to / and i have this message:

PHP Warning: Undefined array key "lang_keys" in /var/www/html/_KB_make_plugin_translations/KB_make_plugin_translations.php on line 137 Succesfully generated translation-files

line 137 is: if ($merge_keys['lang_keys']) {