% (2) strip the useless parts from \mesg. This uses the fact that TeX
% allows to define macros with parameters delimited by arbitrary text.
-\def\strip#1patterns for #2, loaded.#3\endmark{\def\langs{#2}}
-\expandafter\strip\mesg\endmark
+\def\platexname{pLaTeX2e}
+\ifx\pfmtname\platexname
+ \def\langs{japanese}
+\else
+ \def\strip#1patterns for #2, loaded.#3\endmark{\def\langs{#2}}
+ \expandafter\strip\mesg\endmark
+\fi
% (3) handle the result
\message{^^J\prefix checking for available hyphenation patterns... \langs}
\TestPackage{array}
\TestPackage{babel}
\TestPackage{bibtopic}
+\TestPackage{bm}
\TestPackage{booktabs}
\TestPackage{braille}
\TestPackage{color} % this one should be there if graphics.sty is there.
\TestPackage{nicefrac}
\TestPackage{nomencl}
\TestPackage{pdfcolmk}
+\TestPackage{pdfpages}
\TestPackage{prettyref}
\TestPackage{preview}
+\TestPackage{relsize}
\TestPackage{rotating}
\TestPackage{rotfloat}
\TestPackage{setspace}
\TestPackage{soul}
-\TestPackage{subfigure}
+\TestPackage{subfig}
\TestPackage{textcomp}
\TestPackage{units}
\TestPackage{url}
\TestPackage{varioref}
\TestPackage{wrapfig}
+\TestPackage{xargs}
\TestPackage{xcolor}