mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +00:00
Localize 'Export As...' dialog
This commit is contained in:
parent
f660afd0d9
commit
53445f7b99
@ -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()),
|
||||||
|
Loading…
Reference in New Issue
Block a user