View Single Post
Old 10-20-2014, 10:48 AM   #104
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,860
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi Divingduck,

I'll take a peak at the code to figure out where that context menu is built and add the proper tr() calls.

Update:


The actual place this context menu is built is here (I think):

src/Sigil/Misc/FindReplaceQLineEdit.cpp

But if you look at the code, it already used tr() on two of the menu actions:

QAction *tokeniseAction = new QAction(tr("Tokenise Selection"), menu);

QAction *saveSearchAction = new QAction(tr("Save Search") % "...", menu);

So at least those two menu entries should already be translatable. The remainder of the entries in the men come from a standard Qt call:

QMenu *menu = createStandardContextMenu();

which builds the Undo, , etc, side of things and that should also be translatable.

As for the "Saved Searches Help, Example Searches ... all I have found so far is an installed search_entries.ini file. I am not sure where this gets built into a menu yet.

KevinH

Last edited by KevinH; 10-20-2014 at 01:33 PM.
KevinH is offline   Reply With Quote