Fix typo; Refresh translation; Update zh-CN translation (#267)

* Fix typos found by codespell

* redotool: Mark description string as translatable

* Refresh translation; Update zh_CN translation again
This commit is contained in:
Boyuan Yang
2018-07-07 20:23:24 +08:00
committed by Dharkael
parent df3958e43a
commit ecdd3b2e45
15 changed files with 97 additions and 52 deletions

View File

@@ -136,7 +136,7 @@ void UIcolorEditor::initButtons() {
this, &UIcolorEditor::changeLastButton);
connect(m_buttonContrast, &CaptureButton::pressedButton,
this, &UIcolorEditor::changeLastButton);
// clicking the labels chages the button too
// clicking the labels changes the button too
connect(m_labelMain, &ClickableLabel::clicked,
this, [this]{ changeLastButton(m_buttonMainColor); });
connect(m_labelContrast, &ClickableLabel::clicked,

View File

@@ -111,7 +111,7 @@ public:
// revert changes
virtual void undo(QPixmap &pixmap) = 0;
// Called everytime the tool has to draw
// Called every time the tool has to draw
// recordUndo indicates when the tool should save the information
// for the undo(), if the value is false calling undo() after
// that process should not modify revert the changes.

View File

@@ -39,7 +39,7 @@ QString RedoTool::nameID() {
}
QString RedoTool::description() const {
return "Redo the next modification";
return tr("Redo the next modification");
}
CaptureTool* RedoTool::copy(QObject *parent) {

View File

@@ -112,7 +112,7 @@ void ButtonHandler::updatePosition(const QRect &selection) {
elemsAtCorners -= elemCornersTop;
int elemCornersBotton = qBound(0, elemsAtCorners, maxExtra);
// Add buttons at the botton of the seletion
// Add buttons at the button of the seletion
if (!m_blockedBotton) {
int addCounter = buttonsPerRow + elemCornersBotton;
// Don't add more than we have