Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 6547 → Rev 6548

/branches/Version13x/Scribus/scribus/pluginmanagerprefsgui.cpp
8,6 → 8,7
#include "pluginmanager.h"
#include "scplugin.h"
#include "util.h"
#include "commonstrings.h"
 
#include <qlayout.h>
#include <qlistview.h>
74,7 → 75,7
// load at start?
bool onstart = pluginManager.enableOnStartup(*it);
plugItem->setPixmap(3, onstart ? checkOn : checkOff);
plugItem->setText(3, onstart ? tr("Yes") : tr("No"));
plugItem->setText(3, onstart ? CommonStrings::trYes : CommonStrings::trNo);
plugItem->setText(4, QString("%1").arg(*it)); // plugname for developers
plugItem->setText(5, pluginManager.getPluginPath(*it)); // file path for developers
// Populate the working settings info for the plug-in
102,10 → 103,10
return;
PluginSettings& settings = pluginSettings[item->text(4).latin1()];
bool onstartup;
if (item->text(3) == tr("Yes"))
if (item->text(3) == CommonStrings::trYes)
{
item->setPixmap(3, checkOff);
item->setText(3, tr("No"));
item->setText(3, CommonStrings::trNo);
// Update our stored settings with the new flag
onstartup = false;
}
112,7 → 113,7
else
{
item->setPixmap(3, checkOn);
item->setText(3, tr("Yes"));
item->setText(3, CommonStrings::trYes);
onstartup = true;
}
// Store changed setting(s) into working setting info
/branches/Version13x/Scribus/scribus/aboutplugins.cpp
8,6 → 8,7
#include "aboutplugins.moc"
#include "pluginmanager.h"
#include "scplugin.h"
#include "commonstrings.h"
 
#include <qlistbox.h>
#include <qstring.h>
64,7 → 65,7
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");
ena = pluginManager.enabled(name) ? CommonStrings::trYes : CommonStrings::trNo;
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>";
/branches/Version13x/Scribus/scribus/picstatus.cpp
37,6 → 37,8
#include "pageitem.h"
#include "filesearch.h"
#include "scribuscore.h"
#include "commonstrings.h"
 
extern QPixmap loadIcon(QString nam);
 
 
114,7 → 116,7
PicTable->setCellWidget(Zeilen2, COL_GOTO, tb2);
connect(tb2, SIGNAL(clicked()), this, SLOT(GotoPic()));
QCheckBox *cp2 = new QCheckBox(this, tmp.setNum(Zeilen2));
cp2->setText( tr("Yes"));
cp2->setText(CommonStrings::trYes);
cp2->setChecked(m_Doc->MasterItems.at(i)->printEnabled());
cp2->setEraseColor(white);
FlagsPic.append(cp2);
155,7 → 157,7
PicTable->setCellWidget(Zeilen2, COL_GOTO, tb2);
connect(tb2, SIGNAL(clicked()), this, SLOT(GotoPic()));
QCheckBox *cp2 = new QCheckBox(this, tmp.setNum(Zeilen2));
cp2->setText( tr("Yes"));
cp2->setText(CommonStrings::trYes);
cp2->setChecked(m_Doc->Items->at(i)->printEnabled());
cp2->setEraseColor(white);
FlagsPic.append(cp2);
/branches/Version13x/Scribus/scribus/cupsoptions.cpp
140,14 → 140,14
Daten.Cnum = static_cast<int>(FlagsOpt.count()-1);
Daten.KeyW = "mirror";
KeyToText["Mirror"] = Daten;
item2->insertItem( tr("No"));
item2->insertItem( tr("Yes"));
item2->insertItem(CommonStrings::trNo);
item2->insertItem(CommonStrings::trYes);
item2->setCurrentItem(0);
lastSelected = prefs->getInt( tr("Mirror"), 0);
if (lastSelected >= 2)
lastSelected = 0;
item2->setCurrentItem(lastSelected);
KeyToDefault["Mirror"] = tr("No");
KeyToDefault["Mirror"] = CommonStrings::trNo;
Table->setCellWidget(Table->numRows()-1, 1, item2);
Table->setNumRows(Table->numRows()+1);
Table->setText(Table->numRows()-1, 0, QString( tr("Orientation")));
/branches/Version13x/Scribus/scribus/lineformats.cpp
181,8 → 181,8
int exit=ScMessageBox::warning(this,
CommonStrings::trWarning,
tr("Do you really want to delete this style?"),
tr("&Yes"),
tr("&No"),
CommonStrings::trYesKey,
CommonStrings::trNoKey,
0, 0, 0);
/* PFJ - 29.02.04 - Changed from 1 to QMessageBox::Yes */
/* FS - 12.05.04 the 1 is correct in this version of QMessageBox, it returns the Nr of the clicked Button either 0 or 1 or 2 */
/branches/Version13x/Scribus/scribus/imageinfodialog.cpp
31,9 → 31,9
emProfile = new QLabel( "", GenGroup, "emProfile" );
layout3->addWidget( emProfile, 1, 1 );
if (info->isEmbedded)
emProfile->setText( tr("Yes"));
emProfile->setText(CommonStrings::trYes);
else
emProfile->setText( tr("No"));
emProfile->setText(CommonStrings::trNo);
Text2g = new QLabel( tr( "Profile Name:" ), GenGroup, "Text2g" );
layout3->addWidget( Text2g, 2, 0 );
emProfileN = new QLabel( info->profileName, GenGroup, "emProfileN" );
43,17 → 43,17
emPath = new QLabel( "", GenGroup, "emPath" );
layout3->addWidget( emPath, 3, 1 );
if (info->PDSpathData.count() != 0)
emPath->setText( tr("Yes"));
emPath->setText(CommonStrings::trYes);
else
emPath->setText( tr("No"));
emPath->setText(CommonStrings::trNo);
Text4g = new QLabel( tr( "Has Layers:" ), GenGroup, "Text3g" );
layout3->addWidget( Text4g, 4, 0 );
emLayer = new QLabel( "", GenGroup, "emLayer" );
layout3->addWidget( emLayer, 4, 1 );
if (info->layerInfo.count() != 0)
emLayer->setText( tr("Yes"));
emLayer->setText(CommonStrings::trYes);
else
emLayer->setText( tr("No"));
emLayer->setText(CommonStrings::trNo);
ImageInfoDialogLayout->addWidget(GenGroup);
 
ExGroup = new QGroupBox(this, "ExGroup");
/branches/Version13x/Scribus/scribus/translationdummy.cpp
60,8 → 60,8
tr("the symlink");
tr("Delete %1");
tr("<qt>Are you sure you wish to delete %1 \"%2\"?</qt>");
tr("&Yes");
tr("&No");
CommonStrings::trYesKey;
CommonStrings::trNoKey;
tr("New Folder 1");
tr("New Folder");
tr("New Folder %1");
/branches/Version13x/Scribus/scribus/commonstrings.cpp
35,6 → 35,11
QString CommonStrings::Warning = "";
QString CommonStrings::trWarning = "";
 
QString CommonStrings::trYes = "";
QString CommonStrings::trNo = "";
QString CommonStrings::trYesKey = "";
QString CommonStrings::trNoKey = "";
 
QString CommonStrings::customPageSize = "";
QString CommonStrings::trCustomPageSize = "";
 
152,6 → 157,11
CommonStrings::Warning = "Warning";
CommonStrings::trWarning = tr( "Warning" );
 
CommonStrings::trYes = tr("Yes");
CommonStrings::trNo = tr("No");
CommonStrings::trYesKey = tr("&Yes");
CommonStrings::trNoKey = tr("&No");
CommonStrings::customPageSize = "Custom";
CommonStrings::trCustomPageSize = tr( "Custom", "CommonStrings, custom page size" );
 
/branches/Version13x/Scribus/scribus/commonstrings.h
91,6 → 91,14
static QString tr_Save;
static QString Warning;
static QString trWarning;
//! \brief Translated "Yes"
static QString trYes;
//! \brief Translated "No"
static QString trNo;
//! \brief Translated "Yes" with key accelerator "&Yes"
static QString trYesKey;
//! \brief Translated "No" with key accelerator "&No"
static QString trNoKey;
 
//Page Size
static QString customPageSize;
/branches/Version13x/Scribus/scribus/muster.cpp
104,8 → 104,8
int exit=ScMessageBox::warning(this,
CommonStrings::trWarning,
tr("Do you really want to delete this master page?"),
tr("&Yes"),
tr("&No"),
CommonStrings::trYesKey,
CommonStrings::trNoKey,
0, QMessageBox::No, QMessageBox::Yes);
if (exit == 0)
{
/branches/Version13x/Scribus/scribus/javadocs.cpp
114,8 → 114,8
int exit=ScMessageBox::warning(this,
CommonStrings::trWarning,
tr("Do you really want to delete this script?"),
tr("&Yes"),
tr("&No"),
CommonStrings::trYesKey,
CommonStrings::trNoKey,
0, 0, 0);
if (exit == 0)
{
/branches/Version13x/Scribus/scribus/plugins/short-words/swprefsgui.cpp
97,8 → 97,8
if ((ScMessageBox::warning(this, tr("Short Words"),
"<qt>" + tr("User configuration exists elready. "
"Do you really want to overwrite it?") + "</qt>",
QObject::tr("Yes"),
QObject::tr("No"), 0, 0, 1)
CommonStrings::trYes,
CommonStrings::trNo, 0, 0, 1)
) == 1)
return;
}
/branches/Version13x/Scribus/scribus/plugins/pixmapexport/export.cpp
17,7 → 17,9
#include "scraction.h"
#include "menumanager.h"
#include "util.h"
#include "commonstrings.h"
 
 
int scribusexportpixmap_getPluginAPIVersion()
{
return PLUGIN_API_VERSION;
185,8 → 187,8
over = ScMessageBox::warning(doc->scMW(),
QObject::tr("File exists. Overwrite?"),
fileName +"\n"+ QObject::tr("exists already. Overwrite?"),
QObject::tr("Yes"),
QObject::tr("No"),
CommonStrings::trYes,
CommonStrings::trNo,
// hack for multiple overwritting (petr)
(single==true) ? QString::null : QObject::tr("Yes all"),
0, 0);
/branches/Version13x/Scribus/scribus/plugins/svgexplugin/svgexplugin.cpp
136,8 → 136,8
{
int exit=ScMessageBox::warning(doc->scMW(), CommonStrings::trWarning,
QObject::tr("Do you really want to overwrite the File:\n%1 ?").arg(fileName),
QObject::tr("Yes"),
QObject::tr("No"),
CommonStrings::trYes,
CommonStrings::trNo,
0, 0, 1);
if (exit != 0)
return true;