Ignore:
Timestamp:
2018-07-13T21:02:27+12:00 (6 years ago)
Author:
ak19
Message:

Moving another fixed English language string into strings.properties from PDF and PDFv1 plugins, so that it becomes translatable.

Location:
main/trunk/greenstone2/perllib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/PDFPlugin.pm

    r32273 r32275  
    143143    # PDFv1Plugin, if they want to use the old pdftohtml tool's capabilities,
    144144    # and PDFv2Plugin, if they want to use pdfbox or the new xpdftools capabilities.
    145     &gsprintf::gsprintf(STDERR, "{PDFPlugin.deprecated_plugin}");
     145    &gsprintf::gsprintf(STDERR, "{PDFPlugin.deprecated_plugin}\n");
    146146   
    147147    # these are passed through to gsConvert.pl by ConvertBinaryFile.pm
     
    158158
    159159    # check convert_to
    160     # TODO: Start supporting PDF to txt on Windows if we're going to be using XPDF Tools (incl pdftotext) on Windows/Linux/Mac
    161160    if ($self->{'convert_to'} eq "text" && $ENV{'GSDLOS'} =~ /^windows$/i) {
    162     #print STDERR "On Windows, Greenstone now uses Xpdf tools to support pdf to text conversion.\n";
    163     print STDERR "Windows does not support pdf to text. PDFs will be converted to HTML instead\n";
     161    &gsprintf::gsprintf(STDERR, "{PDFPlugin.win_old_pdftotext_unsupported}\n", "PDFPlugin");
    164162    $self->{'convert_to'} = "html";
    165163    }
  • main/trunk/greenstone2/perllib/plugins/PDFv1Plugin.pm

    r32273 r32275  
    146146
    147147    # check convert_to
    148     # TODO: Start supporting PDF to txt on Windows if we're going to be using XPDF Tools (incl pdftotext) on Windows/Linux/Mac
    149148    if ($self->{'convert_to'} eq "text" && $ENV{'GSDLOS'} =~ /^windows$/i) {
    150     print STDERR "*** On Windows, PDFv1Plugin does not support pdf to text. PDFs will be converted to HTML instead.\n";
    151     print STDERR "*** Use PDFv2Plugin if you really want pdf to text conversion.\n";
     149    &gsprintf::gsprintf(STDERR, "{PDFPlugin.win_old_pdftotext_unsupported}\n", "PDFv1Plugin");
    152150    $self->{'convert_to'} = "html";
    153151    }
  • main/trunk/greenstone2/perllib/strings.properties

    r32273 r32275  
    11791179PDFPlugin.use_sections:Create a separate section for each page of the PDF file.
    11801180
     1181PDFPlugin.win_old_pdftotext_unsupported:*** On Windows, %s does not support pdf to text. PDFs will be converted to HTML instead.\n*** Use PDFv2Plugin if you really want pdf to text conversion.
     1182
    11811183PDFPlugin.zoom:The factor by which to zoom the PDF for output. If not outputting as paged_html, then zoom is only useful if -complex is set.
    11821184
Note: See TracChangeset for help on using the changeset viewer.