Skip site navigation (1) Skip section navigation (2)

Re: Problem with Scintilla

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Hiroshi Saito <saito(at)inetrt(dot)skcapi(dot)co(dot)jp>
Cc: Andreas Pflug <Andreas(dot)Pflug(at)web(dot)de>,pgadmin-hackers(at)postgresql(dot)org
Subject: Re: Problem with Scintilla
Date: 2003-07-16 08:16:02
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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.
>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 !=
>                AddToPopUp("Copy", idcmdCopy, currentPos != anchor);
>                AddToPopUp("Paste", idcmdPaste, writable &&
>, 0, 0));
>                AddToPopUp("Delete", idcmdDelete, writable && currentPos !=
>                AddToPopUp("");
>                AddToPopUp("Select All", idcmdSelectAll);
>                popup.Show(pt, wMain);
>        }
>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.


In response to


pgadmin-hackers by date

Next:From: Andreas PflugDate: 2003-07-16 08:33:28
Subject: Re: Translation: Languages
Previous:From: Jean-Michel POUREDate: 2003-07-16 07:31:37
Subject: Re: Translation: Languages

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group