Localize 'Export As...' dialog

This commit is contained in:
Juergen Spitzmueller 2013-09-14 12:36:58 +02:00
parent f660afd0d9
commit 53445f7b99

View File

@ -2385,7 +2385,7 @@ bool GuiView::exportBufferAs(Buffer & b)
dlg.setButton1(qt_("Documents|#o#O"), toqstr(lyxrc.document_path)); dlg.setButton1(qt_("Documents|#o#O"), toqstr(lyxrc.document_path));
QStringList types; QStringList types;
types << "Any supported format (*.*)"; types << qt_("Any supported format (*.*)");
Formats::const_iterator it = formats.begin(); Formats::const_iterator it = formats.begin();
vector<Format const *> export_formats; vector<Format const *> export_formats;
for (; it != formats.end(); ++it) for (; it != formats.end(); ++it)
@ -2395,7 +2395,9 @@ bool GuiView::exportBufferAs(Buffer & b)
sort(export_formats.begin(), export_formats.end(), cmp); sort(export_formats.begin(), export_formats.end(), cmp);
vector<Format const *>::const_iterator fit = export_formats.begin(); vector<Format const *>::const_iterator fit = export_formats.begin();
for (; fit != export_formats.end(); ++fit) for (; fit != export_formats.end(); ++fit)
types << toqstr((*fit)->prettyname() + " (*." + (*fit)->extension() + ")"); types << toqstr(bformat(_("%1$s (*.%2$s)"),
translateIfPossible(from_utf8((*fit)->prettyname())),
from_ascii((*fit)->extension())));
QString filter; QString filter;
FileDialog::Result result = FileDialog::Result result =
dlg.save(toqstr(fname.onlyPath().absFileName()), dlg.save(toqstr(fname.onlyPath().absFileName()),