texlive[44402] Master: Fixes for translation welcome message

commits+siepo at tug.org commits+siepo at tug.org
Thu May 18 17:38:14 CEST 2017


Revision: 44402
          http://tug.org/svn/texlive?view=revision&revision=44402
Author:   siepo
Date:     2017-05-18 17:38:13 +0200 (Thu, 18 May 2017)
Log Message:
-----------
Fixes for translation welcome message

Modified Paths:
--------------
    trunk/Master/install-tl
    trunk/Master/tlpkg/bin/tl-update-messages
    trunk/Master/tlpkg/installer/install-menu-text.pl
    trunk/Master/tlpkg/installer/tracked-install.pl

Modified: trunk/Master/install-tl
===================================================================
--- trunk/Master/install-tl	2017-05-18 04:05:56 UTC (rev 44401)
+++ trunk/Master/install-tl	2017-05-18 15:38:13 UTC (rev 44402)
@@ -596,8 +596,7 @@
   if ($::env_warns) { print STDERR $::env_warns; }
   unless ($ENV{"TEXLIVE_INSTALL_NO_WELCOME"}) {
     foreach my $t (@::welcome_arr) {
-      printf STDOUT sprintf (shift @$t, @$t);
-      print STDOUT "\n";
+      print STDOUT "$t\n";
     }
   }
   do_cleanup(); # sets $::LOGFILENAME if not already defined
@@ -2367,26 +2366,17 @@
 #
 sub create_welcome {
   @::welcome_arr = ();
-  push @::welcome_arr, (["\nWelcome to TeX Live!\n"]);
-  push @::welcome_arr, [ <<END_WELCOME_GENERIC,
-Documentation links: %s/index.html
-The TeX Live web site (https://tug.org/texlive/)
-contains updates and corrections.
-
-TeX Live is a joint project of the TeX user groups around the world;
-please consider supporting it by joining the group best for you.
-The list of groups is on the web at https://tug.org/usergroups.html.
-END_WELCOME_GENERIC
-    $::vars{'TEXDIR'}];
+  push @::welcome_arr, __("\nWelcome to TeX Live!\n");
+  push @::welcome_arr, __(
+    "Documentation links: %s/index.html\nThe TeX Live web site (https://tug.org/texlive/)\ncontains updates and corrections.\n\nTeX Live is a joint project of the TeX user groups around the world;\n
+please consider supporting it by joining the group best for you.\n
+The list of groups is on the web at https://tug.org/usergroups.html.",
+    $::vars{'TEXDIR'});
   if (!win32()) {
-    push @::welcome_arr, [ <<END_WELCOME_W32,
-Add %s/texmf-dist/doc/man to MANPATH.
-Add %s/texmf-dist/doc/info to INFOPATH.
-Most importantly, add %s/bin/%s
-to your PATH for current and future sessions.
-END_WELCOME_W32
-    $::vars{'TEXDIR'}, $::vars{'TEXDIR'}, $::vars{'TEXDIR'},
-    $::vars{'this_platform'}];
+    push @::welcome_arr, __(
+      "Add %s/texmf-dist/doc/man to MANPATH.\nAdd %s/texmf-dist/doc/info to INFOPATH.\nMost importantly, add %s/bin/%s\nto your PATH for current and future sessions.",
+      $::vars{'TEXDIR'}, $::vars{'TEXDIR'}, $::vars{'TEXDIR'},
+      $::vars{'this_platform'});
   }
 }
 

Modified: trunk/Master/tlpkg/bin/tl-update-messages
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-messages	2017-05-18 04:05:56 UTC (rev 44401)
+++ trunk/Master/tlpkg/bin/tl-update-messages	2017-05-18 15:38:13 UTC (rev 44402)
@@ -21,6 +21,8 @@
 	--package-version=2010			\
 	--package-name="TeX Live"		\
         -k__ -k\$__ -k%__ -k__x -k__n:1,2 -k__nx:1,2 -k__xn:1,2 -kN__ -k  \
+       install-tl \
+       tlpkg/installer/tracked-install.pl \
        tlpkg/installer/install-menu-wizard.pl \
        tlpkg/installer/install-menu-perltk.pl \
        texmf-dist/scripts/texlive/tlmgrgui.pl \

Modified: trunk/Master/tlpkg/installer/install-menu-text.pl
===================================================================
--- trunk/Master/tlpkg/installer/install-menu-text.pl	2017-05-18 04:05:56 UTC (rev 44401)
+++ trunk/Master/tlpkg/installer/install-menu-text.pl	2017-05-18 15:38:13 UTC (rev 44402)
@@ -52,6 +52,11 @@
   return split(//, $string);
 }
 
+sub __ {
+  my $s = shift;
+  return sprintf($s, @_);
+}
+
 sub button { # for main menu: 1 char
   my $val=shift;
   my $vals=shift; # array ref to descriptions of possible values

Modified: trunk/Master/tlpkg/installer/tracked-install.pl
===================================================================
--- trunk/Master/tlpkg/installer/tracked-install.pl	2017-05-18 04:05:56 UTC (rev 44401)
+++ trunk/Master/tlpkg/installer/tracked-install.pl	2017-05-18 15:38:13 UTC (rev 44402)
@@ -65,8 +65,8 @@
   $::progressw->tagConfigure('centered', -justify => 'center');
   # basic welcome message
   foreach my $t (@::welcome_arr) {
-    my $s = shift @$t;
-    $::progressw->insert("end", __($s, @$t)."\n", 'centered');
+    #my $s = shift @$t;
+    $::progressw->insert("end", "$t\n", 'centered');
   }
   $::progressw->insert("end", "\n");
   # additional info



More information about the tex-live-commits mailing list