]> git.lyx.org Git - lyx.git/blobdiff - src/language.C
Partly fix for bug 1231
[lyx.git] / src / language.C
index f2fafe0e63b24bb0ab59ff0093f622aa84485ede..c811aac9a9c5bfe41897eb6425d4f1ec54c4f079 100644 (file)
@@ -1,27 +1,27 @@
-/* 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;
@@ -31,20 +31,6 @@ Language const * ignore_language = &ignore_lang;
 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