g_return_val_if_fail (name!=NULL, 0);
for (i=0; backends[i].id != NULL; i++) {
- if (strcmp (name, backends[i].name) == 0) {
+ if (strcmp (name, gettext (backends[i].name)) == 0) {
return i;
}
}
GList *list = NULL;
for (i=0; backends[i].id != NULL; i++) {
- list = g_list_append (list, g_strdup (backends[i].name));
+ list = g_list_append (list, g_strdup (gettext (backends[i].name)));
}
return list;
const gchar *
gl_barcode_id_to_name (const gchar *id)
{
- return backends[id_to_index (id)].name;
+ return gettext (backends[id_to_index (id)].name);
}
{ GL_COLOR (216, 191, 216), N_("Thistle") },
{ GL_COLOR (255, 255, 255), N_("White") },
- { GL_COLOR (230, 230, 230), N_("10% Gray") },
- { GL_COLOR (192, 192, 192), N_("25% Gray") },
- { GL_COLOR (153, 153, 153), N_("40% Gray") },
- { GL_COLOR (128, 128, 128), N_("50% Gray") },
- { GL_COLOR (102, 102, 102), N_("60% Gray") },
+ { GL_COLOR (230, 230, 230), N_("10\% Gray") },
+ { GL_COLOR (192, 192, 192), N_("25\% Gray") },
+ { GL_COLOR (153, 153, 153), N_("40\% Gray") },
+ { GL_COLOR (128, 128, 128), N_("50\% Gray") },
+ { GL_COLOR (102, 102, 102), N_("60\% Gray") },
{ GL_COLOR ( 0, 0, 0), N_("Black") },
};
palette_menu_item = gl_color_combo_color_menu_item_new (i,
color_table[i].color,
- color_table[i].name);
+ gettext (color_table[i].name));
g_signal_connect (palette_menu_item, "activate",
G_CALLBACK (palette_menu_item_activate_cb), this);