[Kbabel] Feature to add commands?

Bernd Groh bgroh at redhat.com
Fri May 30 10:44:51 CEST 2003


>
>
>In KBabel 1.2xx you can define your own entries for the "Tools -> Validate"
>and "Tools -> Modify" menus. It allows to:
>- validate current/all msgid/msgstr
>- modify the current msgstr
>- modify whole PO file
>
>Unfortunatelly, you need to implement them in C++. It should not be that hard
>to implement a generic wrapper for using scripts. For examples, see
>kbabel/datatools directory.
>
>But it seems you'd like to have the similar functionality for selected text
> or word under cursor - it is not possible ATM. What exactly do you need? Is
> the functionality as found in the Catalog manager sufficient?
>

I guess I should update my version of KBabel anyway, but to pass 
selected text or word under cursor to a command, via the context-menu, 
would be what I am looking for.

Since translating rather complex texts in po-format sometimes doesn't 
allow you to provide enough context, it would be of advantage to add a 
comment to the po-entry, that is a URL to the closest index-term (most 
likely to be the last index-term prior to the current po-entry) in the 
compiled manual, i.e. the html-pages of the original text. If you need 
more context, you simply select that URL, right click, and say "Open in 
Mozilla" or something similar. This would be much quicker and much more 
helpful then having to open mozilla yourself and copying and pasting the 
URL over. For the moment it might already be a help to open Mozilla at 
all though, makes at least one step easier, though copying the selected 
text, and calling mozilla with the text in the clipboard, i.e. `mozilla 
[selected text]`, would, of course, be a better solution.

Of course, to introduce a new special po-comment line and a simple 
button click in order to open the url within that comment line would be 
even better.

But I'm simply thinking loud here. :)

Thanks,
Bernd

>
>Stanislav
>
>Dňa Štvrtok 29 Máj 2003 04:16 Bernd Groh napísal:
>  
>
>>Hi again,
>>
>>in the Catalouge-Manager, you can add commands to the context-menus of
>>files and directories. Is any such capability planned for KBabel self,
>>or already implemented?
>>
>>I believe it would be very useful to be able to have user-defined
>>commands in the context-menu, which would give you the ability to
>>highlight some text in the po-context, i.e. a file-name or a URL, and
>>then simply use the context menu to Open in new Window, etc.. As such,
>>you could hardcode links to the manual pages of a manual you are
>>translating in po-format, for example, in order to provide a better and
>>more detailed context.
>>
>>Is there any such feature build-in, planned or does anyone know how much
>>work would be involved in implementing such feature?
>>
>>Thanks again,
>>Bernd
>>    
>>
>
>_______________________________________________
>kbabel mailing list
>kbabel at mail.kde.org
>http://mail.kde.org/mailman/listinfo/kbabel
>  
>
Hi Stanislav!

Dr. Bernd R. Groh                     Email: bgroh at redhat.com
Translator (German)                   Phone: +61 7 3872 4847
Red Hat Asia-Pacific                  Fax  : +61 7 3257 4800

"Everything we know is an illusion, nothing we know is real,
 nothing real we can know, illusion is what we call reality."

        Disclaimer: http://apac.redhat.com/disclaimer





More information about the kbabel mailing list