Recent

Author Topic: Inconsistent function description  (Read 593 times)

440bx

  • Hero Member
  • *****
  • Posts: 5479
Inconsistent function description
« on: May 19, 2025, 05:31:33 am »
Hello,

Under "Run" there is "Compile many modes".

When attempting to assign a hot key to it using the "Key Mappings", there is no "Compile many modes" which means it cannot be found using the filter box", instead there is "Build many modes", which is the same as "Compile many modes" because after assigning a key to it, it shows as the key assigned to "Compile many modes" in the Run menu.

Should this inconsistency be reported as a bug ?

Note: Lazarus v4.0rc3

(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

n7800

  • Sr. Member
  • ****
  • Posts: 368
Re: Inconsistent function description
« Reply #1 on: May 19, 2025, 06:52:37 pm »
Unfortunately, currently the Lazarus source code defines separate string constants for menu item names and IDE commands. I have already touched on this topic with the developers (this, this), and I hope that this will change in the future. This should eliminate problems like yours and make the translators' job easier.

440bx

  • Hero Member
  • *****
  • Posts: 5479
Re: Inconsistent function description
« Reply #2 on: May 19, 2025, 09:26:07 pm »
Thank you n7800.

Essentially, it cannot be considered a bug but an "unfortunate" consequence of the current code structure (which will eventually be improved making the inconsistency go away.(
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v4.0rc3) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018