[Tex/LaTex] What’s wrong with language vietnam in babel package

babel

I came back to a file from several years ago which used to compile very well back then. When I compiled it now I got plenty of errors saying that I haven't defined the language vietnam yet (package Babel error). These errors correspond to \vn in the file which stands for \fontencoding{T5}\selectfont\selectlanguage{vietnam}. Here is a MWE of my file:

\documentclass[paper=a5,fontsize=10pt,twoside,twocolumn,pagesize,DIV15,headsepline,titlepage,openright]{scrbook}
\usepackage{scrpage2}
\usepackage{cmap}
\usepackage[utf8x]{inputenc}
\usepackage[vietnam,polish,english,ngerman]{babel}
\usepackage[T5,T1]{fontenc}
\usepackage{longtable}
\usepackage{lmodern}

\newcommand*\de{\fontencoding{T1}\selectfont\selectlanguage{ngerman}}
\newcommand*\en{\fontencoding{T1}\selectfont\selectlanguage{english}}
\newcommand*\pl{\fontencoding{T1}\selectfont\selectlanguage{polish}}
\newcommand*\vn{\fontencoding{T5}\selectfont\selectlanguage{vietnam}}

\newcommand{\textfsf}{\sffamily\bfseries\selectfont}
\newcommand{\textksf}{\sffamily\itshape\small\selectfont}

\makeatletter
\g@addto@macro\description{\raggedright}
\makeatother

\setlength{\parindent}{0pt}
\setlength{\parskip}{0.8ex plus 0.4ex minus 0.2ex}
\flushbottom

\clearscrheadings
\ihead{}
\chead{}
\ohead{\rightmark}
\ifoot{}
\cfoot{}
\ofoot{\pagemark}
\pagestyle{scrheadings}

\pdfinfo{
/Title (xxx.pdf)
/Creator (xxx)
/Producer (xxx)
/Author (xxx)
/CreationDate (D:20100101000000)
/ModDate (D:20100101000000)
/Subject (xxx)
/Keywords (xxx)
}

\begin{document}
\frontmatter
\title{\pl ZÓŁTA KROWA\\ \vn CHÀO MỪNG}
\subtitle{\pl NA ŁĄCE\\ \vn CÁC BẠN}
\author{\pl dzień\\ \vn tốt}
\date{}
\publishers{\pl Wydawcy}
\maketitle
\mainmatter
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\backmatter
\end{document}

Well, this worked before… I've been trying for hours to find a solution for this and I can't find anything. I've been out of LaTeX for years and that must have been a mistake…

Can anyone help me to solve this problem? I tried this solution here with an empty babel-vietnam.sty file. But it works only with a simple file like the MWE above. When it comes to complex files, the error remains. I am working with MiKTeX 2.9 & TeXnicCenter. I uninstalled them and installed again. It brought nothing. All packages are updated. I downloaded babel-vietnamese which comes as separate package. I changed vietnam to vietnamese which on the other hand brings every time TeX capacity exceeded, sorry [save size=50000] (whatever this means). I just can't get any forward with this. Any help highly appreciated!

Best Answer

Using vietnamese instead of vietnam works fine (gives no errors, I have no idea if the script is correct) for me (I also removed utf8x)

\documentclass[paper=a5,fontsize=10pt,twoside,twocolumn,pagesize,DIV15,headsepline,titlepage,openright]{scrbook}
\usepackage{scrpage2}
\usepackage[vietnamese,polish,english,ngerman]{babel}
\usepackage[T5,T1]{fontenc}
\usepackage{longtable}
\usepackage{lmodern}

\newcommand*\de{\fontencoding{T1}\selectfont\selectlanguage{ngerman}}
\newcommand*\en{\fontencoding{T1}\selectfont\selectlanguage{english}}
\newcommand*\pl{\fontencoding{T1}\selectfont\selectlanguage{polish}}
\newcommand*\vn{\fontencoding{T5}\selectfont\selectlanguage{vietnamese}}

\newcommand{\textfsf}{\sffamily\bfseries\selectfont}
\newcommand{\textksf}{\sffamily\itshape\small\selectfont}

\makeatletter
\g@addto@macro\description{\raggedright}
\makeatother

\setlength{\parindent}{0pt}
\setlength{\parskip}{0.8ex plus 0.4ex minus 0.2ex}
\flushbottom

\clearscrheadings
\ihead{}
\chead{}
\ohead{\rightmark}
\ifoot{}
\cfoot{}
\ofoot{\pagemark}
\pagestyle{scrheadings}

\pdfinfo{
/Title (xxx.pdf)
/Creator (xxx)
/Producer (xxx)
/Author (xxx)
/CreationDate (D:20100101000000)
/ModDate (D:20100101000000)
/Subject (xxx)
/Keywords (xxx)
}

\begin{document}
\frontmatter
\title{\pl ZÓŁTA KROWA\\ \vn CHÀO MỪNG}
\subtitle{\pl NA ŁĄCE\\ \vn CÁC BẠN}
\author{\pl dzień\\ \vn tốt}
\date{}
\publishers{\pl Wydawcy}
\maketitle
\mainmatter
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\pl tu będzie trochę tekstu \vn vẫn có bằng tiếng Việt \\
\backmatter
\end{document}
Related Question