Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 6259 → Rev 6260

/branches/Version13x/Scribus/scribus/smreplacedia.cpp
23,7 → 23,7
layout->addWidget(deleteLabel);
optionsCombo = new QComboBox(this, "optionsCombo");
optionsCombo->insertStringList(replaceOptions);
optionsCombo->insertItem(tr("No Style"), 0);
optionsCombo->insertItem( tr("No Style"), 0);
layout->addWidget(optionsCombo);
}
 
/branches/Version13x/Scribus/scribus/stylemanager.cpp
76,15 → 76,15
 
void StyleManager::languageChange()
{
nameLabel->setText(tr("Name:"));
nameLabel->setText( tr("Name:"));
 
resetButton->setText(tr("&Reset"));
applyButton->setText(tr("&Apply"));
resetButton->setText( tr("&Reset"));
applyButton->setText( tr("&Apply"));
okButton->setText(isEditMode_ ? tr("<< &Done") : tr("&Edit >>"));
newButton->setText(tr("&New"));
importButton->setText(tr("&Import"));
cloneButton->setText(tr("&Clone"));
deleteButton->setText(tr("&Delete"));
newButton->setText( tr("&New"));
importButton->setText( tr("&Import"));
cloneButton->setText( tr("&Clone"));
deleteButton->setText( tr("&Delete"));
 
QToolTip::add(resetButton, tr("Reset all changes"));
QToolTip::add(applyButton, tr("Apply all changes"));
114,13 → 114,13
addNewType(items_.at(i));
 
rightClickPopup_->clear();
rightClickPopup_->insertItem(tr("New"), newPopup_);
rightClickPopup_->insertItem(tr("Import"), this, SLOT(slotImport()));
rightClickPopup_->insertItem( tr("New"), newPopup_);
rightClickPopup_->insertItem( tr("Import"), this, SLOT(slotImport()));
rightClickPopup_->insertSeparator();
rcpCloneId_ = rightClickPopup_->insertItem(tr("Clone"), this, SLOT(slotClone()));
rcpToScrapId_ = rightClickPopup_->insertItem(tr("Send to Scrapbook"), this, SLOT(slotScrap()));
rcpCloneId_ = rightClickPopup_->insertItem( tr("Clone"), this, SLOT(slotClone()));
rcpToScrapId_ = rightClickPopup_->insertItem( tr("Send to Scrapbook"), this, SLOT(slotScrap()));
rightClickPopup_->insertSeparator();
rcpDeleteId_ = rightClickPopup_->insertItem(tr("Delete"), this, SLOT(slotDelete()));
rcpDeleteId_ = rightClickPopup_->insertItem( tr("Delete"), this, SLOT(slotDelete()));
}
 
void StyleManager::currentDoc(ScribusDoc *doc)
331,7 → 331,7
disconnect(styleView, SIGNAL(selectionChanged()), this, SLOT(slotSetupWidget()));
slotApply();
styleView->setSelectionMode(QListView::Multi);
okButton->setText(QString("%1 >>").arg(tr("&Edit")));
okButton->setText(QString("%1 >>").arg( tr("&Edit")));
editFrame->hide();
applyButton->hide();
resetButton->hide();
373,7 → 373,7
editPosition_.setY(y());
prefs_->set("eX", x());
prefs_->set("eY", y());
okButton->setText(QString("<< %1").arg(tr("&Done")));
okButton->setText(QString("<< %1").arg( tr("&Done")));
editFrame->show();
applyButton->show();
resetButton->show();
873,9 → 873,9
 
void ShortcutWidget::languageChange()
{
noKey->setText(tr("&No Key"));
userDef->setText(tr("&User Defined Key"));
setKeyButton->setText(tr("Set &Key"));
noKey->setText( tr("&No Key"));
userDef->setText( tr("&User Defined Key"));
setKeyButton->setText( tr("Set &Key"));
}
 
/branches/Version13x/Scribus/scribus/smtextstylewidgets.cpp
42,9 → 42,9
distancesBoxLayout->setMargin( 10 );
 
lineSpacingMode_ = new SMScComboBox(distancesBox, "linespacingCombo");
lineSpacingMode_->insertItem(tr("Fixed Linespacing"));
lineSpacingMode_->insertItem(tr("Automatic Linespacing"));
lineSpacingMode_->insertItem(tr("Align to Baseline Grid"));
lineSpacingMode_->insertItem( tr("Fixed Linespacing"));
lineSpacingMode_->insertItem( tr("Automatic Linespacing"));
lineSpacingMode_->insertItem( tr("Align to Baseline Grid"));
distancesBoxLayout->addMultiCellWidget(lineSpacingMode_, 0, 0, 1, 3);
connect(lineSpacingMode_, SIGNAL(highlighted(int)), this, SLOT(slotLineSpacingModeChanged(int)));
 
55,7 → 55,7
distancesBoxLayout->addWidget(pixmapLabel0, 1, 0);
 
lineSpacing_ = new SMMSpinBox(1, 300, distancesBox, 1 );
lineSpacing_->setSuffix(tr( " pt" ));
lineSpacing_->setSuffix( tr( " pt" ));
distancesBoxLayout->addWidget(lineSpacing_, 1,1);
 
pixmapLabel3 = new QLabel( "", distancesBox, "TextLabel1_2_2" );
89,16 → 89,16
void SMPStyleWidget::languageChange()
{
lineSpacingMode_->clear();
lineSpacingMode_->insertItem(tr("Fixed Linespacing"));
lineSpacingMode_->insertItem(tr("Automatic Linespacing"));
lineSpacingMode_->insertItem(tr("Align to Baseline Grid"));
lineSpacing_->setSuffix(tr(" pt"));
spaceAbove_->setSuffix(tr(" pt"));
spaceBelow_->setSuffix(tr(" pt"));
parentLabel->setText(tr("Parent"));
distancesBox->setTitle(tr("Distances and Alignment"));
dropCapsBox->setTitle(tr("Drop Caps"));
tabsBox->setTitle(tr("Tabulators and Indentation"));
lineSpacingMode_->insertItem( tr("Fixed Linespacing"));
lineSpacingMode_->insertItem( tr("Automatic Linespacing"));
lineSpacingMode_->insertItem( tr("Align to Baseline Grid"));
lineSpacing_->setSuffix( tr(" pt"));
spaceAbove_->setSuffix( tr(" pt"));
spaceBelow_->setSuffix( tr(" pt"));
parentLabel->setText( tr("Parent"));
distancesBox->setTitle( tr("Distances and Alignment"));
dropCapsBox->setTitle( tr("Drop Caps"));
tabsBox->setTitle( tr("Tabulators and Indentation"));
tabWidget->setTabLabel(tabWidget->page(0), tr("Properties"));
tabWidget->setTabLabel(tabWidget->page(1), tr("Character Style"));
}
121,7 → 121,7
dropCapsBoxLayout->addWidget(dropCapLines_, 0, 1);
 
dropCapOffset_ = new SMMSpinBox(-3000, 3000, dropCapsBox, 1);
dropCapOffset_->setSuffix(tr(" pt"));
dropCapOffset_->setSuffix( tr(" pt"));
capLabel2 = new QLabel(dropCapLines_, tr("Distance from Text:"), dropCapsBox, "CapLabel2");
dropCapsBoxLayout->addWidget(capLabel2, 1, 0);
dropCapsBoxLayout->addWidget(dropCapOffset_, 1, 1);
156,9 → 156,9
const ParagraphStyle *parent = dynamic_cast<const ParagraphStyle*>(pstyle.parent());
 
lineSpacingMode_->clear();
lineSpacingMode_->insertItem(tr("Fixed Linespacing"));
lineSpacingMode_->insertItem(tr("Automatic Linespacing"));
lineSpacingMode_->insertItem(tr("Align to Baseline Grid"));
lineSpacingMode_->insertItem( tr("Fixed Linespacing"));
lineSpacingMode_->insertItem( tr("Automatic Linespacing"));
lineSpacingMode_->insertItem( tr("Align to Baseline Grid"));
 
hasParent_ = hasParent;
 
243,12 → 243,12
// ASK Avox!
// bool useBaselineGrid() const { return BaseAdj==NOVALUE && parent()? inh().useBaselineGrid() : BaseAdj > 0; }
 
cpage->parentLabel->setText(tr("Based on"));
cpage->parentLabel->setText( tr("Based on"));
cpage->show(pstyle.charStyle(), cstyles);
 
if (hasParent)
{
cpage->parentCombo->insertItem(tr("Parent's Character Style"), 1);
cpage->parentCombo->insertItem( tr("Parent's Character Style"), 1);
if (pstyle.charStyle().hasParent() && pstyle.charStyle().parent()->hasName())
{
QString pname = pstyle.charStyle().parent()->name();
498,12 → 498,12
 
void SMCStylePage::languageChange()
{
parentLabel->setText(tr("Parent"));
fontVScale_->setSuffix(tr(" %"));
fontHScale_->setSuffix(tr(" %"));
baselineOffset_->setSuffix(tr(" %"));
tracking_->setSuffix(tr(" %"));
fontSize_->setSuffix(tr(" pt"));
parentLabel->setText( tr("Parent"));
fontVScale_->setSuffix( tr(" %"));
fontHScale_->setSuffix( tr(" %"));
baselineOffset_->setSuffix( tr(" %"));
tracking_->setSuffix( tr(" %"));
fontSize_->setSuffix( tr(" pt"));
}
 
void SMCStylePage::fillLangCombo(QMap<QString,QString> langMap, const QString &defaultLang)
/branches/Version13x/Scribus/scribus/sctoolbar.cpp
259,11 → 259,11
 
dockMenu = new QPopupMenu(0, "dockMenu");
dockMenu->setCheckable(true);
dockMenu->insertItem(tr("Top"), this, SLOT(slotTop()));
dockMenu->insertItem(tr("Right"), this, SLOT(slotRight()));
dockMenu->insertItem(tr("Bottom"), this, SLOT(slotBottom()));
dockMenu->insertItem(tr("Left"), this, SLOT(slotLeft()));
popup->insertItem(tr("Allow Docking To..."), dockMenu);
dockMenu->insertItem( tr("Top"), this, SLOT(slotTop()));
dockMenu->insertItem( tr("Right"), this, SLOT(slotRight()));
dockMenu->insertItem( tr("Bottom"), this, SLOT(slotBottom()));
dockMenu->insertItem( tr("Left"), this, SLOT(slotLeft()));
popup->insertItem( tr("Allow Docking To..."), dockMenu);
dockMenu->setItemChecked(dockMenu->idAt(0), dockTop);
dockMenu->setItemChecked(dockMenu->idAt(1), dockRight);
dockMenu->setItemChecked(dockMenu->idAt(2), dockBottom);
271,9 → 271,9
 
orientationMenu = new QPopupMenu(0, "orientationMenu");
orientationMenu->setCheckable(true);
orientationMenu->insertItem(tr("Horizontal"), this, SLOT(slotHor()));
orientationMenu->insertItem(tr("Vertical"), this, SLOT(slotVert()));
popup->insertItem(tr("Floating Orientation..."), orientationMenu);
orientationMenu->insertItem( tr("Horizontal"), this, SLOT(slotHor()));
orientationMenu->insertItem( tr("Vertical"), this, SLOT(slotVert()));
popup->insertItem( tr("Floating Orientation..."), orientationMenu);
if (floatOrientation == QDockWindow::Horizontal)
{
orientationMenu->setItemChecked(orientationMenu->idAt(0), true);
/branches/Version13x/Scribus/scribus/useprintermarginsdialog.cpp
41,7 → 41,7
{
printerComboBox->insertStringList(printerNames);
getPrinterMarginValues(printerNames.first());
marginsGroupBox->setTitle(tr("Minimum Margins for Page Size %1").arg(pageSize));
marginsGroupBox->setTitle( tr("Minimum Margins for Page Size %1").arg(pageSize));
connect(printerComboBox, SIGNAL(activated(const QString&)), this, SLOT(getPrinterMarginValues(const QString&)));
}
connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
/branches/Version13x/Scribus/scribus/helpbrowser.cpp
307,9 → 307,9
searchingButtonLayout->addWidget(searchingButton);
searchingMainLayout->addLayout(searchingButtonLayout);
searchingView = new QListView(tabSearching, "searchingView");
searchingView->addColumn(tr("Contents"));
searchingView->addColumn(tr("Relevance"));
searchingView->addColumn(tr("Link" ) ,0);
searchingView->addColumn( tr("Contents"));
searchingView->addColumn( tr("Relevance"));
searchingView->addColumn( tr("Link" ) ,0);
searchingView->setColumnWidthMode( 0, QListView::Maximum );
searchingView->setColumnWidthMode( 1, QListView::Manual );
searchingView->setSorting(1, false);
/branches/Version13x/Scribus/scribus/aboutplugins.cpp
61,12 → 61,12
QString html;
html = QString("<html><body><h1>%1</h1>").arg(plugin->fullTrName());
html += "<table>";
html += QString("<tr><th>%1</th><td>%2</td></tr>").arg(tr("Filename:")).arg(fi.baseName(true));
html += QString("<tr><th>%1</th><td>%2</td></tr>").arg(tr("Version:")).arg(about->version);
html += QString("<tr><th>%1</th><td>%2</td></tr>").arg( tr("Filename:")).arg(fi.baseName(true));
html += QString("<tr><th>%1</th><td>%2</td></tr>").arg( tr("Version:")).arg(about->version);
QString ena;
pluginManager.enabled(name) ? ena = tr("Yes") : ena = tr("No");
html += QString("<tr><th>%1</th><td>%2</td></tr>").arg(tr("Enabled:")).arg(ena);
html += QString("<tr><th>%1</th><td>%2</td></tr>").arg(tr("Release Date:")).arg(about->releaseDate.toString());
html += QString("<tr><th>%1</th><td>%2</td></tr>").arg( tr("Enabled:")).arg(ena);
html += QString("<tr><th>%1</th><td>%2</td></tr>").arg( tr("Release Date:")).arg(about->releaseDate.toString());
html += "</table>";
QString desc;
if (!about->shortDescription.isNull())
73,10 → 73,10
desc += QString("<p>%1</p>").arg(about->shortDescription);
if (!about->description.isNull())
desc += QString("<p>%1</p>").arg(about->description);
html += QString("<h2>%1</h2>%2").arg(tr("Description:")).arg(desc);
html += QString("<h2>%1</h2><p>%2</p>").arg(tr("Author(s):")).arg(htmlize(about->authors));
html += QString("<h2>%1</h2><p>%2</p>").arg(tr("Copyright:")).arg(about->copyright);
html += QString("<h2>%1</h2><p>%2</p>").arg(tr("License:")).arg(about->license);
html += QString("<h2>%1</h2>%2").arg( tr("Description:")).arg(desc);
html += QString("<h2>%1</h2><p>%2</p>").arg( tr("Author(s):")).arg(htmlize(about->authors));
html += QString("<h2>%1</h2><p>%2</p>").arg( tr("Copyright:")).arg(about->copyright);
html += QString("<h2>%1</h2><p>%2</p>").arg( tr("License:")).arg(about->license);
html += "</html>";
infoBrowser->setText(html);
// Use the plugin to delete the about info, so we don't
/branches/Version13x/Scribus/scribus/scwinprint.cpp
320,7 → 320,7
bool usingGui = ScCore->usingGUI();
if ( usingGui )
{
progress.reset( new MultiProgressDialog(tr("Printing..."), CommonStrings::tr_Cancel, doc->scMW(), "printprogress") );
progress.reset( new MultiProgressDialog( tr("Printing..."), CommonStrings::tr_Cancel, doc->scMW(), "printprogress") );
progress->setOverallTotalSteps( options.pageNumbers.size() );
progress->setOverallProgress(0);
connect(progress->buttonCancel, SIGNAL(clicked()), this, SLOT(cancelRequested()));
/branches/Version13x/Scribus/scribus/edit1format.cpp
305,7 → 305,7
previewCaption->setChecked(PrefsManager::instance()->appPrefs.haveStylePreview);
QSpacerItem* spacerBg = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
previewBgColor = new QPushButton(this, "previewBgColor");
previewBgColor->setText(tr("Background"));
previewBgColor->setText( tr("Background"));
layoutPrevSet->addWidget(previewCaption);
layoutPrevSet->addItem(spacerBg);
layoutPrevSet->addWidget(previewBgColor);
/branches/Version13x/Scribus/scribus/tabtools.cpp
913,7 → 913,7
return;
 
SampleItem *si = new SampleItem(docu);
si->setText(tr("Woven silk pyjamas exchanged for blue quartz"));
si->setText( tr("Woven silk pyjamas exchanged for blue quartz"));
if (colorComboTextBackground->currentText() != CommonStrings::NoneColor)
{
if (docu != 0)
/branches/Version13x/Scribus/scribus/guidemanager.cpp
216,7 → 216,7
{
bool ok;
QString original = list->currentItem()->text(0);
double newGuide = ScInputDialog::getDouble(tr("Edit Guide"),
double newGuide = ScInputDialog::getDouble( tr("Edit Guide"),
tr("Enter a position:"),
original.toDouble(),
0, 1000, docUnitDecimals, suffix,
243,7 → 243,7
bool GuideManager::addValueToList(QListView *list)
{
bool ok;
double newGuide = ScInputDialog::getDouble(tr("New Guide"),
double newGuide = ScInputDialog::getDouble( tr("New Guide"),
tr("Enter a position:"),
0.0, 0, 1000, docUnitDecimals, suffix,
&ok, this );
/branches/Version13x/Scribus/scribus/prefsdialogbase.cpp
136,9 → 136,9
{
buttonOk->setText( CommonStrings::tr_OK );
buttonCancel->setText( CommonStrings::tr_Cancel );
saveButton->setText(tr("Export..."));
saveButton->setText( tr("Export..."));
backToDefaults->setText( tr( "&Defaults" ) );
applyChangesButton->setText(tr("&Apply"));
applyChangesButton->setText( tr("&Apply"));
QToolTip::add(backToDefaults, "<qt>" + tr("All preferences can be reset here") + "</qt>");
QToolTip::add(applyChangesButton, "<qt>" + tr("Apply all changes without closing the dialog") + "</qt>");
QToolTip::add(saveButton, "<qt>" + tr("Export current preferences into file") + "</qt>");
/branches/Version13x/Scribus/scribus/scgtplugin.cpp
127,8 → 127,8
diaExtension_ = new QHBox(this, "diaExtension_");
diaExtension_->setSpacing(5);
 
appendBox_ = new QCheckBox(tr("Append"), diaExtension_, "appendBox_");
showOptionsBox_ = new QCheckBox(tr("Show options"), diaExtension_, "showOptionsBox_");
appendBox_ = new QCheckBox( tr("Append"), diaExtension_, "appendBox_");
showOptionsBox_ = new QCheckBox( tr("Show options"), diaExtension_, "showOptionsBox_");
 
addWidgets(0, diaExtension_, 0);
}
/branches/Version13x/Scribus/scribus/preview.cpp
237,7 → 237,7
Layout6->setSpacing(0);
Layout6->setMargin(0);
/* scaling */
scaleLabel = new QLabel(tr("Scaling:"), this, "scaleLabel");
scaleLabel = new QLabel( tr("Scaling:"), this, "scaleLabel");
scaleBox = new QComboBox( true, this, "unitSwitcher" );
scaleBox->setEditable(false);
scaleBox->setFocusPolicy(QWidget::NoFocus);
/branches/Version13x/Scribus/scribus/smwidgets.cpp
205,7 → 205,7
if (!isParentValue)
{
useParentValue_ = true;
insertItem(tr("Use Parent Value"));
insertItem( tr("Use Parent Value"));
}
 
ScComboBox::setCurrentItem(i);
249,7 → 249,7
if (hasParent_ && !useParentValue_)
{
setFont(true);
insertItem(tr("Use Parent Value"));
insertItem( tr("Use Parent Value"));
useParentValue_ = true;
}
}
266,7 → 266,7
parentButton = new QToolButton(this, "parentButton");
parentButton->setMaximumSize( QSize( 22, 22 ) );
parentButton->setToggleButton( true );
parentButton->setText(tr("P", "P as in Parent"));
parentButton->setText( tr("P", "P as in Parent"));
QToolTip::add(parentButton, tr("Use parent style's alignment instead of overriding it"));
GroupAlignLayout->addWidget( parentButton, 0, 5 );
resize(minimumSizeHint());
350,7 → 350,7
parentButton = new QToolButton(this, "parentButton");
parentButton->setMaximumSize(QSize(22, 22));
parentButton->setMinimumSize(QSize(22, 22));
parentButton->setText(tr("P", "P as in Parent"));
parentButton->setText( tr("P", "P as in Parent"));
QToolTip::add(parentButton, tr("Use parent style's effects instead of overriding them"));
ssLayout->addWidget( parentButton, 0, 5 );
resize(minimumSizeHint());
647,7 → 647,7
if (hasParent_ && !useParentValue_)
{
setFont(true);
insertItem(tr("Use Parent Value"));
insertItem( tr("Use Parent Value"));
useParentValue_ = true;
}
}
661,7 → 661,7
hasParent_(false),
useParentValue_(false),
pFont_(QString::null),
usePFont_(tr("Use Parent Font"))
usePFont_( tr("Use Parent Font"))
{
}
755,7 → 755,7
{
parentButton_ = new QToolButton(this, "parentButton_");
Q_CHECK_PTR(parentButton_);
parentButton_->setText(tr(" Parent Tabs "));
parentButton_->setText( tr(" Parent Tabs "));
indentLayout->addWidget(parentButton_);
parentButton_->hide();
QFont f(font());
/branches/Version13x/Scribus/scribus/druck.cpp
448,7 → 448,7
#if defined(_WIN32)
if ( !ToFile )
if( !PrinterUtil::getDefaultSettings(PrintDest->currentText(), DevMode) )
qWarning(tr("Failed to retrieve printer settings"));
qWarning( tr("Failed to retrieve printer settings"));
#endif
if ( ToFile || PrinterUtil::isPostscriptPrinter(PrintDest->currentText()) )
{
/branches/Version13x/Scribus/scribus/werktoolb.cpp
38,7 → 38,7
extern QPixmap loadIcon(QString nam);
 
 
ModeToolBar::ModeToolBar(ScribusMainWindow* parent) : ScToolBar(tr("Tools"), "Tools", parent, QDockWindow::Vertical)
ModeToolBar::ModeToolBar(ScribusMainWindow* parent) : ScToolBar( tr("Tools"), "Tools", parent, QDockWindow::Vertical)
{
SubMode = 0;
ValCount = 32;
/branches/Version13x/Scribus/scribus/collect4output.cpp
65,7 → 65,7
ScCore->fileWatcher->forceScan();
ScCore->fileWatcher->stop();
dirs->set("collect", outputDirectory.left(outputDirectory.findRev("/",-2)));
ScCore->primaryMainWindow()->setStatusBarInfoText(tr("Collecting..."));
ScCore->primaryMainWindow()->setStatusBarInfoText( tr("Collecting..."));
 
if (!collectItems())
{
/branches/Version13x/Scribus/scribus/scribusdoc.cpp
112,7 → 112,7
SubMode(-1),
ShapeValues(0),
ValCount(0),
DocName(tr("Document")+"-"),
DocName( tr("Document")+"-"),
UsedFonts(),
AllFonts(&prefsData.AvailFonts),
AObjects(),
/branches/Version13x/Scribus/scribus/pdflib.cpp
113,7 → 113,7
KeyGen[a] = kg_array[a];
if (usingGUI)
{
progressDialog = new MultiProgressDialog(tr("Saving PDF"), CommonStrings::tr_Cancel, doc.scMW(), "pdfexportprogress");
progressDialog = new MultiProgressDialog( tr("Saving PDF"), CommonStrings::tr_Cancel, doc.scMW(), "pdfexportprogress");
Q_CHECK_PTR(progressDialog);
QStringList barNames, barTexts;
barNames << "EMP" << "EP" << "ECPI";
/branches/Version13x/Scribus/scribus/loadsaveplugin.cpp
68,7 → 68,7
filterList.append((*it).filter);
lastID = (*it).formatId;
}
filterList.append(tr("All Files (*)"));
filterList.append( tr("All Files (*)"));
return filterList;
}
 
/branches/Version13x/Scribus/scribus/editformats.cpp
250,7 → 250,7
void StilFormate::dupFormat()
{
ParagraphStyle sty; // = TempVorl[sFnumber];
sty.setName(tr("Copy of %1").arg(TempVorl[sFnumber].name()));
sty.setName( tr("Copy of %1").arg(TempVorl[sFnumber].name()));
sty.setLineSpacingMode(static_cast<ParagraphStyle::LineSpacingMode>(TempVorl[sFnumber].lineSpacingMode()));
sty.setLineSpacing(TempVorl[sFnumber].lineSpacing());
sty.setAlignment(TempVorl[sFnumber].alignment());
280,7 → 280,7
int selectedIndex=ListBox1->currentItem();
int topIndex=ListBox1->topItem();
ParagraphStyle sty;
sty.setName(tr("New Style"));
sty.setName( tr("New Style"));
sty.setLineSpacingMode(static_cast<ParagraphStyle::LineSpacingMode>(0));
sty.setLineSpacing(((Docu->toolSettings.defSize / 10.0) *
static_cast<double>(Docu->typographicSettings.autoLineSpacing) / 100)
/branches/Version13x/Scribus/scribus/marginWidget.cpp
312,12 → 312,12
*/
PresetLayout::PresetLayout(QWidget *parent, const char * name) : QComboBox(parent, name)
{
insertItem(tr("None", "layout type"), PresetLayout::none);
insertItem(tr("Gutenberg"), PresetLayout::gutenberg);
insertItem(tr("Magazine"), PresetLayout::magazine);
insertItem(tr("Fibonacci"), PresetLayout::fibonacci);
insertItem(tr("Golden Mean"), PresetLayout::goldencut);
insertItem(tr("Nine Parts"), PresetLayout::nineparts);
insertItem( tr("None", "layout type"), PresetLayout::none);
insertItem( tr("Gutenberg"), PresetLayout::gutenberg);
insertItem( tr("Magazine"), PresetLayout::magazine);
insertItem( tr("Fibonacci"), PresetLayout::fibonacci);
insertItem( tr("Golden Mean"), PresetLayout::goldencut);
insertItem( tr("Nine Parts"), PresetLayout::nineparts);
setCurrentItem(PresetLayout::none);
 
QToolTip::add(this, "<qt>" +tr("You can select predefined page layout here. 'None' leave margins as is, Gutenberg sets margins classically. 'Magazine' sets all margins for same value. Leading is Left/Inside value.") + "</qt>");
/branches/Version13x/Scribus/scribus/smlinestyle.cpp
336,7 → 336,7
sl.Width = 1.0;
multiLine ml;
ml.push_back(sl);
QString name = getUniqueName(tr("New Style"));
QString name = getUniqueName( tr("New Style"));
tmpLines[name] = ml;
return name;
}
346,7 → 346,7
Q_ASSERT(tmpLines.contains(fromStyle));
 
multiLine ml(tmpLines[fromStyle]);
QString name = getUniqueName(tr("Clone of %1").arg(fromStyle));
QString name = getUniqueName( tr("Clone of %1").arg(fromStyle));
tmpLines[name] = ml;
return name;
}
/branches/Version13x/Scribus/scribus/plugins/scriptplugin/runscriptdialog.cpp
15,11 → 15,11
this->extEnable = extEnable;
PrefsManager *prefsManager=PrefsManager::instance();
setDir(!prefsManager->appPrefs.ScriptDir.isEmpty() ? prefsManager->appPrefs.ScriptDir : QDir::currentDirPath());
setFilters(tr("Python Scripts (*.py *.PY);; All Files (*)"));
setFilters( tr("Python Scripts (*.py *.PY);; All Files (*)"));
 
if (extEnable)
{
extChk = new QCheckBox(tr("Run as Extension Script", "run script dialog"), this);
extChk = new QCheckBox( tr("Run as Extension Script", "run script dialog"), this);
extChk->setChecked(false);
addWidgets(0, extChk, 0);
}
/branches/Version13x/Scribus/scribus/plugins/scriptplugin/pconsole.cpp
46,15 → 46,15
QPopupMenu *fileMenu = new QPopupMenu(this);
fileMenu->insertItem(loadIcon("fileopen.png"), tr("&Open..."), this, SLOT(slot_open()), CTRL+Key_O);
fileMenu->insertItem(loadIcon("DateiSave16.png"), tr("&Save"), this, SLOT(slot_save()), CTRL+Key_S);
fileMenu->insertItem(tr("Save &As..."), this, SLOT(slot_saveAs()));
fileMenu->insertItem( tr("Save &As..."), this, SLOT(slot_saveAs()));
fileMenu->insertSeparator();
fileMenu->insertItem(loadIcon("exit.png"), tr("&Exit"), this, SLOT(slot_quit()));
menuBar->insertItem(tr("&File"), fileMenu);
menuBar->insertItem( tr("&File"), fileMenu);
QPopupMenu *scriptMenu = new QPopupMenu(this);
scriptMenu->insertItem(loadIcon("ok.png"), tr("&Run"), this, SLOT(slot_runScript()), Key_F9);
scriptMenu->insertItem(tr("Run As &Console"), this, SLOT(slot_runScriptAsConsole()), CTRL+Key_F9);
scriptMenu->insertItem(tr("&Save Output..."), this, SLOT(slot_saveOutput()));
menuBar->insertItem(tr("&Script"), scriptMenu);
scriptMenu->insertItem( tr("Run As &Console"), this, SLOT(slot_runScriptAsConsole()), CTRL+Key_F9);
scriptMenu->insertItem( tr("&Save Output..."), this, SLOT(slot_saveOutput()));
menuBar->insertItem( tr("&Script"), scriptMenu);
 
gridLayout = new QGridLayout( this, 1, 1, 11, 6, "gridLayout");
gridLayout->setMenuBar(menuBar);
130,7 → 130,7
*/
void PythonConsole::languageChange()
{
setCaption(tr("Script Console"));
setCaption( tr("Script Console"));
QToolTip::add(commandEdit, "<qt>" + tr("Write your commands here. A selection is processed as script") + "</qt>");
QToolTip::add(outputEdit, "<qt>" + tr("Output of your script") + "</qt>");
}
/branches/Version13x/Scribus/scribus/plugins/scriptplugin/scripterprefsgui.cpp
129,16 → 129,16
*/
void ScripterPrefsGui::languageChange()
{
setCaption(tr("Scripter Preferences"));
extensionScriptsChk->setText(tr("Enable Extension Scripts"));
startupScriptEditLabel->setText(tr("Startup Script:"));
errorLabel->setText(tr("Errors:", "syntax highlighting"));
commentLabel->setText(tr("Comments:", "syntax highlighting"));
keywordLabel->setText(tr("Keywords:", "syntax highlighting"));
signLabel->setText(tr("Signs:", "syntax highlighting"));
numberLabel->setText(tr("Numbers:", "syntax highlighting"));
stringLabel->setText(tr("Strings:", "syntax highlighting"));
textLabel->setText(tr("Base Texts:", "syntax highlighting"));
setCaption( tr("Scripter Preferences"));
extensionScriptsChk->setText( tr("Enable Extension Scripts"));
startupScriptEditLabel->setText( tr("Startup Script:"));
errorLabel->setText( tr("Errors:", "syntax highlighting"));
commentLabel->setText( tr("Comments:", "syntax highlighting"));
keywordLabel->setText( tr("Keywords:", "syntax highlighting"));
signLabel->setText( tr("Signs:", "syntax highlighting"));
numberLabel->setText( tr("Numbers:", "syntax highlighting"));
stringLabel->setText( tr("Strings:", "syntax highlighting"));
textLabel->setText( tr("Base Texts:", "syntax highlighting"));
}
 
// Apply changes to prefs. Auto connected.
/branches/Version13x/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp
511,12 → 511,12
QString docstring = content.section("\"\"\"", 1, 1);
if (!docstring.isEmpty())
{
html += QString("<h1>%1 %2</h1>").arg(tr("Documentation for:")).arg(fi.fileName());
html += QString("<h1>%1 %2</h1>").arg( tr("Documentation for:")).arg(fi.fileName());
html += QString("<p>%1</p>").arg(docstring.replace("\n\n", "<br><br>"));
}
else
{
html += QString("<p><b>%1 %2 %3</b></p>").arg(tr("Script")).arg(fi.fileName()).arg(tr(" doesn't contain any docstring!"));
html += QString("<p><b>%1 %2 %3</b></p>").arg( tr("Script")).arg(fi.fileName()).arg( tr(" doesn't contain any docstring!"));
html += QString("<pre>%4</pre>").arg(content);
}
html += "</body></html>";
/branches/Version13x/Scribus/scribus/plugins/gettext/csvim/csvdia.cpp
13,13 → 13,13
 
CsvDialog::CsvDialog() : QDialog(0, "csvdia", true, 0)
{
setCaption(tr("CSV Importer Options"));
setCaption( tr("CSV Importer Options"));
setIcon(loadIcon("AppIcon.png"));
 
QBoxLayout* layout = new QVBoxLayout(this);
 
QBoxLayout* flayout = new QHBoxLayout(0, 5, 5, "flayout");
QLabel* fdlabel = new QLabel(tr("Field delimiter:"), this, "fdlabel", 0);
QLabel* fdlabel = new QLabel( tr("Field delimiter:"), this, "fdlabel", 0);
fdlabel->setMinimumWidth(120);
flayout->addWidget(fdlabel,1);
fdelimCombo = new QComboBox(true, this, "fdelimCombo");
32,7 → 32,7
layout->addLayout(flayout);
 
QBoxLayout* vlayout = new QHBoxLayout(0, 5, 5, "vlayout");
QLabel* vdlabel = new QLabel(tr("Value delimiter:"), this, "fdlabel", 0);
QLabel* vdlabel = new QLabel( tr("Value delimiter:"), this, "fdlabel", 0);
vdlabel->setMinimumWidth(120);
vlayout->addWidget(vdlabel,1);
vdelimCombo = new QComboBox(true, this, "vdelimCombo");
44,16 → 44,16
layout->addLayout(vlayout);
 
QBoxLayout* hlayout = new QHBoxLayout(0, 5, 5, "hlayout");
headerCheck = new QCheckBox(tr("First row is a header"), this, "headerCheck");
headerCheck = new QCheckBox( tr("First row is a header"), this, "headerCheck");
hlayout->addWidget(headerCheck);
layout->addLayout(hlayout);
 
QBoxLayout* blayout = new QHBoxLayout(0, 5, 5, "blayout");
blayout->addStretch(10);
okButton = new QPushButton(tr("OK"), this, "okButton");
okButton = new QPushButton( tr("OK"), this, "okButton");
blayout->addWidget(okButton);
 
cancelButton = new QPushButton(tr("Cancel"), this, "cancelButton");
cancelButton = new QPushButton( tr("Cancel"), this, "cancelButton");
blayout->addWidget(cancelButton);
layout->addLayout(blayout);
 
/branches/Version13x/Scribus/scribus/plugins/gettext/sxwim/sxwdia.cpp
16,13 → 16,13
 
SxwDialog::SxwDialog(bool update, bool prefix, bool pack) : QDialog(0, "sxwdia", true, 0)
{
setCaption(tr("OpenOffice.org Writer Importer Options"));
setCaption( tr("OpenOffice.org Writer Importer Options"));
setIcon(loadIcon("AppIcon.png"));
 
QBoxLayout* layout = new QVBoxLayout(this);
 
QBoxLayout* hlayout = new QHBoxLayout(0, 5, 5, "hlayout");
updateCheck = new QCheckBox(tr("Overwrite Paragraph Styles"), this,
updateCheck = new QCheckBox( tr("Overwrite Paragraph Styles"), this,
"updateCheck");
updateCheck->setChecked(update);
QToolTip::add(updateCheck, "<qt>" + tr("Enabling this will overwrite existing styles in the current Scribus document") + "</qt>");
30,7 → 30,7
layout->addLayout(hlayout);
QBoxLayout* palayout = new QHBoxLayout(0,5,5, "palayout");
packCheck = new QCheckBox(tr("Merge Paragraph Styles"), this, "packCheck");
packCheck = new QCheckBox( tr("Merge Paragraph Styles"), this, "packCheck");
packCheck->setChecked(pack);
QToolTip::add(packCheck, "<qt>" + tr("Merge paragraph styles by attributes. This will result in fewer similar paragraph styles, will retain style attributes, even if the original document's styles are named differently.") +"</qt>");
palayout->addWidget(packCheck);
37,7 → 37,7
layout->addLayout(palayout);
 
QBoxLayout* playout = new QHBoxLayout(0, 5, 5, "playout");
prefixCheck = new QCheckBox(tr("Use document name as a prefix for paragraph styles"), this, "prefixCheck");
prefixCheck = new QCheckBox( tr("Use document name as a prefix for paragraph styles"), this, "prefixCheck");
prefixCheck->setChecked(prefix);
QToolTip::add(prefixCheck, "<qt>" + tr("Prepend the document name to the paragraph style name in Scribus.") +"</qt>");
playout->addWidget(prefixCheck);
44,7 → 44,7
layout->addLayout(playout);
 
QBoxLayout* dlayout = new QHBoxLayout(0, 5, 5, "dlayout");
doNotAskCheck = new QCheckBox(tr("Do not ask again"), this,
doNotAskCheck = new QCheckBox( tr("Do not ask again"), this,
"doNotAskCheck");
doNotAskCheck->setChecked(false);
QToolTip::add(doNotAskCheck, "<qt>" + tr("Make these settings the default and do not prompt again when importing an OpenOffice.org 1.x document.") +"</qt>");
54,9 → 54,9
 
QBoxLayout* blayout = new QHBoxLayout(0, 5, 5, "blayout");
blayout->addStretch(10);
okButton = new QPushButton(tr("OK"), this, "okButton");
okButton = new QPushButton( tr("OK"), this, "okButton");
blayout->addWidget(okButton);
cancelButton = new QPushButton(tr("Cancel"), this, "cancelButton");
cancelButton = new QPushButton( tr("Cancel"), this, "cancelButton");
blayout->addWidget(cancelButton);
layout->addLayout(blayout);
 
/branches/Version13x/Scribus/scribus/plugins/gettext/textfilter/tffilter.cpp
176,7 → 176,7
switch (currentAction)
{
case APPLY:
thirdLabel->setText(tr("to"));
thirdLabel->setText( tr("to"));
thirdLabel->show();
// thirdRegexpCheck->hide();
switch (index)
194,12 → 194,12
fifthCombo->setEditable(true);
fifthCombo->show();
fifthRegexpCheck->show();
fifthLabel->setText(tr("and"));
fifthLabel->setText( tr("and"));
fifthLabel->show();
sixthCombo->clear();
sixthCombo->setEditable(false);
sixthCombo->insertItem(tr("remove match"));
sixthCombo->insertItem(tr("do not remove match"));
sixthCombo->insertItem( tr("remove match"));
sixthCombo->insertItem( tr("do not remove match"));
sixthCombo->show();
break;
case LESS_THAN:
209,7 → 209,7
fifthCombo->setEditable(true);
fifthCombo->show();
fifthRegexpCheck->hide();
fifthLabel->setText(tr("words"));
fifthLabel->setText( tr("words"));
fifthLabel->show();
sixthCombo->hide();
break;
248,9 → 248,9
}
firstCombo->clear();
firstCombo->setMinimumSize(QSize(120, 0));
firstCombo->insertItem(tr("Remove"));
firstCombo->insertItem(tr("Replace"));
firstCombo->insertItem(tr("Apply"));
firstCombo->insertItem( tr("Remove"));
firstCombo->insertItem( tr("Replace"));
firstCombo->insertItem( tr("Apply"));
firstCombo->show();
getSecondCombo();
}
283,7 → 283,7
{
case REPLACE:
firstLabel->hide();
secondLabel->setText(tr("with"));
secondLabel->setText( tr("with"));
secondLabel->show();
secondCombo->setEditable(true);
secondCombo->clear();
295,11 → 295,11
secondLabel->hide();
secondCombo->setEditable(false);
secondCombo->clear();
secondCombo->insertItem(tr("paragraph style"));
secondCombo->insertItem( tr("paragraph style"));
secondRegexpCheck->hide();
break;
case REMOVE:
firstLabel->setText(tr("all instances of"));
firstLabel->setText( tr("all instances of"));
firstLabel->show();
secondCombo->clear();
secondCombo->setEditable(true);
378,13 → 378,13
switch (currentAction)
{
case APPLY:
thirdLabel->setText(tr("to"));
thirdLabel->setText( tr("to"));
thirdLabel->show();
fourthCombo->clear();
fourthCombo->insertItem(tr("all paragraphs"));
fourthCombo->insertItem(tr("paragraphs starting with"));
fourthCombo->insertItem(tr("paragraphs with less than"));
fourthCombo->insertItem(tr("paragraphs with more than"));
fourthCombo->insertItem( tr("all paragraphs"));
fourthCombo->insertItem( tr("paragraphs starting with"));
fourthCombo->insertItem( tr("paragraphs with less than"));
fourthCombo->insertItem( tr("paragraphs with more than"));
fourthCombo->setEditable(false);
fourthCombo->show();
fourthLabel->hide();
/branches/Version13x/Scribus/scribus/plugins/gettext/textfilter/tfdia.cpp
22,7 → 22,7
 
tfDia::tfDia() : QDialog()
{
setCaption(tr("Create filter"));
setCaption( tr("Create filter"));
setIcon(loadIcon("AppIcon.png"));
setMinimumWidth(524);
prefs = PrefsManager::instance()->prefsFile->getPluginContext("TextFilter");
42,10 → 42,10
layout = new QVBoxLayout(this);
 
QBoxLayout* layout1 = new QHBoxLayout(0, 5, 5, "layout1");
clearButton = new QPushButton(tr("C&lear"), this, "clearButton");
clearButton = new QPushButton( tr("C&lear"), this, "clearButton");
layout1->addWidget(clearButton);
layout1->addStretch(10);
deleteButton = new QPushButton(tr("&Delete"), this, "deleteButton");
deleteButton = new QPushButton( tr("&Delete"), this, "deleteButton");
deleteButton->setEnabled(false);
layout1->addWidget(deleteButton);
filtersCombo = new QComboBox(0, this, "filtersCombo");
97,7 → 97,7
layout2->addWidget(saveEdit, 10);
if (prefs->getBool("save_hint", true))
{
saveEdit->setText(tr("Give a name for saving"));
saveEdit->setText( tr("Give a name for saving"));
prefs->set("save_hint", false);
}
layout2->addSpacing(20);
/branches/Version13x/Scribus/scribus/plugins/gettext/odtim/odtdia.cpp
36,13 → 36,13
 
OdtDialog::OdtDialog(bool update, bool prefix, bool pack) : QDialog(0, "sxwdia", true, 0)
{
setCaption(tr("OpenDocument Importer Options"));
setCaption( tr("OpenDocument Importer Options"));
setIcon(loadIcon("AppIcon.png"));
 
QBoxLayout* layout = new QVBoxLayout(this);
 
QBoxLayout* hlayout = new QHBoxLayout(0, 5, 5, "hlayout");
updateCheck = new QCheckBox(tr("Overwrite Paragraph Styles"), this,
updateCheck = new QCheckBox( tr("Overwrite Paragraph Styles"), this,
"updateCheck");
updateCheck->setChecked(update);
QToolTip::add(updateCheck, "<qt>" + tr("Enabling this will overwrite existing styles in the current Scribus document") + "</qt>");
50,7 → 50,7
layout->addLayout(hlayout);
 
QBoxLayout* palayout = new QHBoxLayout(0,5,5, "palayout");
packCheck = new QCheckBox(tr("Merge Paragraph Styles"), this, "packCheck");
packCheck = new QCheckBox( tr("Merge Paragraph Styles"), this, "packCheck");
packCheck->setChecked(pack);
QToolTip::add(packCheck, "<qt>" + tr("Merge paragraph styles by attributes. This will result in fewer similar paragraph styles, will retain style attributes, even if the original document's styles are named differently.") +"</qt>");
palayout->addWidget(packCheck);
57,7 → 57,7
layout->addLayout(palayout);
 
QBoxLayout* playout = new QHBoxLayout(0, 5, 5, "playout");
prefixCheck = new QCheckBox(tr("Use document name as a prefix for paragraph styles"), this, "prefixCheck");
prefixCheck = new QCheckBox( tr("Use document name as a prefix for paragraph styles"), this, "prefixCheck");
prefixCheck->setChecked(prefix);
QToolTip::add(prefixCheck, "<qt>" + tr("Prepend the document name to the paragraph style name in Scribus.") +"</qt>");
playout->addWidget(prefixCheck);
64,7 → 64,7
layout->addLayout(playout);
 
QBoxLayout* dlayout = new QHBoxLayout(0, 5, 5, "dlayout");
doNotAskCheck = new QCheckBox(tr("Do not ask again"), this,
doNotAskCheck = new QCheckBox( tr("Do not ask again"), this,
"doNotAskCheck");
doNotAskCheck->setChecked(false);
QToolTip::add(doNotAskCheck, "<qt>" + tr("Make these settings the default and do not prompt again when importing an OASIS OpenDocument.") +"</qt>");
74,9 → 74,9
 
QBoxLayout* blayout = new QHBoxLayout(0, 5, 5, "blayout");
blayout->addStretch(10);
okButton = new QPushButton(tr("OK"), this, "okButton");
okButton = new QPushButton( tr("OK"), this, "okButton");
blayout->addWidget(okButton);
cancelButton = new QPushButton(tr("Cancel"), this, "cancelButton");
cancelButton = new QPushButton( tr("Cancel"), this, "cancelButton");
blayout->addWidget(cancelButton);
layout->addLayout(blayout);
 
/branches/Version13x/Scribus/scribus/plugins/newfromtemplateplugin/nftdialog.cpp
61,8 → 61,8
tnailGrid->setItemsMovable(false);
popUp = new QPopupMenu(tnailGrid, "popUp");
popUp->insertItem(tr("&Remove"), this, SLOT(removeTemplate()));
popUp->insertItem(tr("&Open"), this, SLOT(exitOK()));
popUp->insertItem( tr("&Remove"), this, SLOT(removeTemplate()));
popUp->insertItem( tr("&Open"), this, SLOT(exitOK()));
QWidget* dtTmp = new QWidget(splitter, "dtTmp", 0);
dtTmp->setMinimumWidth(235);
/branches/Version13x/Scribus/scribus/plugins/short-words/swprefsgui.cpp
52,12 → 52,12
// defaults
if (QFile::exists(RC_PATH_USR))
{
titleLabel->setText(tr("User settings"));
titleLabel->setText( tr("User settings"));
loadCfgFile(RC_PATH_USR);
}
else
{
titleLabel->setText(tr("System wide configuration"));
titleLabel->setText( tr("System wide configuration"));
resetButton->setEnabled(false);
loadCfgFile(RC_PATH);
}
76,8 → 76,8
*/
void SWPrefsGui::languageChange()
{
okButton->setText(tr("&Save"));
resetButton->setText(tr("&Reset"));
okButton->setText( tr("&Save"));
resetButton->setText( tr("&Reset"));
// tooltips
QToolTip::add(okButton, tr("Save user configuration"));
QToolTip::add(resetButton, "<qt>" + tr("Reload system wide configuration and remove user defined one") + "</qt>");
113,7 → 113,7
stream.setCodec(QTextCodec::codecForName("utf8"));
stream << cfgEdit->text();
f.close();
titleLabel->setText(tr("User settings saved"));
titleLabel->setText( tr("User settings saved"));
okButton->setEnabled(false);
}
 
124,7 → 124,7
d.remove(RC_PATH_USR);
okButton->setEnabled(false);
resetButton->setEnabled(false);
titleLabel->setText(tr("System wide configuration reloaded"));
titleLabel->setText( tr("System wide configuration reloaded"));
}
 
void SWPrefsGui::cfgEdit_changed()
138,7 → 138,7
QFile f(filename);
if (!f.open(IO_ReadOnly))
{
titleLabel->setText(tr("Cannot open file %1").arg(f.name()));
titleLabel->setText( tr("Cannot open file %1").arg(f.name()));
return false;
}
cfgEdit->clear();
/branches/Version13x/Scribus/scribus/plugins/short-words/vlnadialog.cpp
126,11 → 126,11
*/
void SWDialog::languageChange()
{
setCaption(tr("Short Words", "short words plugin"));
buttonGroup->setTitle(tr("Apply unbreakable space on:", "short words plugin"));
frameRadio->setText(tr("&Selected frames", "short words plugin"));
pageRadio->setText(tr("Active &page", "short words plugin"));
allRadio->setText(tr("&All items", "short words plugin"));
setCaption( tr("Short Words", "short words plugin"));
buttonGroup->setTitle( tr("Apply unbreakable space on:", "short words plugin"));
frameRadio->setText( tr("&Selected frames", "short words plugin"));
pageRadio->setText( tr("Active &page", "short words plugin"));
allRadio->setText( tr("&All items", "short words plugin"));
okButton->setText(CommonStrings::tr_OK);
cancelButton->setText(CommonStrings::tr_Cancel);
QToolTip::add(frameRadio, tr("Only selected frames processed.", "short words plugin"));
/branches/Version13x/Scribus/scribus/plugins/saveastemplateplugin/satdialog.cpp
17,7 → 17,7
 
satdialog::satdialog(QWidget* parent, QString tmplName, int pageW, int pageH) : QDialog(parent, "satdialog", true)
{
setCaption(tr("Save as Template"));
setCaption( tr("Save as Template"));
setIcon(loadIcon("AppIcon.png"));
readPrefs();
122,7 → 122,7
 
void satdialog::fullDetail()
{
detailButton->setText(tr("Less Details"));
detailButton->setText( tr("Less Details"));
psizeLabel->setHidden(false);
psizeLabel->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred));
catsLabel->setHidden(false);
158,7 → 158,7
 
void satdialog::minimumDetail()
{
detailButton->setText(tr("More Details"));
detailButton->setText( tr("More Details"));
catsLabel->hide();
catsLabel->setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored));
psizeLabel->hide();
/branches/Version13x/Scribus/scribus/plugins/colorwheel/cwsetcolor.cpp
181,23 → 181,23
 
void CwSetColor::languageChange()
{
setCaption(tr("Set Color Components"));
cmykBox->setTitle(tr("CMYK"));
rgbBox->setTitle(tr("RGB"));
hsvBox->setTitle(tr("HSV"));
hLabel->setText(tr("H:"));
sLabel->setText(tr("S:"));
vLabel->setText(tr("V:"));
rLabel->setText(tr("R:"));
gLabel->setText(tr("G:"));
bLabel->setText(tr("B:"));
cLabel->setText(tr("C:"));
mLabel->setText(tr("M:"));
yLabel->setText(tr("Y:"));
kLabel->setText(tr("K:"));
rgbButton->setText(tr("Set &RGB"));
cmykButton->setText(tr("Set C&MYK"));
hsvButton->setText(tr("Set &HSV"));
setCaption( tr("Set Color Components"));
cmykBox->setTitle( tr("CMYK"));
rgbBox->setTitle( tr("RGB"));
hsvBox->setTitle( tr("HSV"));
hLabel->setText( tr("H:"));
sLabel->setText( tr("S:"));
vLabel->setText( tr("V:"));
rLabel->setText( tr("R:"));
gLabel->setText( tr("G:"));
bLabel->setText( tr("B:"));
cLabel->setText( tr("C:"));
mLabel->setText( tr("M:"));
yLabel->setText( tr("Y:"));
kLabel->setText( tr("K:"));
rgbButton->setText( tr("Set &RGB"));
cmykButton->setText( tr("Set C&MYK"));
hsvButton->setText( tr("Set &HSV"));
}
 
void CwSetColor::hsvButton_clicked()
/branches/Version13x/Scribus/scribus/plugins/colorwheel/cwdialog.cpp
71,7 → 71,7
 
void ScribusColorList::languageChange()
{
setCaption(tr("Document Colors"));
setCaption( tr("Document Colors"));
okButton->setText(CommonStrings::tr_OK);
cancelButton->setText(CommonStrings::tr_Cancel);
}
93,14 → 93,14
 
QMenuBar *menuBar = new QMenuBar(this, "menuBar");
QPopupMenu *colorMenu = new QPopupMenu(this);
colorMenu->insertItem(tr("Cr&eate color..."), this, SLOT(createColor()));
colorMenu->insertItem(tr("C&olor Components..."), this, SLOT(setColorComponents()));
colorMenu->insertItem(tr("&Import existing color..."), this, SLOT(importColor()));
colorMenu->insertItem( tr("Cr&eate color..."), this, SLOT(createColor()));
colorMenu->insertItem( tr("C&olor Components..."), this, SLOT(setColorComponents()));
colorMenu->insertItem( tr("&Import existing color..."), this, SLOT(importColor()));
colorMenu->insertSeparator();
colorMenu->insertItem(tr("&Merge colors"), this, SLOT(addButton_clicked()));
colorMenu->insertItem(tr("&Replace colors"), this, SLOT(replaceButton_clicked()));
colorMenu->insertItem(tr("E&xit"), this, SLOT(cancelButton_clicked()));
menuBar->insertItem(tr("C&olor"), colorMenu);
colorMenu->insertItem( tr("&Merge colors"), this, SLOT(addButton_clicked()));
colorMenu->insertItem( tr("&Replace colors"), this, SLOT(replaceButton_clicked()));
colorMenu->insertItem( tr("E&xit"), this, SLOT(cancelButton_clicked()));
menuBar->insertItem( tr("C&olor"), colorMenu);
 
formLayout = new QGridLayout(this, 1, 1, 11, 6, "formLayout");
formLayout->setMenuBar(menuBar);
176,11 → 176,11
typeCombo->insertItem(colorWheel->getTypeDescription(colorWheel->Triadic), colorWheel->Triadic);
typeCombo->insertItem(colorWheel->getTypeDescription(colorWheel->Tetradic), colorWheel->Tetradic);
// defects
defectCombo->insertItem(tr("Normal Vision"));
defectCombo->insertItem(tr("Protanopia (Red)"));
defectCombo->insertItem(tr("Deuteranopia (Green)"));
defectCombo->insertItem(tr("Tritanopia (Blue)"));
defectCombo->insertItem(tr("Full Color Blindness"));
defectCombo->insertItem( tr("Normal Vision"));
defectCombo->insertItem( tr("Protanopia (Red)"));
defectCombo->insertItem( tr("Deuteranopia (Green)"));
defectCombo->insertItem( tr("Tritanopia (Blue)"));
defectCombo->insertItem( tr("Full Color Blindness"));
 
// preferences
prefs = PrefsManager::instance()->prefsFile->getPluginContext("colorwheel");
225,19 → 225,19
*/
void ColorWheelDialog::languageChange()
{
defectLabel->setText(tr("Vision Defect:"));
setCaption(tr("Color Wheel"));
colorList->addColumn(tr("Color"));
colorList->addColumn(tr("Name"));
colorList->addColumn(tr("C"));
colorList->addColumn(tr("M"));
colorList->addColumn(tr("Y"));
colorList->addColumn(tr("K"));
defectLabel->setText( tr("Vision Defect:"));
setCaption( tr("Color Wheel"));
colorList->addColumn( tr("Color"));
colorList->addColumn( tr("Name"));
colorList->addColumn( tr("C"));
colorList->addColumn( tr("M"));
colorList->addColumn( tr("Y"));
colorList->addColumn( tr("K"));
colorList->setSorting(1);
typeLabel->setText(tr("Select Method:"));
angleLabel->setText(tr("Angle (0 - 90 degrees):"));
addButton->setText(tr("&Merge Colors"));
replaceButton->setText(tr("&Replace Colors"));
typeLabel->setText( tr("Select Method:"));
angleLabel->setText( tr("Angle (0 - 90 degrees):"));
addButton->setText( tr("&Merge Colors"));
replaceButton->setText( tr("&Replace Colors"));
cancelButton->setText(CommonStrings::tr_Cancel);
// tips
QToolTip::add(addButton, "<qt>" + tr("Merge created colors into the document colors") + "</qt>");
/branches/Version13x/Scribus/scribus/plugins/svgimplugin/svgplugin.cpp
82,7 → 82,7
 
void SVGImportPlugin::languageChange()
{
importAction->setMenuText(tr("Import &SVG..."));
importAction->setMenuText( tr("Import &SVG..."));
// (Re)register file format support.
unregisterAll();
registerFormats();
/branches/Version13x/Scribus/scribus/plugins/fileloader/oodraw/oodrawimp.cpp
89,7 → 89,7
 
void OODrawImportPlugin::languageChange()
{
importAction->setMenuText(tr("Import &OpenOffice.org Draw..."));
importAction->setMenuText( tr("Import &OpenOffice.org Draw..."));
// (Re)register file formats
unregisterAll();
registerFormats();
/branches/Version13x/Scribus/scribus/plugins/fontpreview/fontpreview.cpp
123,7 → 123,7
{
if (k->isAutoRepeat())
{
fontPreview->setText(tr("Sample will be shown after key release"));
fontPreview->setText( tr("Sample will be shown after key release"));
return;
}
if (allowSample())
/branches/Version13x/Scribus/scribus/plugins/psimport/importpsplugin.cpp
53,7 → 53,7
 
void ImportPSPlugin::languageChange()
{
importAction->setMenuText(tr("Import &EPS/PS..."));
importAction->setMenuText( tr("Import &EPS/PS..."));
// (Re)register file format support
unregisterAll();
registerFormats();
/branches/Version13x/Scribus/scribus/plugins/psimport/importps.cpp
54,7 → 54,7
if ( showProgress )
{
ScribusMainWindow* mw=(m_Doc==0) ? ScCore->primaryMainWindow() : m_Doc->scMW();
progressDialog = new MultiProgressDialog(tr("Importing PostScript"), CommonStrings::tr_Cancel, mw, "psexportprogress");
progressDialog = new MultiProgressDialog( tr("Importing PostScript"), CommonStrings::tr_Cancel, mw, "psexportprogress");
QStringList barNames, barTexts;
barNames << "GI";
barTexts << tr("Analyzing PostScript:");
/branches/Version13x/Scribus/scribus/scribusapp.cpp
429,10 → 429,10
const int descwidth = -(heading.length() - urlwidth - 1);
ts << heading; endl(ts);
ts << separator; endl(ts);
ts << QString("%1 %2").arg(tr("Homepage")+":", descwidth).arg("http://www.scribus.net" ); endl(ts);
ts << QString("%1 %2").arg(tr("Documentation")+":", descwidth).arg("http://docs.scribus.net"); endl(ts);
ts << QString("%1 %2").arg(tr("Wiki")+":", descwidth).arg("http://wiki.scribus.net"); endl(ts);
ts << QString("%1 %2").arg(tr("Issues")+":", descwidth).arg("http://bugs.scribus.net"); endl(ts);
ts << QString("%1 %2").arg( tr("Homepage")+":", descwidth).arg("http://www.scribus.net" ); endl(ts);
ts << QString("%1 %2").arg( tr("Documentation")+":", descwidth).arg("http://docs.scribus.net"); endl(ts);
ts << QString("%1 %2").arg( tr("Wiki")+":", descwidth).arg("http://wiki.scribus.net"); endl(ts);
ts << QString("%1 %2").arg( tr("Issues")+":", descwidth).arg("http://bugs.scribus.net"); endl(ts);
endl(ts);
}
 
/branches/Version13x/Scribus/scribus/upgradechecker.cpp
79,8 → 79,8
getter->setHost("www.scribus.net");
if (retrieveError)
return true;
outputText("<b>"+tr("Attempting to get the Scribus version update file")+"</b>");
outputText(tr("(No data on your computer will be sent to an external location)"));
outputText("<b>"+ tr("Attempting to get the Scribus version update file")+"</b>");
outputText( tr("(No data on your computer will be sent to an external location)"));
if(!file.open(IO_ReadWrite))
return true;
getterID=getter->get("/downloads/"+filename, &file);
/branches/Version13x/Scribus/scribus/tabcheckdoc.cpp
78,7 → 78,7
rasterPDF->setText( tr( "Check for placed PDF Files" ) );
TabCheckDocLayout->addWidget( rasterPDF );
checkForGIF = new QCheckBox(this, "checkForGIF");
checkForGIF->setText(tr("Check for GIF images"));
checkForGIF->setText( tr("Check for GIF images"));
TabCheckDocLayout->addWidget(checkForGIF);
useAnnotations = new QCheckBox( this, "useAnnotations" );
useAnnotations->setText( tr( "Check for PDF Annotations and Fields" ) );
/branches/Version13x/Scribus/scribus/pluginmanager.cpp
154,7 → 154,7
pda.pluginDLL = 0;
pda.enabled = false;
pda.enableOnStartup = prefs->getBool(pda.pluginName, true);
ScCore->setSplashStatus(tr("Plugin: loading %1", "plugin manager").arg(pda.pluginName));
ScCore->setSplashStatus( tr("Plugin: loading %1", "plugin manager").arg(pda.pluginName));
if (loadPlugin(pda))
{
if (pda.enableOnStartup)
309,10 → 309,10
mw->scrMenuMgr->addMenuItemAfter(mw->scrActions[ai.name], ai.menu, afterAction);
}
if (it.data().enabled)
ScCore->setSplashStatus(tr("Plugin: %1 initialized ok ", "plugin manager")
ScCore->setSplashStatus( tr("Plugin: %1 initialized ok ", "plugin manager")
.arg(plugin->fullTrName()));
else
ScCore->setSplashStatus(tr("Plugin: %1 failed post initialization", "plugin manager")
ScCore->setSplashStatus( tr("Plugin: %1 failed post initialization", "plugin manager")
.arg(plugin->fullTrName()));
}
else
/branches/Version13x/Scribus/scribus/smtextstyles.cpp
206,7 → 206,7
if (!doc_)
return QString::null;
 
QString s = getUniqueName(tr("New Style"));
QString s = getUniqueName( tr("New Style"));
// i suppose this is the default style to get the default attributes in
tmpStyles_.append(ParagraphStyle(doc_->docParagraphStyles[0]));
tmpStyles_.last().setName(s);
221,7 → 221,7
{
if (tmpStyles_[i].name() == fromStyle)
{
s = getUniqueName(tr("Clone of %1").arg(fromStyle));
s = getUniqueName( tr("Clone of %1").arg(fromStyle));
tmpStyles_.append(ParagraphStyle(tmpStyles_[i]));
tmpStyles_.last().setName(s);
break;
1351,7 → 1351,7
{
Q_ASSERT(doc_ && doc_->docParagraphStyles.count() > 0);
 
QString s = getUniqueName(tr("New Style"));
QString s = getUniqueName( tr("New Style"));
// fetching default values now from here
tmpStyles_.append(CharStyle(doc_->docParagraphStyles[0].charStyle()));
tmpStyles_.last().setName(s);
1368,7 → 1368,7
{
if (tmpStyles_[i].name() == fromStyle)
{
s = getUniqueName(tr("Clone of %1").arg(fromStyle));
s = getUniqueName( tr("Clone of %1").arg(fromStyle));
tmpStyles_.append(CharStyle(tmpStyles_[i]));
tmpStyles_.last().setName(s);
break;