* src/docgen/AbiWord2Doc.py, src/docgen/AsciiDoc.py,
src/docgen/HtmlDoc.py, src/docgen/KwordDoc.py, src/docgen/OpenOfficeDoc.py, src/docgen/PdfDoc.py, src/docgen/RTFDoc.py: Translate type descriptions; correct print_label. svn: r3491
This commit is contained in:
parent
a4f141484c
commit
f2d5d512d1
@ -11,6 +11,11 @@
|
|||||||
* src/plugins/Ancestors.py (event_info): Check whether place
|
* src/plugins/Ancestors.py (event_info): Check whether place
|
||||||
exists before getting its title (#1014412).
|
exists before getting its title (#1014412).
|
||||||
|
|
||||||
|
* src/docgen/AbiWord2Doc.py, src/docgen/AsciiDoc.py,
|
||||||
|
src/docgen/HtmlDoc.py, src/docgen/KwordDoc.py,
|
||||||
|
src/docgen/OpenOfficeDoc.py, src/docgen/PdfDoc.py,
|
||||||
|
src/docgen/RTFDoc.py: Translate type descriptions; correct print_label.
|
||||||
|
|
||||||
2004-08-23 Tim Waugh <twaugh@redhat.com>
|
2004-08-23 Tim Waugh <twaugh@redhat.com>
|
||||||
* install-sh: Removed this generated file.
|
* install-sh: Removed this generated file.
|
||||||
|
|
||||||
|
@ -324,9 +324,9 @@ try:
|
|||||||
mtype = GrampsMime.get_description('application/x-abiword')
|
mtype = GrampsMime.get_description('application/x-abiword')
|
||||||
|
|
||||||
if Utils.search_for(prog[0]):
|
if Utils.search_for(prog[0]):
|
||||||
print_label=_("Open in %s" % prog[1])
|
print_label=_("Open in %s") % prog[1]
|
||||||
else:
|
else:
|
||||||
print_label=None
|
print_label=None
|
||||||
Plugins.register_text_doc(mtype,AbiWordDoc,1,1,1,".abw", print_label)
|
Plugins.register_text_doc(mtype,AbiWordDoc,1,1,1,".abw", print_label)
|
||||||
except:
|
except:
|
||||||
Plugins.register_text_doc('AbiWord document',AbiWordDoc,1,1,1,".abw", None)
|
Plugins.register_text_doc(_('AbiWord document'),AbiWordDoc,1,1,1,".abw", None)
|
||||||
|
@ -363,11 +363,11 @@ try:
|
|||||||
mtype = GrampsMime.get_description('text/plain')
|
mtype = GrampsMime.get_description('text/plain')
|
||||||
|
|
||||||
if Utils.search_for(mprog[0]):
|
if Utils.search_for(mprog[0]):
|
||||||
print_label=_("Open in %s" % mprog[1])
|
print_label=_("Open in %s") % mprog[1]
|
||||||
else:
|
else:
|
||||||
print_label=None
|
print_label=None
|
||||||
|
|
||||||
Plugins.register_text_doc(mtype,AsciiDoc,1,1,1,".txt", print_label)
|
Plugins.register_text_doc(mtype,AsciiDoc,1,1,1,".txt", print_label)
|
||||||
except:
|
except:
|
||||||
Plugins.register_text_doc("Plain Text",AsciiDoc,1,1,1,".txt", None)
|
Plugins.register_text_doc(_("Plain Text"),AsciiDoc,1,1,1,".txt", None)
|
||||||
|
|
||||||
|
@ -489,4 +489,4 @@ try:
|
|||||||
print_label=None
|
print_label=None
|
||||||
Plugins.register_text_doc(mtype,HtmlDoc,1,0,1,".html", print_label)
|
Plugins.register_text_doc(mtype,HtmlDoc,1,0,1,".html", print_label)
|
||||||
except:
|
except:
|
||||||
Plugins.register_text_doc('HTML',HtmlDoc,1,0,1,".html", None)
|
Plugins.register_text_doc(_('HTML'),HtmlDoc,1,0,1,".html", None)
|
||||||
|
@ -497,5 +497,5 @@ try:
|
|||||||
print_label=None
|
print_label=None
|
||||||
Plugins.register_text_doc(mtype, KwordDoc, 1, 0, 1, ".kwd", print_label)
|
Plugins.register_text_doc(mtype, KwordDoc, 1, 0, 1, ".kwd", print_label)
|
||||||
except:
|
except:
|
||||||
Plugins.register_text_doc('KWord', KwordDoc, 1, 0, 1, ".kwd", print_label)
|
Plugins.register_text_doc(_('KWord'), KwordDoc, 1, 0, 1, ".kwd", print_label)
|
||||||
|
|
||||||
|
@ -976,6 +976,7 @@ def pt2cm(val):
|
|||||||
# Register plugins
|
# Register plugins
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
print_label = None
|
||||||
try:
|
try:
|
||||||
import Utils
|
import Utils
|
||||||
|
|
||||||
@ -987,17 +988,10 @@ try:
|
|||||||
else:
|
else:
|
||||||
print_label = None
|
print_label = None
|
||||||
|
|
||||||
Plugins.register_text_doc(mtype,OpenOfficeDoc,1,1,1,".sxw", print_label)
|
Plugins.register_text_doc(mtype,OpenOfficeDoc,1,1,1,".sxw",print_label)
|
||||||
Plugins.register_book_doc(mtype,OpenOfficeDoc,1,1,1,".sxw")
|
Plugins.register_book_doc(mtype,OpenOfficeDoc,1,1,1,".sxw")
|
||||||
|
Plugins.register_draw_doc(mtype,OpenOfficeDoc,1,1, ".sxd",print_label);
|
||||||
except:
|
except:
|
||||||
Plugins.register_text_doc('OpenOffice.org Writer', OpenOfficeDoc,1,1,1,".sxw", None)
|
Plugins.register_text_doc(_('OpenOffice.org Writer'), OpenOfficeDoc,1,1,1,".sxw", None)
|
||||||
Plugins.register_book_doc("OpenOffice.org Writer", OpenOfficeDoc,1,1,1,".sxw")
|
Plugins.register_book_doc(_("OpenOffice.org Writer"), OpenOfficeDoc,1,1,1,".sxw")
|
||||||
|
Plugins.register_draw_doc(_("OpenOffice.org Draw"), OpenOfficeDoc,1,1,".sxd",None);
|
||||||
|
|
||||||
Plugins.register_draw_doc(
|
|
||||||
_("OpenOffice.org Draw"),
|
|
||||||
OpenOfficeDoc,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
".sxd",
|
|
||||||
print_label);
|
|
||||||
|
@ -583,24 +583,17 @@ print_label = None
|
|||||||
try:
|
try:
|
||||||
import Utils
|
import Utils
|
||||||
|
|
||||||
prog = GrampsMime.get_application("application/pdf")
|
mprog = GrampsMime.get_application("application/pdf")
|
||||||
type = GrampsMime.get_description("application/pdf")
|
mtype = GrampsMime.get_description("application/pdf")
|
||||||
|
|
||||||
if Utils.search_for(prog[0]):
|
if Utils.search_for(mprog[0]):
|
||||||
print_label=_("Open in %s") % prog[1]
|
print_label=_("Open in %s") % mprog[1]
|
||||||
else:
|
else:
|
||||||
print_label=None
|
print_label=None
|
||||||
Plugins.register_text_doc(type, PdfDoc, 1, 0, 1, ".pdf", print_label)
|
Plugins.register_text_doc(mtype, PdfDoc, 1, 0, 1, ".pdf", print_label)
|
||||||
Plugins.register_draw_doc(type, PdfDoc, 1, 1, ".pdf", print_label)
|
Plugins.register_draw_doc(mtype, PdfDoc, 1, 1, ".pdf", print_label)
|
||||||
|
Plugins.register_book_doc(mtype,classref=PdfDoc,table=1,paper=1,style=1,ext=".pdf",print_label)
|
||||||
except:
|
except:
|
||||||
Plugins.register_text_doc('PDF document', PdfDoc, 1, 0, 1,".pdf", None)
|
Plugins.register_text_doc(_('PDF document'), PdfDoc, 1, 0, 1,".pdf", None)
|
||||||
Plugins.register_draw_doc('PDF document', PdfDoc, 1, 1, ".pdf", None)
|
Plugins.register_draw_doc(_('PDF document'), PdfDoc, 1, 1, ".pdf", None)
|
||||||
|
Plugins.register_book_doc(name=_("PDF document"),classref=PdfDoc,table=1,paper=1,style=1,ext=".pdf")
|
||||||
Plugins.register_book_doc(
|
|
||||||
name=_("PDF"),
|
|
||||||
classref=PdfDoc,
|
|
||||||
table=1,
|
|
||||||
paper=1,
|
|
||||||
style=1,
|
|
||||||
ext=".pdf"
|
|
||||||
)
|
|
||||||
|
@ -431,4 +431,4 @@ try:
|
|||||||
print_label=None
|
print_label=None
|
||||||
Plugins.register_text_doc(mtype, RTFDoc, 1, 0, 1, ".rtf", print_label)
|
Plugins.register_text_doc(mtype, RTFDoc, 1, 0, 1, ".rtf", print_label)
|
||||||
except:
|
except:
|
||||||
Plugins.register_text_doc('RTF document', RTFDoc, 1, 0, 1, ".rtf", None)
|
Plugins.register_text_doc(_('RTF document'), RTFDoc, 1, 0, 1, ".rtf", None)
|
||||||
|
Loading…
Reference in New Issue
Block a user