--- /dev/null
+\version "2.13.20"
+
+\header {
+doctitlees = "If you see this 'translated' doctitle, language detection work"
+
+texidoces = "If you see this 'translated' texidoc, language detection work"
+
+ texidoc = "Original texidoc (you should not see this!)"
+ doctitle = "Original doctitle (you should not see this!)"
+}
+
+\relative c'' {
+ c1
+}
+
--- /dev/null
+The texidoc of the following snippet should be "translated":
+@lilypondfile[printfilename,texidoc,doctitle]{include3.ily}
--- /dev/null
+\input texinfo @c -*- coding: utf-8; mode: texinfo; documentlanguage: es -*-
+@setfilename texinfo-language-detection.info
+@settitle Texinfo language detection
+@documentencoding UTF-8
+@documentlanguage es
+@afourpaper
+
+@node Top
+@top Texinfo language detection
+
+@include texinfo-include-language-detection-included.itely
+
+@bye
--- /dev/null
+\input texinfo @c -*- coding: utf-8; mode: texinfo; documentlanguage: es -*-
+@setfilename texinfo-language-detection.info
+@settitle Texinfo language detection
+@documentencoding UTF-8
+@documentlanguage es
+@afourpaper
+
+@node Top
+@top Texinfo language detection
+
+The texidoc of the following snippet should be "translated":
+@lilypondfile[printfilename,texidoc,doctitle]{include3.ily}
+
+
+@bye