1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
Description: fix spelling-error
Forwarded: https://github.com/qterm/qterm/issues/24
Applied-Upstream: https://github.com/qterm/qterm/commit/722ebe7da0d42bc439ce41e82c824220de467289
fix spelling-error-in-binary and other files.
.
Author: xiao sheng wen <atzlinux@sina.com>
---
Origin: xiao sheng wen <atzlinux@sina.com>
Last-Update: 2020-09-23
--- qterm-0.7.3.orig/src/qtermcanvas.cpp
+++ qterm-0.7.3/src/qtermcanvas.cpp
@@ -158,7 +158,7 @@ void Canvas::resizeImage(double ratio)
QSize szImg = szImage;
QSize origSize = img.size();
szImg *= (1 + ratio);
- //we dont need so big
+ //we don't need so big
if (szImg.width()/origSize.width() > 4 || szImg.height()/origSize.height() > 4)
return;
szImage = szImg;
--- qterm-0.7.3.orig/src/qtermiplocation.cpp
+++ qterm-0.7.3/src/qtermiplocation.cpp
@@ -195,7 +195,7 @@ bool IPLocation::getLocation(QString& ur
city.replace(rec, 8, "");
} else {// not in this range... miss
- country = "unkown"; city = "";
+ country = "unknown"; city = "";
}// if ip_start<=ip<=ip_end
return true;
}
--- qterm-0.7.3.orig/src/qtermsocket.h
+++ qterm-0.7.3/src/qtermsocket.h
@@ -1,7 +1,7 @@
#ifndef QTERMSOCKET_H
#define QTERMSOCKET_H
-// _OS_X_ not defined if i dont include it
+// _OS_X_ not defined if i don't include it
#include <QtGlobal>
#include <QtCore/QObject>
#include <QtNetwork/QTcpSocket>
--- qterm-0.7.3.orig/src/qtermzmodem.cpp
+++ qterm-0.7.3/src/qtermzmodem.cpp
@@ -2608,7 +2608,7 @@ int Zmodem::GotRinit(ZModem *info)
itFile = strFileList.begin();
QFileInfo fi(*itFile);
- qDebug("files to be transfered %d", strFileList.count());
+ qDebug("files to be transferred %d", strFileList.count());
char *filename = strdup(fi.absoluteFilePath().toLatin1());
char *rfilename = strdup(fi.fileName().toLatin1());
ZmodemTFile(filename, rfilename,
--- qterm-0.7.3.orig/src/qtermzmodem.h
+++ qterm-0.7.3/src/qtermzmodem.h
@@ -111,7 +111,7 @@ typedef enum zmstate {
typedef struct {
int ifd ; /* input fd, for use by caller's routines */
int ofd ; /* output fd, for use by caller's routines */
- FILE *file ; /* file being transfered */
+ FILE *file ; /* file being transferred */
int zrinitflags ; /* receiver capabilities, see below */
int zsinitflags ; /* sender capabilities, see below */
char *attn ; /* attention string, see below */
--- qterm-0.7.3.orig/src/shortcutsdialog.cpp
+++ qterm-0.7.3/src/shortcutsdialog.cpp
@@ -151,7 +151,7 @@ bool ShortcutsDialog::eventFilter(QObjec
int key = keyevent->key();
Qt::KeyboardModifiers mod = keyevent->modifiers();
- // dont accept Mdodifiers only
+ // don't accept Mdodifiers only
if (key == Qt::Key_Meta || key == Qt::Key_Alt || key == Qt::Key_AltGr
|| key == Qt::Key_Shift || key == Qt::Key_Control)
return false;
--- qterm-0.7.3.orig/src/ssh/auth.cpp
+++ qterm-0.7.3/src/ssh/auth.cpp
@@ -262,7 +262,7 @@ void SSH2Auth::publicKeyAuth()
} else if (m_keyType == SSH_RSA) {
m_out->putString("ssh-rsa");
} else {
- qDebug("Unknow public key type");
+ qDebug("Unknown public key type");
failureHandler();
return;
}
--- qterm-0.7.3.orig/src/zmodemdialog.cpp
+++ qterm-0.7.3/src/zmodemdialog.cpp
@@ -44,7 +44,7 @@ void zmodemDialog::clearErrorLog()
void zmodemDialog::slotCancel()
{
QMessageBox mb( "QTerm",
- "We dont support cancel operation yet. "
+ "We don't support cancel operation yet. "
"But you can try, it will crash when downloading.\n"
"Do you want to continue?",
QMessageBox::Warning,
|