summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-11-07 15:01:03 +0000
committerjstebbins <[email protected]>2014-11-07 15:01:03 +0000
commitae9bfd9b905296f18de701de1edab59c40ea4476 (patch)
tree6ff275a669b3eb7ae1d3fa7d211fca16f4942878
parent0780662d46a5c9e427bc0f9bc0057907c478d294 (diff)
LinGui: make more strings translatable
Thanks to Уважением Виктор (aka victor) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6508 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/hb-backend.c4
-rw-r--r--gtk/src/presets.c29
-rw-r--r--gtk/src/queuehandler.c4
3 files changed, 19 insertions, 18 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 170f7dfcb..c527cd00a 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -1871,7 +1871,7 @@ ghb_create_title_label(const hb_title_t *title)
}
else
{
- label = g_strdup_printf("%d (%05d.MPLS) - Unknown Length",
+ label = g_strdup_printf(_("%d (%05d.MPLS) - Unknown Length"),
title->index, title->playlist);
}
}
@@ -1884,7 +1884,7 @@ ghb_create_title_label(const hb_title_t *title)
}
else
{
- label = g_strdup_printf("%d - Unknown Length",
+ label = g_strdup_printf(_("%d - Unknown Length"),
title->index);
}
}
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index e5a5b65b4..cfd68a168 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -18,6 +18,7 @@
#include <glib.h>
#include <glib-object.h>
#include <glib/gstdio.h>
+#include <glib/gi18n.h>
#include <string.h>
#include "ghbcompat.h"
#include "hb.h"
@@ -1609,7 +1610,7 @@ ghb_presets_list_init(
presets = presets_get_folder(presetsPlist, indices, len);
if (presets == NULL)
{
- g_warning("Failed to find parent folder when adding child.");
+ g_warning(_("Failed to find parent folder when adding child."));
g_free(more_indices);
return;
}
@@ -1761,7 +1762,7 @@ presets_list_insert(
presets = presets_get_folder(presetsPlist, indices, len-1);
if (presets == NULL)
{
- g_warning("Failed to find parent folder while adding child.");
+ g_warning(_("Failed to find parent folder while adding child."));
return;
}
parent_path = ghb_tree_path_new_from_indices(indices, len-1);
@@ -3164,10 +3165,10 @@ settings_save(signal_user_data_t *ud, const GValue *path)
{
gchar *message;
message = g_strdup_printf(
- "%s: Folder already exists.\n"
- "You can not replace it with a preset.",
+ _("%s: Folder already exists.\n"
+ "You can not replace it with a preset."),
name);
- ghb_message_dialog(GTK_MESSAGE_ERROR, message, "Cancel", NULL);
+ ghb_message_dialog(GTK_MESSAGE_ERROR, message, _("Cancel"), NULL);
g_free(message);
return;
}
@@ -3254,10 +3255,10 @@ folder_save(signal_user_data_t *ud, const GValue *path)
{
gchar *message;
message = g_strdup_printf(
- "%s: Preset already exists.\n"
- "You can not replace it with a folder.",
+ _("%s: Preset already exists.\n"
+ "You can not replace it with a folder."),
name);
- ghb_message_dialog(GTK_MESSAGE_ERROR, message, "Cancel", NULL);
+ ghb_message_dialog(GTK_MESSAGE_ERROR, message, _("Cancel"), NULL);
g_free(message);
g_free(indices);
return;
@@ -3402,12 +3403,12 @@ preset_import_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud)
NULL);
filter = gtk_file_filter_new();
- gtk_file_filter_set_name(filter, "All (*)");
+ gtk_file_filter_set_name(filter, _("All (*)"));
gtk_file_filter_add_pattern(filter, "*");
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog), filter);
filter = gtk_file_filter_new();
- gtk_file_filter_set_name(filter, "Presets (*.plist)");
+ gtk_file_filter_set_name(filter, _("Presets (*.plist)"));
gtk_file_filter_add_pattern(filter, "*.plist");
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog), filter);
gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter);
@@ -3545,7 +3546,7 @@ preset_export_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud)
name = g_value_get_string(ghb_array_get_nth(preset, count-1));
- dialog = gtk_file_chooser_dialog_new("Export Preset", NULL,
+ dialog = gtk_file_chooser_dialog_new(_("Export Preset"), NULL,
GTK_FILE_CHOOSER_ACTION_SAVE,
GHB_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GHB_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
@@ -3797,8 +3798,8 @@ presets_remove_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud)
folder = ghb_presets_get_folder(presetsPlist, indices, len);
dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO,
- "Confirm deletion of %s:\n\n%s",
- folder ? "folder" : "preset",
+ _("Confirm deletion of %s:\n\n%s"),
+ folder ? _("folder") : _("preset"),
preset);
response = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy (dialog);
@@ -4230,7 +4231,7 @@ presets_list_selection_changed_cb(GtkTreeSelection *selection, signal_user_data_
}
else
{
- g_debug("No selection??? Perhaps unselected.");
+ g_debug(_("No selection??? Perhaps unselected."));
gtk_widget_set_sensitive(widget, FALSE);
}
}
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index 4f667cf7c..9eacd6104 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -1856,8 +1856,8 @@ ghb_queue_buttons_grey(signal_user_data_t *ud)
if (paused)
{
gtk_widget_set_sensitive (widget, show_start);
- gtk_menu_item_set_label(GTK_MENU_ITEM(widget), "_Resume Queue");
- gtk_widget_set_tooltip_text(widget, "Resume Encoding");
+ gtk_menu_item_set_label(GTK_MENU_ITEM(widget), _("_Resume Queue"));
+ gtk_widget_set_tooltip_text(widget, _("Resume Encoding"));
}
else
{