small fixes

This commit is contained in:
rafael@riseup.net 2013-05-18 05:17:00 +00:00
parent 5ff26ff48b
commit 5696759910
2 changed files with 6 additions and 6 deletions

View File

@ -256,13 +256,13 @@ gboolean darksnow2darkice_cfg() {
/* write bitratemode */ /* write bitratemode */
fprintf(f_darkice_cfg, "\nbitrateMode = "); fprintf(f_darkice_cfg, "\nbitrateMode = ");
if (!strcmp("Constant", bitratemode)) if (!strcmp(gettext("Constant"), bitratemode))
fprintf(f_darkice_cfg, "cbr"); /* Constant bitrate mode */ fprintf(f_darkice_cfg, "cbr"); /* Constant bitrate mode */
else else
if (!strcmp("Average", bitratemode)) if (!strcmp(gettext("Average"), bitratemode))
fprintf(f_darkice_cfg, "abr"); /* average bitrate mode */ fprintf(f_darkice_cfg, "abr"); /* average bitrate mode */
else else
if (!strcmp("Variable", bitratemode)) if (!strcmp(gettext("Variable"), bitratemode))
fprintf(f_darkice_cfg, "vbr"); /* variable bitrate mode */ fprintf(f_darkice_cfg, "vbr"); /* variable bitrate mode */

View File

@ -304,7 +304,7 @@ int main( int argc, char *argv[], char *envp[]) {
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_bitratemode), gettext("Constant")); gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_bitratemode), gettext("Constant"));
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_bitratemode), gettext("Average")); gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_bitratemode), gettext("Average"));
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_bitratemode), gettext("Variable")); gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_bitratemode), gettext("Variable"));
gtk_entry_set_text (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (combo_bitratemode))),"Constant"); gtk_entry_set_text (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (combo_bitratemode))), gettext("Constant"));
label_bitrate = gtk_label_new ( gettext("BitRate: ")); label_bitrate = gtk_label_new ( gettext("BitRate: "));
combo_bitrate = gtk_combo_box_text_new_with_entry (); combo_bitrate = gtk_combo_box_text_new_with_entry ();
@ -340,7 +340,7 @@ int main( int argc, char *argv[], char *envp[]) {
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_samplerate), "44100"); gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_samplerate), "44100");
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_samplerate), "48000"); gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_samplerate), "48000");
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_samplerate), "96000"); gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_samplerate), "96000");
gtk_entry_set_text ( GTK_ENTRY(gtk_bin_get_child (GTK_BIN (combo_samplerate))),"44100"); gtk_entry_set_text ( GTK_ENTRY(gtk_bin_get_child (GTK_BIN (combo_samplerate))),"48000");
label_quality = gtk_label_new ( gettext("Quality: ")); label_quality = gtk_label_new ( gettext("Quality: "));
combo_quality = gtk_combo_box_text_new_with_entry (); combo_quality = gtk_combo_box_text_new_with_entry ();