if (!isOK) {
isOK = true;
listingsTB->setPlainText(
if (!isOK) {
isOK = true;
listingsTB->setPlainText(
- qt_("Input listings parameters on the right. Enter ? for a list of parameters."));
+ qt_("Input listing parameters on the right. Enter ? for a list of parameters."));
okPB->setEnabled(true);
}
} catch (invalidParam & e) {
okPB->setEnabled(true);
}
} catch (invalidParam & e) {
dialog_->labelLE->clear();
dialog_->listingsED->clear();
dialog_->listingsTB->setPlainText(
dialog_->labelLE->clear();
dialog_->listingsED->clear();
dialog_->listingsTB->setPlainText(
- qt_("Input listings parameters on the right. Enter ? for a list of parameters."));
+ qt_("Input listing parameters on the right. Enter ? for a list of parameters."));
string cmdname = controller().params().getCmdName();
if (cmdname != "include" &&
string cmdname = controller().params().getCmdName();
if (cmdname != "include" &&
if (!isOK) {
isOK = true;
listingsTB->setPlainText(
if (!isOK) {
isOK = true;
listingsTB->setPlainText(
- qt_("Input listings parameters on the right. Enter ? for a list of parameters."));
+ qt_("Input listing parameters on the right. Enter ? for a list of parameters."));
okPB->setEnabled(true);
applyPB->setEnabled(true);
}
okPB->setEnabled(true);
applyPB->setEnabled(true);
}
typedef QController<ControlListings, QView<QListingsDialog> > listings_wrap_base_class;
QListings::QListings(Dialog & parent)
typedef QController<ControlListings, QView<QListingsDialog> > listings_wrap_base_class;
QListings::QListings(Dialog & parent)
- : listings_wrap_base_class(parent, _("Program Listings Settings"))
+ : listings_wrap_base_class(parent, _("Program Listing Settings"))
bcview().setApply(dialog_->applyPB);
bcview().setCancel(dialog_->closePB);
dialog_->listingsTB->setPlainText(
bcview().setApply(dialog_->applyPB);
bcview().setCancel(dialog_->closePB);
dialog_->listingsTB->setPlainText(
- qt_("Input listings parameters on the right. Enter ? for a list of parameters."));
+ qt_("Input listing parameters on the right. Enter ? for a list of parameters."));
{
// set default values
dialog_->listingsTB->setPlainText(
{
// set default values
dialog_->listingsTB->setPlainText(
- qt_("Input listings parameters on the right. Enter ? for a list of parameters."));
+ qt_("Input listing parameters on the right. Enter ? for a list of parameters."));
dialog_->languageCO->setCurrentIndex(findToken(languages, "no language"));
dialog_->dialectCO->setCurrentIndex(0);
dialog_->floatCB->setChecked(false);
dialog_->languageCO->setCurrentIndex(findToken(languages, "no language"));
dialog_->dialectCO->setCurrentIndex(0);
dialog_->floatCB->setChecked(false);
</item>
<item>
<property name="text" >
</item>
<item>
<property name="text" >
- <string>Listings</string>
+ <string>Listing</string>
</property>
</item>
</widget>
</property>
</item>
</widget>
<item row="0" column="1" >
<widget class="QTextEdit" name="listingsED" >
<property name="toolTip" >
<item row="0" column="1" >
<widget class="QTextEdit" name="listingsED" >
<property name="toolTip" >
- <string>Input listings parameters here. Enter ? for a list of parameters.</string>
+ <string>Input listing parameters here. Enter ? for a list of parameters.</string>
</property>
</widget>
</item>
</property>
</widget>
</item>
<enum>Qt::LeftToRight</enum>
</property>
<property name="title" >
<enum>Qt::LeftToRight</enum>
</property>
<property name="title" >
- <string>Listings settings</string>
+ <string>Listing settings</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
docstring const InsetListings::editMessage() const
{
docstring const InsetListings::editMessage() const
{
- return _("Opened Listings Inset");
+ return _("Opened Listing Inset");
void InsetListings::setButtonLabel()
{
// FIXME UNICODE
void InsetListings::setButtonLabel()
{
// FIXME UNICODE
- setLabel(isOpen() ? _("Listings") : getNewLabel(_("Listings")));
+ setLabel(isOpen() ? _("Listing") : getNewLabel(_("Listing")));
all_params_["caption"] =
ListingsParam("", false, ALL, "", _(
"This parameter should not be entered here. Please use caption "
all_params_["caption"] =
ListingsParam("", false, ALL, "", _(
"This parameter should not be entered here. Please use caption "
- "editbox (Include dialog) or insert->caption (listings inset)"));
+ "editbox (Include dialog) or insert->caption (listing inset)"));
// this option is not handled in the parameter box
all_params_["label"] =
ListingsParam("", false, ALL, "",_(
"This parameter should not be entered here. Please use label "
// this option is not handled in the parameter box
all_params_["label"] =
ListingsParam("", false, ALL, "",_(
"This parameter should not be entered here. Please use label "
- "editbox (Include dialog) or insert->caption (listings inset)"));
+ "editbox (Include dialog) or insert->caption (listing inset)"));
all_params_["nolol"] =
ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_["captionpos"] =
all_params_["nolol"] =
ListingsParam("", false, TRUEFALSE, "", empty_hint);
all_params_["captionpos"] =
ListingsParam const & ParValidator::param(string const & name) const
{
if (name.empty())
ListingsParam const & ParValidator::param(string const & name) const
{
if (name.empty())
- throw invalidParam(_("Invalid (empty) listings param name."));
+ throw invalidParam(_("Invalid (empty) listing parameter name."));
if (name == "?")
throw invalidParam(bformat(
if (name == "?")
throw invalidParam(bformat(
- _("Available listings parameters are %1$s"), from_ascii(all_param_names_)));
+ _("Available listing parameters are %1$s"), from_ascii(all_param_names_)));
// locate name in parameter table
ListingsParams::const_iterator it = all_params_.find(name);
// locate name in parameter table
ListingsParams::const_iterator it = all_params_.find(name);
}
}
if (matching_names.empty())
}
}
if (matching_names.empty())
- throw invalidParam(bformat(_("Unknown listings param name: %1$s"),
+ throw invalidParam(bformat(_("Unknown listing parameter name: %1$s"),
from_utf8(name)));
else
throw invalidParam(bformat(_("Parameters starting with '%1$s': %2$s"),
from_utf8(name)));
else
throw invalidParam(bformat(_("Parameters starting with '%1$s': %2$s"),