On Tue, Dec 05, 2000 at 03:01:48PM +0000, Angus Leeming wrote:
> On Monday 04 December 2000 17:52, Dekel Tsur wrote:
> > You should use 'xcol.name = _("GUI background")' instead of using N_().
> > There are several places in your code that need to fixed.
> > Note that in some places you need to keep the N_() but put a _() when the
> > string is used. For example, keep the N_() in LyXRC::getDescription but
> > in FormPreferences::feedback you need to put
> > str = formatted(_(str), ...)
>
> This shouldn't be that hard, but I'm completely confused here.
>
> Why should I keep N_() for one (and then put a _() when the string is used),
> but remove it for xcol.name?
The reason I suggested to use N_() instead of _() in LyXRC::getDescription
is that each _() generates a function call which takes, for example, 8bytes
and since you have 69 'str =' lines, this amounts to 552 bytes.
If you use N_() instead of _() in LyXRC::getDescription, and put _() later
(for example, you can put 'return _(str)' at the end of LyXRC::getDescription)
then you only pay 8 bytes.
However this is not very important, so you can use _() if you wish.
With xcol.name, you don't gain anything by using N_(), so only _() should be
used.