lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev internationalization


From: Nelson Henry Eric
Subject: lynx-dev internationalization
Date: Sat, 7 Nov 1998 14:50:36 +0900 (JST)

Okay it works! :) :)  Time to roll (up your sleeves, that is)!

Absolutely out of time, so very briefly:

1) Download, build and install the "gettext" package
2) Apply the appended patch to Jim's -intl version.  Further edit
   out all references to builds in /intl and /po in the makefile.in's.
   (You've already done it in 1) or will do it in 2) -- it'll save
   you hours of time NOT using the --with-included-gettext option.)
3) Make a list of all *.[ch] files in the source and run xgettext
   to make an up-to-date lynx.pot file.  Do your translations,
   run msgfmt to make the lynx.mo file, and put that in your
   standard LC_MESSAGES directory.
4) Run autoconf with --datadir= (full path up to "locale", defaults
   to /usr/local/share) and use the LIBS environment variable to
   set -lintl.

And you'll have a Lynx that speaks your language.  Speak Lark?  No, Lynx!

__Henry

*** lynx2-8-1-rel2-intl/makefile.in.orig        Sat Nov  7 11:37:49 1998
--- lynx2-8-1-rel2-intl/makefile.in     Sat Nov  7 12:33:09 1998
***************
*** 49,57 ****
  helpdir= @libdir@/lynx_help
  
  ## Where your locale data is
! # datadir = @datadir@
! datadir = /usr/local/share
! localedir = $(datadir)/locale
  
  ##set the relative location of the WWW library Implementation directory,
  ##from this directory
--- 49,56 ----
  helpdir= @libdir@/lynx_help
  
  ## Where your locale data is
! datadir = @datadir@
! localedir = @datadir@/locale
  
  ##set the relative location of the WWW library Implementation directory,
  ##from this directory
***************
*** 169,176 ****
                LY_CFLAGS="$(CFLAGS)" \
                CPPFLAGS="$(CPPFLAGS)" \
                LYFLAGS="$(SITE_LYDEFS)"
-       cd intl && $(MAKE) CC="$(CC)"
-       cd po && $(MAKE) CC="$(CC)"
        cd src && $(MAKE) all CC="$(CC)" \
                CFLAGS="$(CFLAGS)" \
                CPPFLAGS="$(CPPFLAGS)" \
--- 168,173 ----
*** lynx2-8-1-rel2-intl/src/makefile.in.orig    Sat Nov  7 11:36:39 1998
--- lynx2-8-1-rel2-intl/src/makefile.in Sat Nov  7 12:54:08 1998
***************
*** 9,17 ****
  exec_prefix   = @exec_prefix@
  top_srcdir    = @top_srcdir@
  srcdir                = @srcdir@
! # localedir   = @localedir@
! # this isn't passing from above:
! localedir     = /usr/local/share/locale
  VPATH         = $(srcdir)
  
  # Symbols which the configure script can set in each makefile:
--- 9,15 ----
  exec_prefix   = @exec_prefix@
  top_srcdir    = @top_srcdir@
  srcdir                = @srcdir@
! localedir     = @datadir@/locale
  VPATH         = $(srcdir)
  
  # Symbols which the configure script can set in each makefile:
*** lynx2-8-1-rel2-intl/src/HTFWriter.c.orig    Fri Nov  6 10:39:32 1998
--- lynx2-8-1-rel2-intl/src/HTFWriter.c Fri Nov  6 10:42:53 1998
***************
*** 491,497 ****
            return(NULL);
        }
        if (no_exec) {
!           eTAlert(EXECUTION_DISABLED);
            return HTPlainPresent(pres, anchor, sink);
        }
        if (!local_exec)
--- 491,497 ----
            return(NULL);
        }
        if (no_exec) {
!           HTAlert(gettext("Execution is disabled."));
            return HTPlainPresent(pres, anchor, sink);
        }
        if (!local_exec)
*** lynx2-8-1-rel2-intl/src/LYOptions.c.orig    Fri Nov  6 13:42:56 1998
--- lynx2-8-1-rel2-intl/src/LYOptions.c Fri Nov  6 13:58:53 1998
***************
*** 2513,2523 ****
                        window_offset = 0;
                        cur_choice = 0;
                        if (disabled) {
!                           _statusline(gettext("UNMODIFIABLE choice list.  
! Use return or arrow keys to review or leave."));
                        } else {
!                           _statusline(gettext("(Choice list) Hit return an
! d use arrow keys and return to select option."));
                        }
                        goto redraw;
                    }
--- 2513,2521 ----
                        window_offset = 0;
                        cur_choice = 0;
                        if (disabled) {
!                           _statusline(gettext("UNMODIFIABLE choice list. Use 
return or arrow keys to review or leave."));
                        } else {
!                           _statusline(gettext("(Choice list) Hit return and 
use arrow keys and return to select option."));
                        }
                        goto redraw;
                    }
***************
*** 2530,2540 ****
                        if (window_offset >= ((num_choices - length) + 1)) {
                            HTUserMsg(gettext("You are already at the end of 
this choice list."));
                            if (disabled) {
!                               _statusline(gettext("UNMODIFIABLE choice list.
! Use return or arrow keys to review or leave."));
                            } else {
!                               _statusline(gettext("(Choice list) Hit return an
! d use arrow keys and return to select option."));
                            }
                            break;
                        }
--- 2528,2536 ----
                        if (window_offset >= ((num_choices - length) + 1)) {
                            HTUserMsg(gettext("You are already at the end of 
this choice list."));
                            if (disabled) {
!                               _statusline(gettext("UNMODIFIABLE choice list.  
Use return or arrow keys to review or leave."));
                            } else {
!                               _statusline(gettext("(Choice list) Hit return 
and use arrow keys and return to select option."));
                            }
                            break;
                        }
***************
*** 2547,2554 ****
                        if (disabled) {
                            _statusline(gettext("UNMODIFIABLE choice list.  Use 
return or arrow keys to review or leave."));
                        } else {
!                           _statusline(gettext("(Choice list) Hit return an
! d use arrow keys and return to select option."));
                        }
                        goto redraw;
                    }
--- 2543,2549 ----
                        if (disabled) {
                            _statusline(gettext("UNMODIFIABLE choice list.  Use 
return or arrow keys to review or leave."));
                        } else {
!                           _statusline(gettext("(Choice list) Hit return and 
use arrow keys and return to select option."));
                        }
                        goto redraw;
                    }
***************
*** 2560,2580 ****
                        sprintf(buffer, gettext("You are already at page %d of 
this choice list."), number);
                        HTUserMsg(buffer);
                        if (disabled) {
!                           _statusline(gettext("UNMODIFIABLE choice list.  Use 
! return or arrow keys to review or leave."));
                        } else {
!                           _statusline(gettext("(Choice list) Hit return an
! d use arrow keys and return to select option."));
                        }
                        break;
                    }
                    cur_choice = window_offset = ((number - 1) * length);
                    if (disabled) {
!                       _statusline(gettext("UNMODIFIABLE choice list.  Use
! return or arrow keys to review or leave."));
                    } else {
!                       _statusline(gettext("(Choice list) Hit return an
! d use arrow keys and return to select option."));
                    }
                    goto redraw;
  
--- 2555,2571 ----
                        sprintf(buffer, gettext("You are already at page %d of 
this choice list."), number);
                        HTUserMsg(buffer);
                        if (disabled) {
!                           _statusline(gettext("UNMODIFIABLE choice list.  Use 
return or arrow keys to review or leave."));
                        } else {
!                           _statusline(gettext("(Choice list) Hit return and 
use arrow keys and return to select option."));
                        }
                        break;
                    }
                    cur_choice = window_offset = ((number - 1) * length);
                    if (disabled) {
!                       _statusline(gettext("UNMODIFIABLE choice list.  Use 
return or arrow keys to review or leave."));
                    } else {
!                       _statusline(gettext("(Choice list) Hit return and use 
arrow keys and return to select option."));
                    }
                    goto redraw;
  
***************
*** 2660,2667 ****
                if (disabled) {
                    _statusline(gettext("UNMODIFIABLE choice list.  Use return 
or arrow keys to review or leave."));
                } else {
!                   _statusline(gettext("(Choice list) Hit return an
! d use arrow keys and return to select option."));
                }
                break;
  
--- 2651,2657 ----
                if (disabled) {
                    _statusline(gettext("UNMODIFIABLE choice list.  Use return 
or arrow keys to review or leave."));
                } else {
!                   _statusline(gettext("(Choice list) Hit return and use arrow 
keys and return to select option."));
                }
                break;
  
*** lynx2-8-1-rel2-intl/src/LYMainLoop.c.orig   Mon Nov  2 14:13:41 1998
--- lynx2-8-1-rel2-intl/src/LYMainLoop.c        Sat Nov  7 13:58:48 1998
***************
*** 1776,1782 ****
                    LYinternal_flag = TRUE;
                    newdoc.internal_link = TRUE;
                    if (0==strcmp((curdoc.title ? curdoc.title : ""),
!                                     LIST_PAGE_TITLE) &&
                        0==strcmp(HTLoadedDocumentURL(), LYlist_temp_url())) {
                        if (!curdoc.post_data ||
                            /*
--- 1776,1782 ----
                    LYinternal_flag = TRUE;
                    newdoc.internal_link = TRUE;
                    if (0==strcmp((curdoc.title ? curdoc.title : ""),
!                                     gettext("List Page")) &&
                        0==strcmp(HTLoadedDocumentURL(), LYlist_temp_url())) {
                        if (!curdoc.post_data ||
                            /*
***************
*** 2982,2988 ****
                         */
                        if (0==strcmp(curdoc.address, LYlist_temp_url()) &&
                            0==strcmp((curdoc.title ? curdoc.title : ""),
!                                     LIST_PAGE_TITLE)) {
                            if (!curdoc.post_data ||
                                /*
                                 *  Normal case - List Page is not associated
--- 2982,2988 ----
                         */
                        if (0==strcmp(curdoc.address, LYlist_temp_url()) &&
                            0==strcmp((curdoc.title ? curdoc.title : ""),
!                                     gettext("List Page"))) {
                            if (!curdoc.post_data ||
                                /*
                                 *  Normal case - List Page is not associated
***************
*** 4614,4637 ****
  
            if (strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("Lynx History Page")) &&
!               strcmp((curdoc.title ? curdoc.title : gettext("")),
                       gettext("Information about the current document")) &&
!               strcmp((curdoc.title ? curdoc.title : gettext("")),
                       gettext("Lynx Printing Options")) &&
  #ifdef DIRED_SUPPORT
                strcmp(curdoc.address, LYDiredFileURL) &&
!               strcmp((curdoc.title ? curdoc.title : gettext("")),
                       gettext("File Management Options")) &&
                strcmp(curdoc.address, LYPermitFileURL) &&
!               strcmp((curdoc.title ? curdoc.title : gettext("")),
                       gettext("File Permission Options")) &&
                strcmp(curdoc.address, LYUploadFileURL) &&
                strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("Lynx Upload Options")) &&
  #endif /* DIRED_SUPPORT */
!               strcmp((curdoc.title ? curdoc.title : gettext("")),
                       gettext("Lynx Download Options")) &&
!               strcmp((curdoc.title ? curdoc.title : gettext("")),
                       gettext("Lynx Cookie Jar")) &&
                ((nlinks <= 0) ||
                 (links[curdoc.link].lname != NULL &&
--- 4614,4637 ----
  
            if (strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("Lynx History Page")) &&
!               strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("Information about the current document")) &&
!               strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("Lynx Printing Options")) &&
  #ifdef DIRED_SUPPORT
                strcmp(curdoc.address, LYDiredFileURL) &&
!               strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("File Management Options")) &&
                strcmp(curdoc.address, LYPermitFileURL) &&
!               strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("File Permission Options")) &&
                strcmp(curdoc.address, LYUploadFileURL) &&
                strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("Lynx Upload Options")) &&
  #endif /* DIRED_SUPPORT */
!               strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("Lynx Download Options")) &&
!               strcmp((curdoc.title ? curdoc.title : ""),
                       gettext("Lynx Cookie Jar")) &&
                ((nlinks <= 0) ||
                 (links[curdoc.link].lname != NULL &&

reply via email to

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