src/cm/media/js/client/f_printDialog.js
changeset 467 47f54d0c46dd
parent 455 33c7e20efcb7
child 565 95a5c06c4008
equal deleted inserted replaced
466:f00e34a4476b 467:47f54d0c46dd
     8             {'actions':['print'], 'extension':'pdf', 'label': gettext('print in PDF format')},
     8             {'actions':['print'], 'extension':'pdf', 'label': gettext('print in PDF format')},
     9             {'actions':['export'], 'extension':'pdf', 'label': gettext('download portable object format file (.pdf)')},
     9             {'actions':['export'], 'extension':'pdf', 'label': gettext('download portable object format file (.pdf)')},
    10             {'actions':['export'], 'extension':'latex', 'label': gettext('download latex file (.tex)')},
    10             {'actions':['export'], 'extension':'latex', 'label': gettext('download latex file (.tex)')},
    11             {'actions':['export'], 'extension':'odt', 'label': gettext('download open document file (.odt)')},
    11             {'actions':['export'], 'extension':'odt', 'label': gettext('download open document file (.odt)')},
    12             {'actions':['export'], 'extension':'doc', 'label': gettext('download microsoft word file (.doc)')},
    12             {'actions':['export'], 'extension':'doc', 'label': gettext('download microsoft word file (.doc)')},
    13             {'actions':['export'], 'extension':'docx', 'label': gettext('download microsoft word 2007 file (.docx)')},
    13             {'actions':['export'], 'extension':'docx', 'label': gettext('download microsoft word 2007 file (.docx)')}
    14             ];
    14             ];
    15 
    15 
    16 var pandoc_version_ary = sv_pandoc_version.split('.');
    16 var pandoc_version_ary = sv_pandoc_version.split('.');
    17 if (parseInt(pandoc_version_ary[0]) > 1 || (parseInt(pandoc_version_ary[0]) == 1 && parseInt(pandoc_version_ary[1]) > 8)) {
    17 if (parseInt(pandoc_version_ary[0]) > 1 || (parseInt(pandoc_version_ary[0]) == 1 && parseInt(pandoc_version_ary[1]) > 8)) {
    18   gFormats.push({'actions':['export'], 'extension':'epub', 'label': gettext('download ebook (.epub)')});
    18   gFormats.push({'actions':['export'], 'extension':'epub', 'label': gettext('download ebook (.epub)')});