comparison finch/gntsound.c @ 19183:772670b9e9f8

Mark a string for translation.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 11 Aug 2007 13:04:36 +0000
parents 1b416fee734c
children 6902517cdfe6
comparison
equal deleted inserted replaced
19182:1b416fee734c 19183:772670b9e9f8
693 gpointer key = gnt_tree_get_selection_data(GNT_TREE(pref_dialog->events)); 693 gpointer key = gnt_tree_get_selection_data(GNT_TREE(pref_dialog->events));
694 694
695 FinchSoundEvent * event = &sounds[GPOINTER_TO_INT(key)]; 695 FinchSoundEvent * event = &sounds[GPOINTER_TO_INT(key)];
696 g_free(event->file); 696 g_free(event->file);
697 event->file = NULL; 697 event->file = NULL;
698 gnt_tree_change_text(GNT_TREE(pref_dialog->events), key, 1, "(default)"); 698 gnt_tree_change_text(GNT_TREE(pref_dialog->events), key, 1, _("(default)"));
699 } 699 }
700 700
701 701
702 static void 702 static void
703 choose_cb(GntWidget *button, gpointer null) 703 choose_cb(GntWidget *button, gpointer null)
774 } 774 }
775 775
776 boolpref = g_strdup_printf(FINCH_PREFS_ROOT "/sound/profiles/%s/enabled/%s", profile, event->pref); 776 boolpref = g_strdup_printf(FINCH_PREFS_ROOT "/sound/profiles/%s/enabled/%s", profile, event->pref);
777 777
778 gnt_tree_change_text(GNT_TREE(pref_dialog->events), GINT_TO_POINTER(i), 0, event->label); 778 gnt_tree_change_text(GNT_TREE(pref_dialog->events), GINT_TO_POINTER(i), 0, event->label);
779 gnt_tree_change_text(GNT_TREE(pref_dialog->events), GINT_TO_POINTER(i), 1, event->file[0] ? g_path_get_basename(event->file) : "(default)"); 779 gnt_tree_change_text(GNT_TREE(pref_dialog->events), GINT_TO_POINTER(i), 1, event->file[0] ? g_path_get_basename(event->file) : _("(default)"));
780 780
781 gnt_tree_set_choice(GNT_TREE(pref_dialog->events), GINT_TO_POINTER(i), purple_prefs_get_bool(boolpref)); 781 gnt_tree_set_choice(GNT_TREE(pref_dialog->events), GINT_TO_POINTER(i), purple_prefs_get_bool(boolpref));
782 782
783 g_free(boolpref); 783 g_free(boolpref);
784 } 784 }