Re: Problem with Scintilla - Mailing list pgadmin-hackers

From Andreas Pflug
Subject Re: Problem with Scintilla
Date
Msg-id 3F1509C2.10206@pse-consulting.de
Whole thread Raw
In response to Problem with Scintilla  ("Hiroshi Saito" <saito@inetrt.skcapi.co.jp>)
List pgadmin-hackers
Hiroshi Saito wrote:

>Hi Andreas.
>
>There is Scintill which can't be controlled by a po file to translate.
>
>For example it is this.
>--->ScintillaBase.cxx
>void ScintillaBase::ContextMenu(Point pt) {
>        if (displayPopupMenu) {
>                bool writable = !WndProc(SCI_GETREADONLY, 0, 0);
>                popup.CreatePopUp();
>                AddToPopUp("Undo", idcmdUndo, writable && pdoc->CanUndo());
>                AddToPopUp("Redo", idcmdRedo, writable && pdoc->CanRedo());
>                AddToPopUp("");
>                AddToPopUp("Cut", idcmdCut, writable && currentPos !=
>anchor);
>                AddToPopUp("Copy", idcmdCopy, currentPos != anchor);
>                AddToPopUp("Paste", idcmdPaste, writable &&
>WndProc(SCI_CANPASTE
>, 0, 0));
>                AddToPopUp("Delete", idcmdDelete, writable && currentPos !=
>anch
>or);
>                AddToPopUp("");
>                AddToPopUp("Select All", idcmdSelectAll);
>                popup.Show(pt, wMain);
>        }
>}
><----END
>
>I don't think that it is a substitution simply with wxT("xx").
>It was the modification point with stc.xpp, *.h as well.
>And, the base of Scintilla is outside.
>I don't have a definite answer.
>
>Are there any ideas?
>
>
Hi Hiroshi,

you're right, scintilla isn't gettext aware. We could implement our own
context menu, to get rid of scintilla's own. That would solve the problem.

Regards,
Andreas


pgadmin-hackers by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Re: SystemObject show patch more.
Next
From: Brage Førland
Date:
Subject: Re: Missing strings in pgadmin3.pot