epiphany r8705 - in trunk: . embed src src/bookmarks



Author: pwithnall
Date: Mon Jan 19 23:30:25 2009
New Revision: 8705
URL: http://svn.gnome.org/viewvc/epiphany?rev=8705&view=rev

Log:
Use C_() instead of Q_() with context for translatable strings.
Note this bumps the GLib dependency to 2.18.0.

(Helps: #558407)


Modified:
   trunk/configure.ac
   trunk/embed/downloader-view.c
   trunk/src/bookmarks/ephy-bookmarks.c
   trunk/src/ephy-toolbar-editor.c
   trunk/src/prefs-dialog.c

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Mon Jan 19 23:30:25 2009
@@ -101,7 +101,7 @@
 	GECKO_WARN_CXXFLAGS="-Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth $GECKO_WARN_CXXFLAGS"
 fi
 
-GLIB_REQUIRED=2.16.0
+GLIB_REQUIRED=2.18.0
 GTK_REQUIRED=2.15.0
 LIBXML_REQUIRED=2.6.12
 LIBXSLT_REQUIRED=1.1.7

Modified: trunk/embed/downloader-view.c
==============================================================================
--- trunk/embed/downloader-view.c	(original)
+++ trunk/embed/downloader-view.c	Mon Jan 19 23:30:25 2009
@@ -673,22 +673,16 @@
 	switch (state)
 	{
 		case EPHY_DOWNLOAD_INITIALISING:
-			/* Translators: The text before the "|" is context to help you decide on
-			 * the correct translation. You MUST OMIT it in the translated string. */
-			text = Q_("download status|Unknown");
+			text = C_("download status", "Unknown");
 			break;
 		case EPHY_DOWNLOAD_FAILED:
-			/* Translators: The text before the "|" is context to help you decide on
-			 * the correct translation. You MUST OMIT it in the translated string. */
-			text = Q_("download status|Failed");
+			text = C_("download status", "Failed");
 			break;
 		case EPHY_DOWNLOAD_DOWNLOADING:
 		case EPHY_DOWNLOAD_PAUSED:
 			if (percent == -1)
 			{
-				/* Translators: The text before the "|" is context to help you decide on
-				 * the correct translation. You MUST OMIT it in the translated string. */
-				text = Q_("download status|Unknown");
+				text = C_("download status", "Unknown");
 				percent = 0;
 			}
 			break;

Modified: trunk/src/bookmarks/ephy-bookmarks.c
==============================================================================
--- trunk/src/bookmarks/ephy-bookmarks.c	(original)
+++ trunk/src/bookmarks/ephy-bookmarks.c	Mon Jan 19 23:30:25 2009
@@ -1219,32 +1219,20 @@
 {
 	EphyNodeDb *db;
 
-	/* Translators: The text before the "|" is context to help you
-	 * decide on the correct translation. You MUST OMIT it in the
-	 * translated string. */
 	/* Translators: this topic contains all bookmarks */
-	const char *bk_all = Q_("bookmarks|All");
+	const char *bk_all = C_("bookmarks", "All");
 
-	/* Translators: The text before the "|" is context to help you
-	 * decide on the correct translation. You MUST OMIT it in the
-	 * translated string. */
 	/* Translators: this topic contains the most used bookmarks */
-	const char *bk_most_visited = Q_("bookmarks|Most Visited");
+	const char *bk_most_visited = C_("bookmarks", "Most Visited");
 
-	/* Translators: The text before the "|" is context to help you
-	 * decide on the correct translation. You MUST OMIT it in the
-	 * translated string. */
 	/* Translators: this topic contains the not categorized
 	   bookmarks */
-	const char *bk_not_categorized = Q_("bookmarks|Not Categorized");
+	const char *bk_not_categorized = C_("bookmarks", "Not Categorized");
 	
-#ifdef ENABLE_ZEROCONF	
-	/* Translators: The text before the "|" is context to help you
-	 * decide on the correct translation. You MUST OMIT it in the
-	 * translated string. */
+#ifdef ENABLE_ZEROCONF
 	/* Translators: this is an automatic topic containing local
 	 * websites bookmarks autodiscovered with zeroconf. */
-	const char *bk_local_sites = Q_("bookmarks|Nearby Sites");
+	const char *bk_local_sites = C_("bookmarks", "Nearby Sites");
 #endif
 
 	eb->priv = EPHY_BOOKMARKS_GET_PRIVATE (eb);

Modified: trunk/src/ephy-toolbar-editor.c
==============================================================================
--- trunk/src/ephy-toolbar-editor.c	(original)
+++ trunk/src/ephy-toolbar-editor.c	Mon Jan 19 23:30:25 2009
@@ -68,14 +68,12 @@
 }
 toolbar_styles [] =
 {
-	{ /* Translators: The text before the "|" is context to help you decide on
-	   * the correct translation. You MUST OMIT it in the translated string. */
-	  N_("toolbar style|Default"), 0, FALSE },
+	{ NC_("toolbar style", "Default"), 0, FALSE },
 	{ NULL /* separator row */, 0, FALSE },
-	{ N_("Text below icons"), EGG_TB_MODEL_BOTH, TRUE },
-	{ N_("Text beside icons"), EGG_TB_MODEL_BOTH_HORIZ, TRUE },
-	{ N_("Icons only"), EGG_TB_MODEL_ICONS, TRUE },
-	{ N_("Text only"), EGG_TB_MODEL_TEXT, TRUE }
+	{ NC_("toolbar style", "Text below icons"), EGG_TB_MODEL_BOTH, TRUE },
+	{ NC_("toolbar style", "Text beside icons"), EGG_TB_MODEL_BOTH_HORIZ, TRUE },
+	{ NC_("toolbar style", "Icons only"), EGG_TB_MODEL_ICONS, TRUE },
+	{ NC_("toolbar style", "Text only"), EGG_TB_MODEL_TEXT, TRUE }
 };
 
 enum
@@ -216,7 +214,7 @@
 
 		if (text != NULL)
 		{
-			tr_text= Q_(text);
+			tr_text = g_dpgettext2 (NULL, "toolbar style", text);
 		}
 
 		gtk_list_store_append (store, &iter);

Modified: trunk/src/prefs-dialog.c
==============================================================================
--- trunk/src/prefs-dialog.c	(original)
+++ trunk/src/prefs-dialog.c	Mon Jan 19 23:30:25 2009
@@ -624,32 +624,26 @@
 
 		if (localename != NULL)
 		{
-			/* Translators: The text before the "|" is context to help you decide on
-			 * the correct translation. You MUST OMIT it in the translated string.
-			 * Translators: the first %s is the language name, and the
+			/* Translators: the first %s is the language name, and the
 			 * second %s is the locale name. Example:
 			 * "French (France)"
 			 */
-			name = g_strdup_printf (Q_("language|%s (%s)"),
+			name = g_strdup_printf (C_("language", "%s (%s)"),
 						dgettext (ISO_639_DOMAIN, langname),
 						dgettext (ISO_3166_DOMAIN, localename));
 		}
 		else
 		{
-			/* Translators: The text before the "|" is context to help you decide on
-			 * the correct translation. You MUST OMIT it in the translated string. */
-			name = g_strdup_printf (Q_("language|%s (%s)"),
+			name = g_strdup_printf (C_("language", "%s (%s)"),
 						dgettext (ISO_639_DOMAIN, langname), str[1]);
 		}
 	}
 	else
 	{
-		/* Translators: The text before the "|" is context to help you decide on
-		 * the correct translation. You MUST OMIT it in the translated string.
-		 * Translators: this refers to a user-define language code
+		/* Translators: this refers to a user-define language code
 		 * (one which isn't in our built-in list).
 		 */
-		name = g_strdup_printf (Q_("language|User defined (%s)"), code);
+		name = g_strdup_printf (C_("language", "User defined (%s)"), code);
 	}
 
 	g_strfreev (str);



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