-/* This file is part of
- * ======================================================
+/**
+ * \file language.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ * \author Dekel Tsur
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include "language.h"
-#include "gettext.h"
+
+#include "debug.h"
#include "encoding.h"
-#include "lyxrc.h"
#include "lyxlex.h"
-#include "debug.h"
+#include "lyxrc.h"
using std::endl;
+using std::string;
+
Languages languages;
Language const * english_language;
Language latex_lang("latex", "latex", "Latex", false, 0, "latex", "");
Language const * latex_language = &latex_lang;
-void Languages::setDefaults()
-{
- // We need to set the encoding of latex_lang
- latex_lang = Language("latex", "latex", "Latex", false,
- encodings.getEncoding("iso8859-1"),
- "latex", "");
-
- languagelist["english"] = Language("english", "english", N_("English"),
- false,
- encodings.getEncoding("iso8859-1"),
- "en", "");
- english_language = default_language = &languagelist["english"];
-}
-
void Languages::read(string const & filename)
{
// We need to set the encoding of latex_lang