lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev patch (lazy HTuncache_current_document)


From: Leonid Pauzner
Subject: Re: lynx-dev patch (lazy HTuncache_current_document)
Date: Fri, 20 Jun 2003 10:19:54 +0400 (MSD)

20-Jun-2003 11:36 Henry Nelson wrote:
>> +           HTAlert(gettext("Loading failed, use a previous copy."));
>                                                    ^
> Articles can be confusing.  "A" could mean there are more than one
> previous copy, and one of them is used.  "The" would suggest only
> one previous copy, or the copy immediately before the attempted
> reload is to be used.

Well, it should be "the" in our context.

Funny enough, I have inspected LYMessages.h for the definite article in
messages and found the following:

#define EDIT_CURRENT_SHORTCUT gettext("Edit the current shortcut: ")
#define EDIT_THE_PREV_SHORTCUT gettext("Edit the previous shortcut: ")
#define EDIT_A_PREV_SHORTCUT gettext("Edit a previous shortcut: ")

which leads to two chunks in LYJump.c:

        if ((cp = (char *) HTList_objectAt(jtp->history,
                                           ShortcutNum)) != NULL) {
            LYstrncpy(buf, cp, sizeof(buf) - 1);
            if (jump_buffer && jtp->shortcut &&
                !strcmp(buf, jtp->shortcut)) {
                _statusline(EDIT_CURRENT_SHORTCUT);
            } else if ((jump_buffer && ShortcutTotal == 2) ||
                       (!jump_buffer && ShortcutTotal == 1)) {
                _statusline(EDIT_THE_PREV_SHORTCUT);
            } else {
                _statusline(EDIT_A_PREV_SHORTCUT);
            }

and

        if ((cp = (char *) HTList_objectAt(jtp->history,
                                           ShortcutNum)) != NULL) {
            LYstrncpy(buf, cp, sizeof(buf) - 1);
            if (jump_buffer && jtp->shortcut &&
                !strcmp(buf, jtp->shortcut)) {
                _statusline(EDIT_CURRENT_SHORTCUT);
            } else if ((jump_buffer && ShortcutTotal == 2) ||
                       (!jump_buffer && ShortcutTotal == 1)) {
                _statusline(EDIT_THE_PREV_SHORTCUT);
            } else {
                _statusline(EDIT_THE_PREV_SHORTCUT);
            }


(please find a difference!)



; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]