]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0932: new Italian tutor not installed v9.1.0932
authorChristian Brabandt <cb@256bit.org>
Mon, 16 Dec 2024 19:11:04 +0000 (20:11 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 16 Dec 2024 19:38:31 +0000 (20:38 +0100)
Problem:  new Italian tutor not installed
Solution: add Makefile rule, include it into the Filelist
          ("Philip H." <47042125+pheiduck@users.noreply.github.com>),
          update the tutors help file

closes: #16215

Co-authored-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Filelist
runtime/doc/pi_tutor.txt
runtime/doc/usr_01.txt
src/Makefile
src/version.c

index 221ad79f44dc83bceca035ab1273ab4fb1e206b9..0a1d9936a26b7ebef4ffc4e2763a8916f5e745ff 100644 (file)
--- a/Filelist
+++ b/Filelist
@@ -769,6 +769,8 @@ RT_ALL =    \
                runtime/tutor/tutor1 \
                runtime/tutor/en/vim-01-beginner.tutor \
                runtime/tutor/en/vim-01-beginner.tutor.json \
+               runtime/tutor/it/vim-01-beginner.tutor \
+               runtime/tutor/it/vim-01-beginner.tutor.json \
                runtime/tutor/tutor.tutor \
                runtime/tutor/tutor.tutor.json \
                runtime/tutor/tutor.vim \
index 618fe745ac4aa4612c9d75dc8f155d24949d85d3..f4f86e87bd7d1cb06c0222ac6013386c36978f45 100644 (file)
@@ -1,4 +1,4 @@
-*pi_tutor.txt*    For Vim version 9.1.  Last change: 2024 Nov 09
+*pi_tutor.txt*    For Vim version 9.1.  Last change: 2024 Dec 16
 
 INTERACTIVE TUTORIALS FOR VIM                   *vim-tutor-mode*
 
@@ -16,21 +16,28 @@ by double-clicking them.
 1.1 Commands
 ------------
                                                                      *:Tutor*
-:Tutor {tutorial}      Opens a tutorial.  Command-line completion for
-                       {tutorial} is provided, the candidates are a list of
-                       '.tutor' files found in the 'tutor/'  folder in
-                       the 'runtimepath'.  Tutorials prefixed with 'vim-'
+:Tutor [tutorial]      Opens a tutorial.  Command-line completion for
+                       [tutorial] is provided, the candidates are a list of
+                       ".tutor" files found in the "tutor/<lang>/"  folder in
+                       the 'runtimepath'.  Tutorials prefixed with "vim-"
                        will always be shown first.
 
-                       If no {tutorial} is provided, the command starts the
-                       'vim-01-beginner' tutorial, which is equivalent to
-                       Vim's `vimtutor`.
+                       If no [tutorial] is provided, the command starts the
+                       "vim-01-beginner" tutorial, which is equivalent to
+                       Vim's `vimtutor`, chapter 1.
 
+                       Uses the translated tutorial for the current message
+                       language if possible (|v:lang|), e.g. to open the
+                       chapter 1 of the Italian tutor, use: >
+
+                       :lang it_IT.utf-8
+                       :Tutor
+<
 =============================================================================
 2. Creating tutorials                                        *vim-tutor-create*
 
 Writing vim-tutor-mode tutorials is easy.  For an overview of the format used,
-please consult the 'tutor.tutor' file: >
+please consult the "tutor.tutor" file: >
 
     :Tutor tutor
 <
index 8a513e8bb23218d398c63343e53a334b04283c24..70a3f9bcbb90bb73247517d75efef7c4a87313d9 100644 (file)
@@ -1,4 +1,4 @@
-*usr_01.txt*   For Vim version 9.1.  Last change: 2024 Nov 03
+*usr_01.txt*   For Vim version 9.1.  Last change: 2024 Dec 16
 
                     VIM USER MANUAL - by Bram Moolenaar
 
@@ -110,8 +110,8 @@ For more info see |vimrc| and |compatible-default|.
 For the interactive tutor, see |vim-tutor-mode|
 
 Instead of reading the text (boring!) you can use the vimtutor to learn your
-first Vim commands.  This is a 30-minute tutorial that teaches the most basic
-Vim functionality hands-on.
+first Vim commands.  This is a 30-minute tutorial provided in 2 chapters, that
+teaches the most basic Vim functionality hands-on.
 
 On Unix, if Vim has been properly installed, you can start it from the shell:
 >
index 7bb0a7ebd6ed72ceb9e932dffce86c28dcd0ed7d..f3adaeca61864dea220b9c00096eb3dbf362360d 100644 (file)
@@ -2346,7 +2346,7 @@ installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(VIMTARGET) $(DEST_RT) \
                $(DEST_AUTO) $(DEST_AUTO)/dist $(DEST_AUTO)/xml \
                $(DEST_AUTO)/rust $(DEST_AUTO)/cargo \
                $(DEST_IMPORT) $(DEST_IMPORT)/dist \
-               $(DEST_PLUG) $(DEST_TUTOR) $(DEST_TUTOR)/en $(DEST_SPELL) $(DEST_COMP)
+               $(DEST_PLUG) $(DEST_TUTOR) $(DEST_TUTOR)/en $(DEST_TUTOR)/it $(DEST_SPELL) $(DEST_COMP)
        -$(SHELL) ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
 # Generate the help tags with ":helptags" to handle all languages.
 # Move the distributed tags file aside and restore it, to avoid it being
@@ -2473,10 +2473,11 @@ installgtutorbin: $(DEST_BIN)
 
 installtutor: $(DEST_RT) $(DEST_TUTOR)
        -$(INSTALL_DATA) $(TUTORSOURCE)/README* $(TUTORSOURCE)/tutor* $(DEST_TUTOR)
-       -$(INSTALL_DATA) $(TUTORSOURCE)/en/* $(DEST_TUTOR)/en/
+       -$(INSTALL_DATA) $(TUTORSOURCE)/en/* $(DEST_TUTOR)/en/ $(DEST_TUTOR)/it/* $(DEST_TUTOR)/it/
        -rm -f $(DEST_TUTOR)/*.info
        chmod $(HELPMOD) $(DEST_TUTOR)/*
        chmod $(DIRMOD) $(DEST_TUTOR)/en
+       chmod $(DIRMOD) $(DEST_TUTOR)/it
 
 # Install the spell files, if they exist.  This assumes at least the English
 # spell file is there.
@@ -2674,6 +2675,7 @@ $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
                $(DEST_IND) $(DEST_FTP) \
                $(DEST_LANG) $(DEST_KMAP) $(DEST_COMP) $(DEST_MACRO) \
                $(DEST_PACK) $(DEST_TOOLS) $(DEST_TUTOR) $(DEST_TUTOR)/en \
+               $(DEST_TUTOR)/it \
                $(DEST_SPELL) \
                $(DEST_AUTO) $(DEST_AUTO)/dist $(DEST_AUTO)/xml \
                $(DEST_AUTO)/cargo $(DEST_AUTO)/rust \
@@ -2858,6 +2860,7 @@ uninstall_runtime:
        -rm -rf $(DEST_MACRO)
        -rm -rf $(DEST_PACK)
        -rm -rf $(DEST_TUTOR)/en
+       -rm -rf $(DEST_TUTOR)/it
        -rm -rf $(DEST_TUTOR)
        -rm -rf $(DEST_SPELL)
        -rm -rf $(DEST_TOOLS)
index 82d353f1d46024f6375203ecd99628bcd90e7c97..307848f63e020d8e009523eaa329c3558bee1375 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    932,
 /**/
     931,
 /**/