From 46c3430a60c08cb3b4caca9b6e53d4e0f69a6a52 Mon Sep 17 00:00:00 2001
From: jstebbins
Date: Wed, 5 Nov 2014 15:22:35 +0000
Subject: LinGui: make more strings translatable Thanks to Уважением Виктор
(aka victor)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6505 b64f7644-9d1e-0410-96f1-a4d463321fa5
---
gtk/src/audiohandler.c | 46 +++++++++++++++++++++++-----------------------
gtk/src/callbacks.c | 4 ++--
gtk/src/ghb.ui | 22 +++++++++++-----------
gtk/src/hb-backend.c | 4 ++--
gtk/src/main.c | 4 ++--
gtk/src/preview.c | 4 ++--
gtk/src/videohandler.c | 9 +++++----
gtk/src/x264handler.c | 5 +++--
8 files changed, 50 insertions(+), 48 deletions(-)
(limited to 'gtk')
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c
index fd3dbe6c4..380ddd2df 100644
--- a/gtk/src/audiohandler.c
+++ b/gtk/src/audiohandler.c
@@ -823,11 +823,11 @@ audio_refresh_list_row_ui(
if (ghb_settings_get_boolean(settings, "AudioTrackQualityEnable") &&
quality != HB_INVALID_AUDIO_QUALITY)
{
- s_br_quality = ghb_format_quality("Quality: ", encoder->codec, quality);
+ s_br_quality = ghb_format_quality(_("Quality: "), encoder->codec, quality);
}
else
{
- s_br_quality = g_strdup_printf("Bitrate: %dkbps",
+ s_br_quality = g_strdup_printf(_("Bitrate: %dkbps"),
ghb_settings_audio_bitrate_rate(settings, "AudioBitrate"));
}
@@ -856,13 +856,13 @@ audio_refresh_list_row_ui(
if (aconfig->in.bitrate > 0)
{
info_src_2 = g_strdup_printf(
- "Bitrate: %.4gkbps",
+ _("Bitrate: %.4gkbps"),
(double)aconfig->in.bitrate / 1000);
}
if (ghb_audio_is_passthru(encoder->codec))
{
- info_dst = g_strdup_printf("Passthrough");
+ info_dst = g_strdup_printf(_("Passthrough"));
}
else
{
@@ -871,12 +871,12 @@ audio_refresh_list_row_ui(
if (s_track_name && s_track_name[0])
{
info_dst_2 = g_strdup_printf(
- "%s\nGain: %s\nDRC: %s\nTrack Name: %s",
+ _("%s\nGain: %s\nDRC: %s\nTrack Name: %s"),
s_br_quality, s_gain, s_drc, s_track_name);
}
else
{
- info_dst_2 = g_strdup_printf("%s\nGain: %s\nDRC: %s",
+ info_dst_2 = g_strdup_printf(_("%s\nGain: %s\nDRC: %s"),
s_br_quality, s_gain, s_drc);
}
}
@@ -1803,10 +1803,10 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
box = GTK_BOX(gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0));
// Add Button
- button = GTK_BUTTON(gtk_button_new_with_label("Add"));
+ button = GTK_BUTTON(gtk_button_new_with_label(_("Add")));
gtk_widget_set_tooltip_markup(GTK_WIDGET(button),
- "Add an audio encoder.\n"
- "Each selected source track will be encoded with all selected encoders.");
+ _("Add an audio encoder.\n"
+ "Each selected source track will be encoded with all selected encoders."));
gtk_widget_set_valign(GTK_WIDGET(button), GTK_ALIGN_CENTER);
gtk_widget_set_name(GTK_WIDGET(button), "add_button");
gtk_widget_hide(GTK_WIDGET(button));
@@ -1825,7 +1825,7 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
const hb_encoder_t *aud_enc = hb_audio_encoder_get_next(NULL);
ghb_update_widget(GTK_WIDGET(combo), ghb_int64_value(aud_enc->codec));
gtk_widget_set_tooltip_markup(GTK_WIDGET(combo),
- "Set the audio codec to encode this track with.");
+ _("Set the audio codec to encode this track with."));
gtk_widget_set_valign(GTK_WIDGET(combo), GTK_ALIGN_CENTER);
gtk_widget_set_name(GTK_WIDGET(combo), "AudioEncoder");
gtk_widget_show(GTK_WIDGET(combo));
@@ -1839,12 +1839,12 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
// Bitrate vs Quality RadioButton
GtkBox *vbox;
vbox = GTK_BOX(gtk_box_new(GTK_ORIENTATION_VERTICAL, 0));
- radio = GTK_RADIO_BUTTON(gtk_radio_button_new_with_label(NULL, "Bitrate"));
+ radio = GTK_RADIO_BUTTON(gtk_radio_button_new_with_label(NULL, _("Bitrate")));
gtk_widget_set_name(GTK_WIDGET(radio), "AudioTrackBitrateEnable");
gtk_widget_show(GTK_WIDGET(radio));
gtk_box_pack_start(vbox, GTK_WIDGET(radio), FALSE, FALSE, 0);
radio = GTK_RADIO_BUTTON(
- gtk_radio_button_new_with_label_from_widget(radio, "Quality"));
+ gtk_radio_button_new_with_label_from_widget(radio, _("Quality")));
gtk_widget_set_name(GTK_WIDGET(radio), "AudioTrackQualityEnable");
g_signal_connect(radio, "toggled", (GCallback)audio_def_quality_enable_changed_cb, ud);
gtk_widget_show(GTK_WIDGET(radio));
@@ -1858,7 +1858,7 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
ghb_audio_bitrate_opts_set(combo, FALSE);
ghb_update_widget(GTK_WIDGET(combo), ghb_int64_value(192));
gtk_widget_set_tooltip_markup(GTK_WIDGET(combo),
- "Set the bitrate to encode this track with.");
+ _("Set the bitrate to encode this track with."));
gtk_widget_set_valign(GTK_WIDGET(combo), GTK_ALIGN_CENTER);
gtk_widget_set_name(GTK_WIDGET(combo), "AudioBitrate");
gtk_widget_show(GTK_WIDGET(combo));
@@ -1884,8 +1884,8 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
scale = GTK_SCALE_BUTTON(gtk_scale_button_new(GTK_ICON_SIZE_BUTTON,
0, 10, 0.1, quality_icons));
gtk_widget_set_tooltip_markup(GTK_WIDGET(scale),
- "Audio Quality:\n"
- "For encoders that support it, adjust the quality of the output.");
+ _("Audio Quality:\n"
+ "For encoders that support it, adjust the quality of the output."));
gtk_widget_set_valign(GTK_WIDGET(scale), GTK_ALIGN_CENTER);
gtk_widget_set_name(GTK_WIDGET(scale), "AudioTrackQuality");
@@ -1911,7 +1911,7 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
ghb_mix_opts_set(combo);
ghb_update_widget(GTK_WIDGET(combo), ghb_int64_value(HB_AMIXDOWN_5POINT1));
gtk_widget_set_tooltip_markup(GTK_WIDGET(combo),
- "Set the mixdown of the output audio track.");
+ _("Set the mixdown of the output audio track."));
gtk_widget_set_valign(GTK_WIDGET(combo), GTK_ALIGN_CENTER);
gtk_widget_set_name(GTK_WIDGET(combo), "AudioMixdown");
gtk_widget_show(GTK_WIDGET(combo));
@@ -1924,7 +1924,7 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
ghb_audio_samplerate_opts_set(combo);
ghb_update_widget(GTK_WIDGET(combo), ghb_int64_value(0));
gtk_widget_set_tooltip_markup(GTK_WIDGET(combo),
- "Set the sample rate of the output audio track.");
+ _("Set the sample rate of the output audio track."));
gtk_widget_set_valign(GTK_WIDGET(combo), GTK_ALIGN_CENTER);
gtk_widget_set_name(GTK_WIDGET(combo), "AudioSamplerate");
gtk_widget_show(GTK_WIDGET(combo));
@@ -1946,8 +1946,8 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
scale = GTK_SCALE_BUTTON(gtk_scale_button_new(GTK_ICON_SIZE_BUTTON,
-20, 21, 1, gain_icons));
gtk_widget_set_tooltip_markup(GTK_WIDGET(scale),
- "Audio Gain:\n"
- "Adjust the amplification or attenuation of the output audio track.");
+ _("Audio Gain:\n"
+ "Adjust the amplification or attenuation of the output audio track."));
gtk_widget_set_valign(GTK_WIDGET(scale), GTK_ALIGN_CENTER);
gtk_widget_set_name(GTK_WIDGET(scale), "AudioTrackGainSlider");
@@ -1977,12 +1977,12 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
scale = GTK_SCALE_BUTTON(gtk_scale_button_new(GTK_ICON_SIZE_BUTTON,
0.9, 4, 0.1, drc_icons));
gtk_widget_set_tooltip_markup(GTK_WIDGET(scale),
- "Dynamic Range Compression:\n"
+ _("Dynamic Range Compression:\n"
"Adjust the dynamic range of the output audio track.\n"
"For source audio that has a wide dynamic range,\n"
"very loud and very soft sequences, DRC allows you\n"
"to 'compress' the range by making loud sounds\n"
- "softer and soft sounds louder.\n");
+ "softer and soft sounds louder.\n"));
gtk_widget_set_valign(GTK_WIDGET(scale), GTK_ALIGN_CENTER);
gtk_widget_set_name(GTK_WIDGET(scale), "AudioTrackDRCSlider");
@@ -1991,7 +1991,7 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
gtk_box_pack_start(box3, GTK_WIDGET(scale), FALSE, FALSE, 0);
// Audio DRC Label
- label = GTK_LABEL(gtk_label_new("Off"));
+ label = GTK_LABEL(gtk_label_new(_("Off")));
gtk_label_set_width_chars(label, 4);
gtk_widget_set_halign(GTK_WIDGET(label), GTK_ALIGN_START);
gtk_widget_set_valign(GTK_WIDGET(label), GTK_ALIGN_CENTER);
@@ -2006,7 +2006,7 @@ GtkWidget * ghb_create_audio_settings_row(signal_user_data_t *ud)
button = GTK_BUTTON(gtk_button_new());
gtk_button_set_image(button, GTK_WIDGET(image));
gtk_widget_set_tooltip_markup(GTK_WIDGET(button),
- "Remove this audio encoder");
+ _("Remove this audio encoder"));
gtk_button_set_relief(button, GTK_RELIEF_NONE);
gtk_widget_set_valign(GTK_WIDGET(button), GTK_ALIGN_CENTER);
gtk_widget_set_halign(GTK_WIDGET(button), GTK_ALIGN_END);
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 5f9183db6..ed27affc8 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -2869,7 +2869,7 @@ ghb_update_pending(signal_user_data_t *ud)
label = GTK_LABEL(GHB_WIDGET(ud->builder, "pending_status"));
pending = queue_pending_count(ud->queue);
- str = g_strdup_printf("%d encode(s) pending", pending);
+ str = g_strdup_printf(_("%d encode(s) pending"), pending);
gtk_label_set_text(label, str);
g_free(str);
}
@@ -4921,7 +4921,7 @@ tweak_setting_cb(
message = g_strdup_printf(
_("Invalid Settings:\n%s"),
tweak);
- ghb_message_dialog(GTK_MESSAGE_ERROR, message, "Cancel", NULL);
+ ghb_message_dialog(GTK_MESSAGE_ERROR, message, _("Cancel"), NULL);
g_free(message);
}
}
diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui
index 44dfacc0b..42b82715a 100644
--- a/gtk/src/ghb.ui
+++ b/gtk/src/ghb.ui
@@ -1512,7 +1512,7 @@ This allows a player to initiate playback before downloading the entire file.
True
FalseGDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- Allow 64 bit MP4 file which can be over 4GB.
+ Allow 64 bit MP4 file which can be over 4GB.
<b>Caution:</b> This option may break device compatibility.start
@@ -2518,7 +2518,7 @@ This will be the resolution that most closely matches the source resolution afte
GTK_ALIGN_CENTERFalseGDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- <b>Anamorphic Modes:</b>
+ <b>Anamorphic Modes:</b>
<small><tt>
None - Force pixel aspect ratio to 1:1.
Loose - Align dimensions to chosen 'Alignment' value
@@ -4347,7 +4347,7 @@ This permits DTS-HD passthru to be selected when automatic passthru selection is
startTrue<b>Audio Encoder Settings:</b>
- Each selected source track will be encoded with all selected encoders
+ Each selected source track will be encoded with all selected encoders2
@@ -5319,7 +5319,7 @@ Transformed Exhaustive: Like exhaustive, but makes even more accurate decisions.
TrueFalseGDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- This setting controls both subpixel-precision motion estimation and mode decision methods.
+ This setting controls both subpixel-precision motion estimation and mode decision methods.
Subpixel motion estimation is used for refining motion estimates beyond mere pixel accuracy, improving compression.
Mode decision is the method used to choose how to encode each block of the frame: a very important decision.
@@ -5431,7 +5431,7 @@ adaptively select which is better for each particular frame.TrueFalseGDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- x264 has a variety of algorithms to decide when to use B-frames and how many to use.
+ x264 has a variety of algorithms to decide when to use B-frames and how many to use.
Fast mode takes roughly the same amount of time no matter how many B-frames you specify.
However, while fast, its decisions are often suboptimal.
@@ -5745,7 +5745,7 @@ and other sharp-edged graphics.TrueTrueGDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- H.264 deblocking filter.
+ H.264 deblocking filter.
h.264 has a built-in deblocking filter that smooths out blocking artifacts
after decoding each frame. This not only improves visual quality, but also
@@ -5772,7 +5772,7 @@ The default is 0 (normal strength) for both parameters.TrueTrueGDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
- H.264 deblocking filter.
+ H.264 deblocking filter.
h.264 has a built-in deblocking filter that smooths out blocking artifacts
after decoding each frame. This not only improves visual quality, but also
@@ -9056,7 +9056,7 @@ Players may use this in the audio selection list.