Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

menu "Office Key Management" not showed on OCS241 [closed]

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
closed with the note: It's a know problem.
in OCS Inventory NG server for Unix by (250 points)
closed by

1 Answer

+1 vote

Hi @apulobini ,

actually, this is a problem noticed by users of OCS plugins after the last updates :

The folders, as well as the language file names have changed, and with them the OCS Inventory non-kernel translations syntax have been lost (so to report at the end in the new file - for example: 14000 Office Manager)

Thank you for sharing this information with the community.

Kind regards, Stéphane

by (32.6k points)
 
Powered by Question2Answer
...