patch 9.1.0932: new Italian tutor not installed
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>
diff --git a/Filelist b/Filelist
index 221ad79..0a1d993 100644
--- a/Filelist
+++ b/Filelist
@@ -769,6 +769,8 @@
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 \
diff --git a/runtime/doc/pi_tutor.txt b/runtime/doc/pi_tutor.txt
index 618fe74..f4f86e8 100644
--- a/runtime/doc/pi_tutor.txt
+++ b/runtime/doc/pi_tutor.txt
@@ -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 @@
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
<
diff --git a/runtime/doc/usr_01.txt b/runtime/doc/usr_01.txt
index 8a513e8..70a3f9b 100644
--- a/runtime/doc/usr_01.txt
+++ b/runtime/doc/usr_01.txt
@@ -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 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:
>
diff --git a/src/Makefile b/src/Makefile
index 7bb0a7e..f3adaec 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2346,7 +2346,7 @@
$(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 @@
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 @@
$(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 @@
-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)
diff --git a/src/version.c b/src/version.c
index 82d353f..307848f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 932,
+/**/
931,
/**/
930,