[gtranslator] Fix warning message



commit e8d5d072a196f6bf5fac29e305d20c85d786f5ae
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Apr 9 20:43:06 2012 +0200

    Fix warning message

 src/gtr-language.c |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/src/gtr-language.c b/src/gtr-language.c
index e9ee682..1ca90ea 100644
--- a/src/gtr-language.c
+++ b/src/gtr-language.c
@@ -57,15 +57,15 @@ G_DEFINE_BOXED_TYPE (GtrLanguage, gtr_language,
 GtrLanguage *
 gtr_language_copy (const GtrLanguage *lang)
 {
-	g_return_val_if_fail (lang != NULL, NULL);
+  g_return_val_if_fail (lang != NULL, NULL);
 
-	return (GtrLanguage *) lang;
+  return (GtrLanguage *) lang;
 }
 
-void 
+void
 gtr_language_free (GtrLanguage *lang)
 {
-	g_return_if_fail (lang != NULL);
+  g_return_if_fail (lang != NULL);
 }
 
 static void
@@ -90,13 +90,9 @@ load_plural_form (GtrLanguage *lang)
   plural_form = g_key_file_get_string (plurals_file, "Plural Forms", lang->code, NULL);
 
   if (plural_form != NULL && *plural_form != '\0')
-    {
-      lang->plural_form = plural_form;
-    }
+    lang->plural_form = plural_form;
   else
-    {
-      lang->plural_form = NULL;
-    }
+    lang->plural_form = NULL;
 }
 
 static void
@@ -220,7 +216,7 @@ gtr_language_lazy_init (void)
   filename = gtr_dirs_get_ui_file (GTR_PLURAL_FORMS_FILENAME);
   if (!g_key_file_load_from_file (plurals_file, filename, G_KEY_FILE_NONE, NULL))
     {
-      g_warning ("Bad plugin file: '%s'", filename);
+      g_warning ("Bad plural form file: '%s'", filename);
       g_free (filename);
       return;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]