[Lazarus] finding the package of the unit

Maxim Ganetsky ganmax at narod.ru
Mon Jan 28 22:12:20 CET 2013

29.01.2013 0:59, ik пишет:
> On Mon, Jan 28, 2013 at 10:57 PM, Maxim Ganetsky <ganmax at narod.ru> wrote:
>> 29.01.2013 0:55, ik пишет:
>>> On Mon, Jan 28, 2013 at 10:30 PM, Maxim Ganetsky <ganmax at narod.ru> wrote:
>>>> 28.01.2013 19:46, ik пишет:
>>>>> Hello,
>>>>> How can If find what is the package that the file
>>>>> lazarusidestrconsts.pas belongs to ?
>>>>> I need to use some of it's text with my plugins. Strings such as
>>>>> srkmCatSrcNoteBook.
>>>> It is category name. Why do you need to reuse it?
>>> My plugins add itself to the editor tab menu, and I wanted to use the
>>> same category for shortcuts, because it belongs there imho...
>> Do you really need category resource string to add shortcut there?
> It's not mandatory, but note that when someone translate the IDE and
> that string, it will display different string at the shortcut frame.

I can't understand.

You add shortcut to already existing category with already translation 
caption. As far as I understand, your package (its ability to add 
shortcut) shouldn't be affected by its translation at all. Will the 
translation be lost or something? What is the problem exactly? Note that 
your shortcut caption can be defined and translated in your package's 
local PO file.

Best regards,
  Maxim Ganetsky                  mailto:ganmax at narod.ru

More information about the Lazarus mailing list