[evince] Add contextual information for translators. Fixes #693095



commit 544d9b4a73011c1e5a7b1d37b05a94f761d0dc03
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Wed Feb 27 00:00:19 2013 -0800

    Add contextual information for translators. Fixes #693095

 backend/pdf/ev-poppler.cc       |    7 ++++++-
 libview/ev-print-operation.c    |    2 ++
 previewer/ev-previewer-window.c |    1 +
 properties/ev-properties-view.c |    5 +++++
 4 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 381795e..16361fb 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1129,8 +1129,13 @@ pdf_document_fonts_fill_model (EvDocumentFonts *document_fonts,
                }
 
                encoding = poppler_fonts_iter_get_encoding (iter);
-               if (!encoding)
+               if (!encoding) {
+                       /* translators: When a font type does not have
+                          encoding information or it is unknown.  Example:
+                          Encoding: None
+                       */
                        encoding = _("None");
+               }
 
                type = poppler_fonts_iter_get_font_type (iter);
                type_str = font_type_to_string (type);
diff --git a/libview/ev-print-operation.c b/libview/ev-print-operation.c
index 15e5eb3..f977ffa 100644
--- a/libview/ev-print-operation.c
+++ b/libview/ev-print-operation.c
@@ -1318,6 +1318,7 @@ ev_print_operation_export_run (EvPrintOperation *op,
        export->parent_window = parent;
        export->error = NULL;
        
+       /* translators: Title of the print dialog */
        dialog = gtk_print_unix_dialog_new (_("Print"), parent);
        gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
        
@@ -1902,6 +1903,7 @@ ev_print_operation_print_create_custom_widget (EvPrintOperationPrint *print,
        gtk_widget_show (label);
 
        print->scale_combo = gtk_combo_box_text_new ();
+       /* translators: Value for 'Page Scaling:' to not scale the document pages on printing */
        gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (print->scale_combo), _("None"));
        gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (print->scale_combo), _("Shrink to Printable 
Area"));
        gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (print->scale_combo), _("Fit to Printable Area"));
diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c
index cfd981a..09fa5b4 100644
--- a/previewer/ev-previewer-window.c
+++ b/previewer/ev-previewer-window.c
@@ -294,6 +294,7 @@ static const GtkActionEntry action_entries[] = {
           N_("Shrink the document"),
           G_CALLBACK (ev_previewer_window_zoom_out) },
 #if GTKUNIXPRINT_ENABLED
+       /* translators: Print document currently shown in the Print Preview window */
        { "PreviewPrint", GTK_STOCK_PRINT, N_("Print"), NULL,
          N_("Print this document"),
          G_CALLBACK (ev_previewer_window_print) }
diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c
index d65262c..630f743 100644
--- a/properties/ev-properties-view.c
+++ b/properties/ev-properties-view.c
@@ -184,6 +184,11 @@ set_property (EvPropertiesView *properties,
        }
 
        if (text == NULL || text[0] == '\000') {
+               /* translators: This is used when a document property does
+                  not have a value.  Examples:
+                  Author: None
+                  Keywords: None
+               */
                markup = g_markup_printf_escaped ("<i>%s</i>", _("None"));
                gtk_label_set_markup (GTK_LABEL (label), markup);
                g_free (markup);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]