mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
* src/frontends/qt4/QDocument.cpp:
* src/frontends/qt4/QListings.cpp: - mark gui strings as translatable. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18624 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
aa325b4d32
commit
3cb05c6016
@ -267,19 +267,19 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
|
|||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
|
|
||||||
for (int n = 0; tex_fonts_roman[n][0]; ++n) {
|
for (int n = 0; tex_fonts_roman[n][0]; ++n) {
|
||||||
QString font = toqstr(tex_fonts_roman_gui[n]);
|
QString font = qt_(tex_fonts_roman_gui[n]);
|
||||||
if (!form_->controller().isFontAvailable(tex_fonts_roman[n]))
|
if (!form_->controller().isFontAvailable(tex_fonts_roman[n]))
|
||||||
font += qt_(" (not installed)");
|
font += qt_(" (not installed)");
|
||||||
fontModule->fontsRomanCO->addItem(font);
|
fontModule->fontsRomanCO->addItem(font);
|
||||||
}
|
}
|
||||||
for (int n = 0; tex_fonts_sans[n][0]; ++n) {
|
for (int n = 0; tex_fonts_sans[n][0]; ++n) {
|
||||||
QString font = toqstr(tex_fonts_sans_gui[n]);
|
QString font = qt_(tex_fonts_sans_gui[n]);
|
||||||
if (!form_->controller().isFontAvailable(tex_fonts_sans[n]))
|
if (!form_->controller().isFontAvailable(tex_fonts_sans[n]))
|
||||||
font += qt_(" (not installed)");
|
font += qt_(" (not installed)");
|
||||||
fontModule->fontsSansCO->addItem(font);
|
fontModule->fontsSansCO->addItem(font);
|
||||||
}
|
}
|
||||||
for (int n = 0; tex_fonts_monospaced[n][0]; ++n) {
|
for (int n = 0; tex_fonts_monospaced[n][0]; ++n) {
|
||||||
QString font = toqstr(tex_fonts_monospaced_gui[n]);
|
QString font = qt_(tex_fonts_monospaced_gui[n]);
|
||||||
if (!form_->controller().isFontAvailable(tex_fonts_monospaced[n]))
|
if (!form_->controller().isFontAvailable(tex_fonts_monospaced[n]))
|
||||||
font += qt_(" (not installed)");
|
font += qt_(" (not installed)");
|
||||||
fontModule->fontsTypewriterCO->addItem(font);
|
fontModule->fontsTypewriterCO->addItem(font);
|
||||||
|
@ -135,10 +135,10 @@ dialect_info const dialects[] = {
|
|||||||
{ "IBM", "Simula", "IBM", false },
|
{ "IBM", "Simula", "IBM", false },
|
||||||
{ "tk", "tcl", "tk", false },
|
{ "tk", "tcl", "tk", false },
|
||||||
{ "AlLaTeX", "TeX", "AlLaTeX", false },
|
{ "AlLaTeX", "TeX", "AlLaTeX", false },
|
||||||
{ "common", "TeX", N_("common"), false },
|
{ "common", "TeX", "common", false },
|
||||||
{ "LaTeX", "TeX", "LaTeX", false },
|
{ "LaTeX", "TeX", "LaTeX", false },
|
||||||
{ "plain", "TeX", N_("plain"), true },
|
{ "plain", "TeX", "plain", true },
|
||||||
{ "primitive", "TeX", N_("primitive"), false },
|
{ "primitive", "TeX", "primitive", false },
|
||||||
{ "AMS", "VHDL", "AMS", false },
|
{ "AMS", "VHDL", "AMS", false },
|
||||||
{ "97", "VRML", "97", true }
|
{ "97", "VRML", "97", true }
|
||||||
};
|
};
|
||||||
@ -193,13 +193,13 @@ QListingsDialog::QListingsDialog(QListings * form)
|
|||||||
connect(listingsED, SIGNAL(textChanged()), this, SLOT(validate_listings_params()));
|
connect(listingsED, SIGNAL(textChanged()), this, SLOT(validate_listings_params()));
|
||||||
|
|
||||||
for (int n = 0; languages[n][0]; ++n)
|
for (int n = 0; languages[n][0]; ++n)
|
||||||
languageCO->addItem(languages_gui[n]);
|
languageCO->addItem(qt_(languages_gui[n]));
|
||||||
|
|
||||||
for (int n = 0; font_styles[n][0]; ++n)
|
for (int n = 0; font_styles[n][0]; ++n)
|
||||||
fontstyleCO->addItem(font_styles_gui[n]);
|
fontstyleCO->addItem(qt_(font_styles_gui[n]));
|
||||||
|
|
||||||
for (int n = 0; font_sizes[n][0]; ++n) {
|
for (int n = 0; font_sizes[n][0]; ++n) {
|
||||||
QString font = toqstr(font_sizes_gui[n]);
|
QString font = qt_(font_sizes_gui[n]);
|
||||||
fontsizeCO->addItem(font);
|
fontsizeCO->addItem(font);
|
||||||
numberFontSizeCO->addItem(font);
|
numberFontSizeCO->addItem(font);
|
||||||
}
|
}
|
||||||
@ -331,7 +331,7 @@ void QListingsDialog::validate_listings_params()
|
|||||||
}
|
}
|
||||||
} catch (invalidParam & e) {
|
} catch (invalidParam & e) {
|
||||||
isOK = false;
|
isOK = false;
|
||||||
listingsTB->setPlainText(toqstr(e.what()));
|
listingsTB->setPlainText(qt_(e.what()));
|
||||||
okPB->setEnabled(false);
|
okPB->setEnabled(false);
|
||||||
applyPB->setEnabled(false);
|
applyPB->setEnabled(false);
|
||||||
}
|
}
|
||||||
@ -374,10 +374,10 @@ void QListingsDialog::on_languageCO_currentIndexChanged(int index)
|
|||||||
|
|
||||||
for (size_t i = 0; i < nr_dialects; ++i) {
|
for (size_t i = 0; i < nr_dialects; ++i) {
|
||||||
if (language == dialects[i].language) {
|
if (language == dialects[i].language) {
|
||||||
dialectCO->addItem(dialects[i].gui);
|
dialectCO->addItem(qt_(dialects[i].gui));
|
||||||
if (dialects[i].is_default)
|
if (dialects[i].is_default)
|
||||||
default_dialect =
|
default_dialect =
|
||||||
dialectCO->findText(dialects[i].gui);
|
dialectCO->findText(qt_(dialects[i].gui));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dialectCO->setCurrentIndex(default_dialect);
|
dialectCO->setCurrentIndex(default_dialect);
|
||||||
@ -495,7 +495,7 @@ void QListings::update_contents()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
n = dialog_->dialectCO->findText(toqstr(dialect_gui));
|
n = dialog_->dialectCO->findText(qt_(dialect_gui));
|
||||||
if (n >= 0)
|
if (n >= 0)
|
||||||
dialog_->dialectCO->setCurrentIndex(n);
|
dialog_->dialectCO->setCurrentIndex(n);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user