7
7
* Based on gedit code (gedit/gedit-plugin-manager.c) by:
8
8
* - Paolo Maggi <paolo@gnome.org>
10
* This program is free software; you can redistribute it and/or modify
10
* Libbrasero-media is free software; you can redistribute it and/or modify
11
12
* it under the terms of the GNU General Public License as published by
12
13
* the Free Software Foundation; either version 2 of the License, or
13
14
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* Brasero is distributed in the hope that it will be useful,
16
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
19
* GNU General Public License for more details.
20
21
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place, Suite 330,
23
* Boston, MA 02111-1307, USA.
22
* along with this program; if not, write to:
23
* The Free Software Foundation, Inc.,
24
* 51 Franklin Street, Fifth Floor
25
* Boston, MA 02110-1301, USA.
26
28
#ifdef HAVE_CONFIG_H
142
144
brasero_plugin_get_author (plugin));
144
146
dialog = g_object_new (GTK_TYPE_ABOUT_DIALOG,
145
"program-name", brasero_plugin_get_name (plugin),
147
"program-name", _(brasero_plugin_get_name (plugin)),
146
148
"copyright", copyright,
147
149
"authors", authors,
148
150
"comments", brasero_plugin_get_description (plugin),
216
218
if (brasero_plugin_get_error (plugin))
217
text = g_markup_printf_escaped (_("<b>%s</b>\n%s\n<i>%s</i>"),
218
brasero_plugin_get_name (plugin),
219
text = g_markup_printf_escaped ("<b>%s</b>\n%s\n<i>%s</i>",
220
/* Use the translated name of
222
_(brasero_plugin_get_name (plugin)),
219
223
brasero_plugin_get_description (plugin),
220
224
brasero_plugin_get_error (plugin));
222
226
text = g_markup_printf_escaped ("<b>%s</b>\n%s",
223
brasero_plugin_get_name (plugin),
227
/* Use the translated name of
229
_(brasero_plugin_get_name (plugin)),
224
230
brasero_plugin_get_description (plugin));
226
232
g_object_set (G_OBJECT (cell),
354
360
for (; plugins; plugins = plugins->next) {
355
361
plugin = plugins->data;
357
if (brasero_burn_caps_plugin_can_burn (caps, plugin) == BRASERO_BURN_OK
358
|| brasero_burn_caps_plugin_can_convert (caps, plugin) == BRASERO_BURN_OK
359
|| brasero_burn_caps_plugin_can_image (caps, plugin) == BRASERO_BURN_OK
360
|| brasero_plugin_get_gtype (plugin) == G_TYPE_NONE)
363
if (brasero_plugin_get_gtype (plugin) == G_TYPE_NONE
364
|| brasero_plugin_get_compulsory (plugin))
363
367
gtk_list_store_append (model, &iter);
507
normalized_string = g_utf8_normalize (brasero_plugin_get_name (plugin), -1, G_NORMALIZE_ALL);
508
normalized_key = g_utf8_normalize (key, -1, G_NORMALIZE_ALL);
511
/* Use translated name for the plugin */
512
normalized_string = g_utf8_normalize (_(brasero_plugin_get_name (plugin)),
515
normalized_key = g_utf8_normalize (key,
509
518
case_normalized_string = g_utf8_casefold (normalized_string, -1);
510
519
case_normalized_key = g_utf8_casefold (normalized_key, -1);
793
802
gtk_tree_model_get (model, iter1, PLUGIN_COLUMN, &plugin1, -1);
794
803
gtk_tree_model_get (model, iter2, PLUGIN_COLUMN, &plugin2, -1);
796
return g_utf8_collate (brasero_plugin_get_name (plugin1),
797
brasero_plugin_get_name (plugin2));
805
/* Use the translated name for the plugins */
806
return g_utf8_collate (_(brasero_plugin_get_name (plugin1)),
807
_(brasero_plugin_get_name (plugin2)));
915
923
gtk_box_set_spacing (GTK_BOX (pm), 6);
916
924
gtk_container_set_border_width (GTK_CONTAINER (pm), 12);
918
label = gtk_label_new (NULL);
919
markup = g_markup_printf_escaped ("<span weight=\"bold\">%s</span>",
921
gtk_label_set_markup (GTK_LABEL (label), markup);
923
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
924
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
926
gtk_box_pack_start (GTK_BOX (pm), label, FALSE, TRUE, 0);
928
926
alignment = gtk_alignment_new (0., 0., 1., 1.);
929
927
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
930
928
gtk_box_pack_start (GTK_BOX (pm), alignment, TRUE, TRUE, 0);
932
930
vbox = gtk_vbox_new (FALSE, 0);
933
931
gtk_widget_show (vbox);
934
932
gtk_container_add (GTK_CONTAINER (alignment), vbox);