summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 78b9d58)
raw | patch | inline | side by side (parent: 78b9d58)
author | mfloryan <mfloryan@users.sourceforge.net> | |
Wed, 20 Feb 2008 12:59:52 +0000 (12:59 +0000) | ||
committer | mfloryan <mfloryan@users.sourceforge.net> | |
Wed, 20 Feb 2008 12:59:52 +0000 (12:59 +0000) |
src/extension/internal/pdfinput/pdf-input.cpp | patch | blob | history |
diff --git a/src/extension/internal/pdfinput/pdf-input.cpp b/src/extension/internal/pdfinput/pdf-input.cpp
index fbd6239b9a5030c2327eb75e4a39605f0b3471ad..c551fa709f4726ce5452e7020570b0ac6e53f18b 100644 (file)
* FIXME: Probably this should be placed into src/ui/dialog
*/
-static Glib::ustring crop_setting_choices[] = {
- Glib::ustring(_("media box")),
- Glib::ustring(_("crop box")),
- Glib::ustring(_("trim box")),
- Glib::ustring(_("bleed box")),
- Glib::ustring(_("art box"))
+static const gchar * crop_setting_choices[] = {
+ //TRANSLATORS: The following are document crop settings for PDF import
+ N_("media box"),
+ N_("crop box"),
+ N_("trim box"),
+ N_("bleed box"),
+ N_("art box")
};
PdfImportDialog::PdfImportDialog(PDFDoc *doc, const gchar *uri)
_cropTypeCombo = Gtk::manage(new class Gtk::ComboBoxText());
int num_crop_choices = sizeof(crop_setting_choices) / sizeof(crop_setting_choices[0]);
for ( int i = 0 ; i < num_crop_choices ; i++ ) {
- _cropTypeCombo->append_text(crop_setting_choices[i]);
+ _cropTypeCombo->append_text(_(crop_setting_choices[i]));
}
- _cropTypeCombo->set_active_text(crop_setting_choices[0]);
+ _cropTypeCombo->set_active_text(_(crop_setting_choices[0]));
_cropTypeCombo->set_sensitive(false);
hbox3 = Gtk::manage(new class Gtk::HBox(false, 4));
int num_crop_choices = sizeof(crop_setting_choices) / sizeof(crop_setting_choices[0]);
int i = 0;
for ( ; i < num_crop_choices ; i++ ) {
- if ( current_choice == crop_setting_choices[i] ) {
+ if ( current_choice == _(crop_setting_choices[i]) ) {
break;
}
}