texlive[49737] Build/source/texk/web2c: TeX Live banner lines come

commits+ascherer at tug.org commits+ascherer at tug.org
Thu Jan 17 21:35:31 CET 2019


Revision: 49737
          http://tug.org/svn/texlive?view=revision&revision=49737
Author:   ascherer
Date:     2019-01-17 21:35:29 +0100 (Thu, 17 Jan 2019)
Log Message:
-----------
TeX Live banner lines come from cweb-tl.pot.

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/ctangleboot.cin
    trunk/Build/source/texk/web2c/cwebboot.cin
    trunk/Build/source/texk/web2c/cwebdir/ChangeLog
    trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch
    trunk/Build/source/texk/web2c/cwebdir/ctang-w2c.ch
    trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch
    trunk/Build/source/texk/web2c/cwebdir/cweav-w2c.ch

Modified: trunk/Build/source/texk/web2c/ctangleboot.cin
===================================================================
--- trunk/Build/source/texk/web2c/ctangleboot.cin	2019-01-17 01:23:38 UTC (rev 49736)
+++ trunk/Build/source/texk/web2c/ctangleboot.cin	2019-01-17 20:35:29 UTC (rev 49737)
@@ -33,7 +33,7 @@
 /*:62*/
 #line 65 "cwebdir/ctangle.w"
 
-#define banner _("This is CTANGLE, Version 3.64")  \
+#define banner "This is CTANGLE, Version 3.64" \
  \
 
 #define max_bytes 1000000 \

Modified: trunk/Build/source/texk/web2c/cwebboot.cin
===================================================================
--- trunk/Build/source/texk/web2c/cwebboot.cin	2019-01-17 01:23:38 UTC (rev 49736)
+++ trunk/Build/source/texk/web2c/cwebboot.cin	2019-01-17 20:35:29 UTC (rev 49737)
@@ -59,6 +59,9 @@
 #define CWEB
 #include "help.h"
 
+
+
+
 /*:90*/
 #line 59 "cwebdir/common.w"
 
@@ -1641,7 +1644,7 @@
 assert(cb_banner[0]!='\0');
 textdomain("cweb-tl");
 
-printf("%s%s\n",cb_banner,versionstring);
+printf("%s%s\n",_(cb_banner),versionstring);
 textdomain("cweb");
 
 }

Modified: trunk/Build/source/texk/web2c/cwebdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2019-01-17 01:23:38 UTC (rev 49736)
+++ trunk/Build/source/texk/web2c/cwebdir/ChangeLog	2019-01-17 20:35:29 UTC (rev 49737)
@@ -1,3 +1,9 @@
+2019-01-17  Andreas Scherer  <https://ascherer.github.io>
+
+	* comm-w2c.ch, comm-w2c.h,
+	* ctang-w2c.ch, ctwill-w2c.ch, cweav-w2c.ch:
+	Translate 'banner' if HAVE_GETTEXT set and cweb-tl.mo available.
+
 2019-01-16  Andreas Scherer  <https://ascherer.github.io>
 
 	* comm-w2c.ch: Correct usage of 'kpse_var_expand';

Modified: trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch	2019-01-17 01:23:38 UTC (rev 49736)
+++ trunk/Build/source/texk/web2c/cwebdir/comm-w2c.ch	2019-01-17 20:35:29 UTC (rev 49737)
@@ -1246,7 +1246,7 @@
 texmf_locale = kpse_var_expand (TEXMF_LOCALE);
 bindtextdomain("cweb",
   bindtextdomain("cweb-tl",
-    bindtextdomain("web2c-help",
+    bindtextdomain("web2c-help", @|
       strcmp(texmf_locale, TEXMF_LOCALE) ?
         texmf_locale : "/usr/share/locale")));
 free(texmf_locale);
@@ -1283,16 +1283,16 @@
 #define CWEB
 #include "help.h"
 
-@ The simple file searching is replaced by the ``path searching'' mechanism
-that the \Kpathsea/ library provides.
+ at q The simple file searching is replaced by the ``path searching'' mechanism @>
+ at q that the \Kpathsea/ library provides.@>
 
-We set |kpse_program_name| to `\.{cweb}'.  This means if the variable
+@ We set |kpse_program_name| to `\.{cweb}'.  This means if the variable
 \.{CWEBINPUTS.cweb} is present in \.{texmf.cnf} (or \.{CWEBINPUTS\_cweb}
 in the environment) its value will be used as the search path for
 filenames.  This allows different flavors of \.{CWEB} to have
 different search paths.
 
-\&{FIXME}: Not sure this is the best way to go about this.
+ at q \&{FIXME}: Not sure this is the best way to go about this. @>
 
 @<Set up |PROGNAME| feature and initialize the search path mechanism@>=
 kpse_set_program_name(argv[0], "cweb");
@@ -1342,7 +1342,7 @@
   assert(cb_banner[0]!='\0');
   textdomain("cweb-tl");
 @.cweb-tl.mo@>
-  printf("%s%s\n", cb_banner, versionstring);
+  printf("%s%s\n", _(cb_banner), versionstring);
   textdomain("cweb");
 @.cweb.mo@>
 }

Modified: trunk/Build/source/texk/web2c/cwebdir/ctang-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ctang-w2c.ch	2019-01-17 01:23:38 UTC (rev 49736)
+++ trunk/Build/source/texk/web2c/cwebdir/ctang-w2c.ch	2019-01-17 20:35:29 UTC (rev 49737)
@@ -35,7 +35,7 @@
 @x
 @d banner "This is CTANGLE (Version 3.64)\n"
 @y
- at d banner _("This is CTANGLE, Version 3.64")
+ at d banner "This is CTANGLE, Version 3.64"
   /* will be extended by the \TeX~Live |versionstring| */
 @z
 

Modified: trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch	2019-01-17 01:23:38 UTC (rev 49736)
+++ trunk/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch	2019-01-17 20:35:29 UTC (rev 49737)
@@ -93,7 +93,7 @@
 The ``banner line'' defined here should be changed whenever \.{CTWILL} is
 modified. The version number parallels the corresponding version of \.{CWEAVE}.
 
- at d banner _("This is CTWILL, Version 3.64")
+ at d banner "This is CTWILL, Version 3.64"
   /* will be extended by the \TeX~Live |versionstring| */
 @z
 

Modified: trunk/Build/source/texk/web2c/cwebdir/cweav-w2c.ch
===================================================================
--- trunk/Build/source/texk/web2c/cwebdir/cweav-w2c.ch	2019-01-17 01:23:38 UTC (rev 49736)
+++ trunk/Build/source/texk/web2c/cwebdir/cweav-w2c.ch	2019-01-17 20:35:29 UTC (rev 49737)
@@ -35,7 +35,7 @@
 @x
 @d banner "This is CWEAVE (Version 3.64)\n"
 @y
- at d banner _("This is CWEAVE, Version 3.64")
+ at d banner "This is CWEAVE, Version 3.64"
   /* will be extended by the \TeX~Live |versionstring| */
 @z
 



More information about the tex-live-commits mailing list