I recently upgrade from OCSServer 2.3.1 to 2.4.1 and got the chance to upgrade the plugins with this.
I done it, but the submenu "Office Key Management" from officepack plugin was not showed after the upgrade.
I spent some time to solve it, so I want to share with you guys what I done.
During the instalation, the plugins manager executes sql scripts, modifies the menu section and put the menu label on the language file.
Infortunely, it was putting the information on the wrong file -> /usr/share/ocsinventory-reports/ocsreports/plugins/language/english/english.txt , where it's should be putting on /usr/share/ocsinventory-reports/ocsreports/plugins/language/en_GB/en_GB.txt at this new version.
If you want to quickly solve it, it just put the label in there:
echo "14000 Office Key Management" >> /usr/share/ocsinventory-reports/ocsreports/plugins/language/en_GB/en_GB.txt
If you want to fix the installer, edit the file /usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_plugins/plugins.class.php
Change the section below and save the file
From:
// Add label entry
$file = fopen(PLUGINS_DIR . "language/english/english.txt", "a+");
fwrite($file, $label . " " . $displayname . "\n");
fclose($file);
To:
// Add label entry
$file = fopen(PLUGINS_DIR . "language/en_GB/en_GB.txt", "a+");
fwrite($file, $label . " " . $displayname . "\n");
fclose($file);
I'm not pretty sure if this will work for all languages, so if doesnt, I suggest to you to point to your language file.
Hugs