[Tex/LaTex] Language (hyphenation patterns) not available

languagesmiktexpackages

I'm using MiKTeX 2.9 on windows7.
When compiling with pdflatex, I get the following warning from Babel (which is discussed elsewhere

No hyphenation patterns were loaded for the language):

Package babel Warning: No hyphenation patterns were loaded for
(babel)                the language `German'
(babel)                I will use the patterns loaded for \language=0 instead.

The suggestions elsewhere (and in the MiKTeX manual) say to use MiKTeX Options (mo.exe, I assume), to update the language.

When I use mo.exe, I navigate to the language tab and click on the language I want.

The response I get is: "This language is not yet available"

Warning screenshot

Screenshot added by Infowanna

Above is a screenshot from my system. Languages which are not present do not have check marks in their corresponding buttons. When I click on a button – any button, I get the message box.

I assume that the screenshot below (from Speravir) shows how this dialog normally functions:

Warning screenshot
Screenshot added by Speravir

How do I make a language available?

First, I attempted updating my "language.dat" file. But then, I noticed this gets updated (silently) whenever I update the fndb via mo.exe. The update simply overwrites any edits with an empty file.
So, editing the file is pointless (and something I know I shouldn't be doing since it's under the texmf directory tree).

Second, following Ulrike's suggestion in a comment below, I've reviewed the file 'languages.dat' in the miktex config directory. (The first line says "Do not edit" – there's no clue on how it gets generated, or how to edit.) The languages I want at this moment (english, german, french) do not have an 'exclude' attribute. In fact, the entries are as follows:

[english]
attributes=
...
[french]
attributes=
...
[german]
attributes=

all other languages have:

attributes=exclude

Does a different attribute tell mo.exe to enable the button for a language? How do I set it?

Best Answer

I found an entry in the official MikTeX Bug list (via source forge), originally from Ulrike Fischer. So people should click on Ulrike's comment to give her her due.

Miktex 2.9, win xp, installed as single user.

In miktex-settings in the language tab there are no "New, edit, remove" buttons. I see only the list of languages.

Later in the discussion forum for MiKTeX user “Tethered.Sun” wrote:

I managed to find a workaround: I located the language.dat file, rewritten the
relevant row in it, and ran initexmf --dump. Updating the format files from
the graphical interface would do no good since it always replaced my manual
insertions with the default (and ineditable) settings of the graphical
interface.

Using the command line program initexmf does the job of adding the desired hyphenation patterns. As of this writing, the bug reported above remains outstanding.

So I'll use the command line tools in place of the gui.

Related Question