2004-12-14  Danilo Šegan  <dsegan@gmx.net>

	* spell/gedit-spell-checker.c (gedit_language_to_string): Use
	dgettext to translate language name.
	(known_languages): Remove N_() around language names.
	(get_language_from_abrev): Move declaration before code.

Index: spell/gedit-spell-checker.c
===================================================================
RCS file: /cvs/gnome/gedit/plugins/spell/gedit-spell-checker.c,v
retrieving revision 1.10
diff -u -r1.10 gedit-spell-checker.c
--- spell/gedit-spell-checker.c	15 Nov 2004 19:43:42 -0000	1.10
+++ spell/gedit-spell-checker.c	14 Dec 2004 13:23:49 -0000
@@ -77,38 +77,38 @@
 #define KNOWN_LANGUAGES 32
 static GeditLanguage known_languages [KNOWN_LANGUAGES + 1] = 
 {
-	{"bg", N_("Bulgarian")},
-	{"bn", N_("Bengali")},
-	{"br", N_("Breton")},
-	{"ca", N_("Catalan")},
-	{"cs", N_("Czech")},
-	{"cy", N_("Welsh")},
-	{"da", N_("Danish")},
-	{"de_de", N_("German (Germany)")},
-	{"de_ch", N_("German (Swiss)")},
-	{"el", N_("Greek")},
-	{"en_us", N_("English (American)")},
-	{"en_gb", N_("English (British)")},
-	{"en_ca", N_("English (Canadian)")},
-	{"eo", N_("Esperanto")},
-	{"es", N_("Spanish")},
-	{"fi", N_("Finnish")},
-	{"fo", N_("Faroese")},
-	{"fr_fr", N_("French (France)")},
-	{"fr_ch", N_("French (Swiss)")},
-	{"ga", N_("Irish (Gaeilge)")},
-	{"is", N_("Icelandic")},
-	{"it", N_("Italian")},
-	{"nl", N_("Dutch")},
-	{"no", N_("Norwegian")},
-	{"pl", N_("Polish")},
-	{"pt_pt", N_("Portuguese (Portugal)")},
-	{"pt_br", N_("Portuguese (Brazilian)")},
-	{"ru", N_("Russian")},
-	{"sk", N_("Slovak")},
-	{"sl", N_("Slovenian")},
-	{"sv", N_("Swedish")},
-	{"uk", N_("Ukrainian")},
+	{"bg", "Bulgarian"},
+	{"bn", "Bengali"},
+	{"br", "Breton"},
+	{"ca", "Catalan"},
+	{"cs", "Czech"},
+	{"cy", "Welsh"},
+	{"da", "Danish"},
+	{"de_de", "German (Germany)"},
+	{"de_ch", "German (Swiss)"},
+	{"el", "Greek"},
+	{"en_us", "English (American)"},
+	{"en_gb", "English (British)"},
+	{"en_ca", "English (Canadian)"},
+	{"eo", "Esperanto"},
+	{"es", "Spanish"},
+	{"fi", "Finnish"},
+	{"fo", "Faroese"},
+	{"fr_fr", "French (France)"},
+	{"fr_ch", "French (Swiss)"},
+	{"ga", "Irish (Gaeilge)"},
+	{"is", "Icelandic"},
+	{"it", "Italian"},
+	{"nl", "Dutch"},
+	{"no", "Norwegian"},
+	{"pl", "Polish"},
+	{"pt_pt", "Portuguese (Portugal)"},
+	{"pt_br", "Portuguese (Brazilian)"},
+	{"ru", "Russian"},
+	{"sk", "Slovak"},
+	{"sl", "Slovenian"},
+	{"sv", "Swedish"},
+	{"uk", "Ukrainian"},
 	{NULL, NULL}
 };
 
@@ -319,9 +319,9 @@
 static const GeditLanguage*
 get_language_from_abrev (const gchar *abrev)
 {
+	const GSList *langs;
 	g_return_val_if_fail (abrev != NULL, NULL);
 
-	const GSList *langs;
 	langs = gedit_spell_checker_get_available_languages ();
 
 	while (langs != NULL)
@@ -783,7 +783,7 @@
 	if (lang == NULL)
 		return g_strdup (_("Default"));
 
-	return g_strdup (_(lang->name));
+	return g_strdup (dgettext("iso-639", lang->name));
 }
 
 
