[nautilus-sound-converter/gnome-2-32] Fix the textdomain issue. Thanks to the gnome-mplayer folks for the solution.
- From: Brian Pepple <bpepple src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sound-converter/gnome-2-32] Fix the textdomain issue. Thanks to the gnome-mplayer folks for the solution.
- Date: Sun, 12 Dec 2010 20:49:14 +0000 (UTC)
commit 27424bf29e42505fbb9d83fe8d917823b25c1e83
Author: Brian Pepple <bpepple fedoraproject org>
Date: Sun Dec 12 15:23:04 2010 -0500
Fix the textdomain issue. Thanks to the gnome-mplayer folks for the solution.
src/nsc-converter.c | 19 ++++++++++---------
src/nsc-extension.c | 5 +++--
2 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/src/nsc-converter.c b/src/nsc-converter.c
index 90d2c2c..f5f574a 100644
--- a/src/nsc-converter.c
+++ b/src/nsc-converter.c
@@ -332,7 +332,7 @@ update_progressbar_text (NscConverter *convert)
priv = NSC_CONVERTER_GET_PRIVATE (convert);
- text = g_strdup_printf (_("Converting: %d of %d"),
+ text = g_strdup_printf (dgettext (GETTEXT_PACKAGE, "Converting: %d of %d"),
priv->files_converted + 1, priv->total_files);
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (priv->progressbar),
text);
@@ -358,8 +358,8 @@ on_error_cb (NscGStreamer *gstream, GError *error, gpointer data)
converter = NSC_CONVERTER (data);
priv = NSC_CONVERTER_GET_PRIVATE (converter);
- text = g_strdup_printf (_("Nautilus Sound Converter could "
- "not convert this file.\nReason: %s"),
+ text = g_strdup_printf (dgettext (GETTEXT_PACKAGE, "Nautilus Sound Converter could "
+ "not convert this file.\nReason: %s"),
error->message);
dialog = gtk_message_dialog_new (GTK_WINDOW (priv->dialog), 0,
@@ -396,7 +396,7 @@ on_completion_cb (NscGStreamer *gstream, gpointer data)
/* Clear the speed label */
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (priv->speedbar),
- (_("Speed: Unknown")));
+ (dgettext (GETTEXT_PACKAGE, "Speed: Unknown")));
/* Update the progress dialog */
fraction = (double) priv->files_converted / priv->total_files;
@@ -449,12 +449,13 @@ update_speed_progress (NscConverter *conv,
if (eta >= 0) {
eta_str =
- g_strdup_printf (_("Estimated time left: %d:%02d (at %0.1f\303\227)"),
+ g_strdup_printf (dgettext (GETTEXT_PACKAGE,
+ "Estimated time left: %d:%02d (at %0.1f\303\227)"),
eta / 60,
eta % 60,
speed);
} else {
- eta_str = g_strdup (_("Estimated time left: unknown"));
+ eta_str = g_strdup (dgettext (GETTEXT_PACKAGE, "Estimated time left: unknown"));
}
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (priv->speedbar),
@@ -610,8 +611,8 @@ converter_response_cb (GtkWidget *dialog,
/* Let's put some text in the progressbar */
update_progressbar_text (converter);
- gtk_progress_bar_set_text (GTK_PROGRESS_BAR (priv->speedbar),
- (_("Speed: Unknown")));
+ gtk_progress_bar_set_text (GTK_PROGRESS_BAR (priv->speedbar),
+ (dgettext (GETTEXT_PACKAGE, "Speed: Unknown")));
/* Alright we're finally ready to start converting */
convert_file (converter);
@@ -689,7 +690,7 @@ create_main_dialog (NscConverter *converter)
profile_id);
/* Create edit profile button */
- edit = gtk_button_new_with_mnemonic (_("Edit _Profiles..."));
+ edit = gtk_button_new_with_mnemonic (dgettext (GETTEXT_PACKAGE, "Edit _Profiles..."));
image = gtk_image_new_from_stock ("gtk-edit", GTK_ICON_SIZE_BUTTON);
g_object_set (edit,
"gtk-button-images", TRUE,
diff --git a/src/nsc-extension.c b/src/nsc-extension.c
index d418c14..d13f2d0 100644
--- a/src/nsc-extension.c
+++ b/src/nsc-extension.c
@@ -163,8 +163,9 @@ nsc_extension_get_file_items (NautilusMenuProvider *provider,
for (scan = files; scan; scan = scan->next) {
if (file_is_sound (scan->data)) {
item = nautilus_menu_item_new ("NautilusSoundConverter::convert",
- _("_Convert..."),
- _("Convert each selected audio file"),
+ dgettext (GETTEXT_PACKAGE, "_Convert..."),
+ dgettext (GETTEXT_PACKAGE,
+ "Convert each selected audio file"),
"audio-x-generic");
g_signal_connect (item, "activate",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]