tracker r1297 - in trunk: . src/libtracker-common



Author: asaleem
Date: Thu Apr 24 04:14:02 2008
New Revision: 1297
URL: http://svn.gnome.org/viewvc/tracker?rev=1297&view=rev

Log:
Fix spelling of 'Portuguese'.  Fixes bug #467151.


Modified:
   trunk/ChangeLog
   trunk/src/libtracker-common/tracker-config.c
   trunk/src/libtracker-common/tracker-configuration.c

Modified: trunk/src/libtracker-common/tracker-config.c
==============================================================================
--- trunk/src/libtracker-common/tracker-config.c	(original)
+++ trunk/src/libtracker-common/tracker-config.c	Thu Apr 24 04:14:02 2008
@@ -1023,7 +1023,7 @@
 				" - de (German)\n"
 				" - it (Italian)\n"
 				" - nb (Norwegian)\n"
-				" - pt (Portugese)\n"
+				" - pt (Portuguese)\n"
 				" - ru (Russian)\n"
 				" - es (Spanish)\n"
 				" - sv (Swedish)",

Modified: trunk/src/libtracker-common/tracker-configuration.c
==============================================================================
--- trunk/src/libtracker-common/tracker-configuration.c	(original)
+++ trunk/src/libtracker-common/tracker-configuration.c	Thu Apr 24 04:14:02 2008
@@ -34,7 +34,7 @@
 	{ "de", "German" },
 	{ "it", "Italian" },
 	{ "nb", "Norwegian" },
-	{ "pt", "Portugese" },
+	{ "pt", "Portuguese" },
 	{ "ru", "Russian" },
 	{ "es", "Spanish" },
 	{ "sv", "Swedish" },
@@ -121,7 +121,7 @@
 				"#   'de'  (german)\n"
 				"#   'it'  (italian)\n"
 				"#   'nb'  (norwegian)\n"
-				"#   'pt'  (portugese)\n"
+				"#   'pt'  (portuguese)\n"
 				"#   'ru'  (russian)\n"
 				"#   'es'  (spanish)\n"
 				"#   'sv'  (swedish)\n",
@@ -196,8 +196,8 @@
 
 		start_pos = end_pos + needle_len;
 	}
-	str = g_string_append_len (str, start_pos, g_utf8_strlen(start_pos, -1));
 
+	str = g_string_append_len (str, start_pos, g_utf8_strlen(start_pos, -1));
 	return g_string_free (str, FALSE);
 }
 
@@ -224,10 +224,12 @@
 	if (configuration) {
 		g_key_file_free(configuration);
 	}
+
 	configuration = g_key_file_new();
 	g_key_file_load_from_file (configuration, filename, G_KEY_FILE_KEEP_COMMENTS, &error);
-	if (error)
+	if (error) {
 		g_error ("failed: g_key_file_load_from_file(): %s\n", error->message);
+	}
 }
 
 void



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