help out the translators a bit

CCMAIL:aacid@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878807
This commit is contained in:
Aaron J. Seigo 2008-11-01 20:37:59 +00:00
parent 1da58c95f4
commit 416090f5da
3 changed files with 12 additions and 8 deletions

View File

@ -1746,8 +1746,9 @@ void AppletPrivate::init()
if (path.isEmpty()) {
q->setFailedToLaunch(
true,
i18n("Could not locate the %1 package required for the %2 widget.",
appletDescription.pluginName(), appletDescription.name()));
i18nc("Package file, name of the widget",
"Could not locate the %1 package required for the %2 widget.")
.arg(appletDescription.pluginName(), appletDescription.name()));
} else {
// create the package and see if we have something real
//kDebug() << "trying for" << path;
@ -1765,12 +1766,15 @@ void AppletPrivate::init()
if (!script) {
delete package;
package = 0;
q->setFailedToLaunch(true, i18n("Could not create a %1 ScriptEngine for the %2 widget.",
api, appletDescription.name()));
q->setFailedToLaunch(true,
i18nc("API or programming language the widget was written in, name of the widget",
"Could not create a %1 ScriptEngine for the %2 widget.")
.arg(api, appletDescription.name()));
}
} else {
q->setFailedToLaunch(true, i18n("Could not open the %1 package required for the %2 widget.",
appletDescription.pluginName(), appletDescription.name()));
q->setFailedToLaunch(true, i18nc("Package file, name of the widget",
"Could not open the %1 package required for the %2 widget.")
.arg(appletDescription.pluginName(), appletDescription.name()));
delete package;
package = 0;
}

View File

@ -34,7 +34,6 @@ class NullEngine : public DataEngine
NullEngine(QObject *parent = 0)
: DataEngine(parent)
{
setObjectName(i18n("Null Engine"));
setValid(false);
// ref() ourselves to ensure we never get deleted

View File

@ -80,7 +80,8 @@ public:
*
* @arg type the type of package. This is often application specific.
**/
explicit PackageStructure(QObject *parent = 0, const QString &type = i18n("Invalid"));
explicit PackageStructure(QObject *parent = 0,
const QString &type = i18nc("A non-functional package", "Invalid"));
/**
* Destructor