From d7afed3753242ace4190f1d7500209b67045d7de Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 6 May 2007 13:26:41 +0000 Subject: updated for version 7.1a --- runtime/tutor/tutor.vim | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'runtime/tutor/tutor.vim') diff --git a/runtime/tutor/tutor.vim b/runtime/tutor/tutor.vim index 7c3ea50df..3dda1ea0e 100644 --- a/runtime/tutor/tutor.vim +++ b/runtime/tutor/tutor.vim @@ -1,6 +1,6 @@ " Vim tutor support file " Author: Eduardo F. Amatria -" Last Change: 2006 Sep 09 +" Last Change: 2007 Mar 01 " This small source file is used for detecting if a translation of the " tutor file exist, i.e., a tutor.xx file, where xx is the language. @@ -35,6 +35,8 @@ else let s:ext = ".pl" elseif s:lang =~ "Slovak" let s:ext = ".sk" + elseif s:lang =~ "Czech" + let s:ext = ".cs" elseif s:lang =~ "Dutch" let s:ext = ".nl" else @@ -105,9 +107,22 @@ if s:ext =~? '\.gr\|\.el' endif endif -" The Slovak tutor is available in two encodings, guess which one to use -if s:ext =~? '\.sk' && &enc =~ 1250 - let s:ext = ".sk.cp1250" +" The Slovak tutor is available in three encodings, guess which one to use +if s:ext =~? '\.sk' + if &enc == 'utf-8' + let s:ext = ".sk.utf-8" + elseif &enc =~ 1250 + let s:ext = ".sk.cp1250" + endif +endif + +" The Czech tutor is available in three encodings, guess which one to use +if s:ext =~? '\.cs' + if &enc == 'utf-8' + let s:ext = ".cs.utf-8" + elseif &enc =~ 1250 + let s:ext = ".cs.cp1250" + endif endif " The Russian tutor is available in three encodings, guess which one to use. @@ -121,6 +136,15 @@ if s:ext =~? '\.ru' endif endif +" The Hungarian tutor is available in two encodings, guess which one to use. +if s:ext =~? '\.hu' + if &enc == 'utf-8' + let s:ext = '.hu.utf-8' + elseif &enc =~ 'iso-8859-2' + let s:ext = '.hu' + endif +endif + " Somehow ".ge" (Germany) is sometimes used for ".de" (Deutsch). if s:ext =~? '\.ge' let s:ext = ".de" -- cgit v1.2.1