Commit 6879ec43 authored by Pino Toscano's avatar Pino Toscano
Browse files

i18n fixes

- remove contractions
- remove extra exclamation marks
- chage few messages to be the same as existing equivalent messages
- spell "URL" correctly
parent ecfd9fec
......@@ -291,7 +291,7 @@ void KrBookmarkHandler::importFromFile()
n = n.nextSibling();
if (n.isNull() || n.toElement().tagName() != "xbel") {
errorMsg = i18n("%1 doesn't seem to be a valid Bookmarks file", filename);
errorMsg = i18n("%1 does not seem to be a valid bookmarks file", filename);
goto BM_ERROR;
} else n = n.firstChild(); // skip the xbel part
importFromFileFolder(n, _root, "", &errorMsg);
......
......@@ -408,7 +408,7 @@ bool PackGUIBase::extraProperties(QMap<QString, QString> & inMap)
if (password->isEnabled() && passwordAgain->isEnabled()) {
if (password->text() != passwordAgain->text()) {
KMessageBox::error(this, i18n("Cannot pack! The passwords are different!"));
KMessageBox::error(this, i18n("Cannot pack, the passwords are different."));
return false;
}
......@@ -433,7 +433,7 @@ bool PackGUIBase::extraProperties(QMap<QString, QString> & inMap)
}
if (size < 10000) {
KMessageBox::error(this, i18n("Invalid volume size!"));
KMessageBox::error(this, i18n("Invalid volume size."));
return false;
}
......@@ -465,7 +465,7 @@ bool PackGUIBase::extraProperties(QMap<QString, QString> & inMap)
}
if (firstChar && ch != '-') {
KMessageBox::error(this, i18n("Invalid command line switch!\nSwitch must start with '-'!"));
KMessageBox::error(this, i18n("Invalid command line switch.\nA switch must start with '-'."));
return false;
}
......@@ -477,7 +477,7 @@ bool PackGUIBase::extraProperties(QMap<QString, QString> & inMap)
quote = ch;
if (ch == '\\') {
if (i == cmdArgs.length() - 1) {
KMessageBox::error(this, i18n("Invalid command line switch!\nBackslash cannot be the last character"));
KMessageBox::error(this, i18n("Invalid command line switch.\nBackslashes cannot be the last character."));
return false;
}
i++;
......@@ -485,7 +485,7 @@ bool PackGUIBase::extraProperties(QMap<QString, QString> & inMap)
}
if (quote != '\0') {
KMessageBox::error(this, i18n("Invalid command line switch!\nUnclosed quotation mark!"));
KMessageBox::error(this, i18n("Invalid command line switch.\nUnclosed quotation mark."));
return false;
}
......
......@@ -244,7 +244,7 @@ void KgGeneral::createGeneralTab()
hbox->addWidget(urlReq3);
generalGrid->addLayout(hbox, 13, 0, 1, 1);
QLabel *label4 = new QLabel(i18n("Note: you must have full permissions for the temporary directory!"),
QLabel *label4 = new QLabel(i18n("Note: you must have full permissions for the temporary directory."),
generalGrp);
generalGrid->addWidget(label4, 14, 0, 1, 1);
......@@ -319,7 +319,7 @@ void KgGeneral::slotAddExtension()
if (ok) {
if (!atomExt.startsWith('.') || atomExt.indexOf('.', 1) == -1)
KMessageBox::error(krMainWindow, i18n("Atomic extensions must start with '.'\n and must contain at least one more '.' character"), i18n("Error"));
KMessageBox::error(krMainWindow, i18n("Atomic extensions must start with '.' and must contain at least one more '.' character."), i18n("Error"));
else
listBox->addItem(atomExt);
}
......
......@@ -525,7 +525,7 @@ void KgPanel::setupMouseModeTab()
{ i18n("Konqueror Mode"), "1", i18n("Pressing the left mouse button selects files - you can click and select multiple files. Right-click menu is invoked using a short click on the right mouse button.") },
{ i18n("Total-Commander Mode"), "2", i18n("The left mouse button does not select, but sets the current file without affecting the current selection. The right mouse button selects multiple files and the right-click menu is invoked by pressing and holding the right mouse button.") },
{ i18n("Ergonomic Mode"), "4", i18n("The left mouse button does not select, but sets the current file without affecting the current selection. The right mouse button invokes the context-menu. You can select with Ctrl key and the left button.") },
{ i18n("Custom Selection Mode"), "3", i18n("Design your own selection mode!") }
{ i18n("Custom Selection Mode"), "3", i18n("Design your own selection mode.") }
};
mouseRadio = createRadioButtonGroup("Look&Feel", "Mouse Selection", "0", 1, 5, mouseSelection, 5, mouseGeneralGroup, true, PAGE_MOUSE);
mouseRadio->layout()->setContentsMargins(0, 0, 0, 0);
......
......@@ -296,7 +296,7 @@ void Splitter::splitFileFinished(KJob *job)
splitWriteJob = 0; /* KIO automatically deletes the object after Finished signal */
if (job->error()) { /* any error occurred? */
KMessageBox::error(0, i18n("Error at writing file %1: %2", writeURL.pathOrUrl(),
KMessageBox::error(0, i18n("Error writing file %1: %2", writeURL.pathOrUrl(),
job->errorString()));
emit reject();
return;
......
......@@ -279,7 +279,7 @@ bool KRarcHandler::unpack(QString archive, QString type, QString password, QStri
if (group.readEntry("Test Before Unpack", _TestBeforeUnpack)) {
// test first - or be sorry later...
if (type != "-rpm" && type != "-deb" && !test(archive, type, password, observer, 0)) {
observer->error(i18n("Failed to unpack \"%1\".", archive));
observer->error(i18n("Failed to unpack %1.", archive));
return false;
}
}
......
......@@ -652,7 +652,7 @@ void KRslots::slotCombine()
} while (false);
if (error) {
KMessageBox::error(0, i18n("%1 is not a split file.", url.pathOrUrl()));
KMessageBox::error(0, i18n("Not a split file: %1.", url.pathOrUrl()));
return;
}
}
......
......@@ -210,7 +210,7 @@ int main(int argc, char *argv[])
options.add("left <path>", ki18n("Start left panel at <path>"));
options.add("right <path>", ki18n("Start right panel at <path>"));
options.add("profile <panel-profile>", ki18n("Load this profile on startup"));
options.add("+url", ki18n("Url to open"));
options.add("+url", ki18n("URL to open"));
KCmdLineArgs::addCmdLineOptions(options); // Add our own options.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment