User forums > Using Code::Blocks

"Find broken files in project" positioned under menu "Plugins"

(1/3) > >>

Anbang24:
When the language of Code::Blocks is set as English, there are many plugins under main menu "Plugins(L)", shown as (A) in the attached picture.

But when the language is set as Chinese, then most of the plugins are still under main menu "插件(L)” ("Plugins(L)" in English), however, the plugin "Find broken files in project" is not in this menu, but under another separated menu "插件" ("Plugin" in English).  Shown as (B) and (C) in the attached picture.

If we set the language to Russian, then most of the plugins are under the Russian menu "модель", the plugin "Find broken files in project" is under another separated menu "Plugins".  Shown as (D) and (E) in the attached picture.

Please check this problem.

stahta01:
Which Code::Blocks version/SVN?

Tim S.

stahta01:
Does anyone know is translation magic work on script files like "plugin_find_broken_files.script"?

Tim S.

Anbang24:

--- Quote from: stahta01 on December 25, 2019, 05:54:18 am ---Which Code::Blocks version/SVN?

Tim S.

--- End quote ---

Code::Blocks 17.12, build 30 Dec 2017.

It is the latest version from the "Download binary" webpage: http://www.codeblocks.org/downloads/26

Anbang24:

--- Quote from: stahta01 on December 25, 2019, 06:10:22 am ---Does anyone know is translation magic work on script files like "plugin_find_broken_files.script"?

Tim S.

--- End quote ---

I opened "plugin_find_broken_files.script" in **\CodeBlocks\share\CodeBlocks\scripts\ , and found that there is such a function:

    // create menubar items
    function GetMenu()
    {
        local entries = ::wxArrayString();
        entries.Add(_("Plugins") + _T("/0:-") + _("Find broken files in project"), 1);
        return entries;
    }

Obviously, here lies the problem: it tries to add a menuentry under the menu named "Plugins".
In order to eliminate the problem, I should make a translation here.

However, this is not a good solution. Because I found another magic:
Open C::B (whatever the version or language), click "Plugins > Manage plugins", select one plugin in "Installed plugins" list, then click "Disable", the menu "plugins" will refresh, and "Find broken files in project" disappeared! (It will return back when restart C::B).

In my opinion, the plugin "Find broken files in project" shouldn't add itself to the menu by a startup script. It should be managed as same as other plugins!

Navigation

[0] Message Index

[#] Next page

Go to full version