Browse Source

update translations

Le Tan 3 years ago
parent
commit
fe3280e02e

File diff suppressed because it is too large
+ 377 - 232
src/data/core/translations/vnote_ja.ts


BIN
src/data/core/translations/vnote_zh_CN.qm


File diff suppressed because it is too large
+ 400 - 223
src/data/core/translations/vnote_zh_CN.ts


+ 1 - 1
src/data/extra/extra.qrc

@@ -79,7 +79,7 @@
         <file>web/js/mark.js/mark.min.js</file>
         <file>web/js/markjs.js</file>
         <file>web/js/mind-elixir/MindElixir.min.js</file>
-        <file>web/js/mind-elixir/painter.min.js</file>
+        <file>web/js/mind-elixir/painter.js</file>
         <file>dicts/en_US.aff</file>
         <file>dicts/en_US.dic</file>
         <file>themes/native/text-editor.theme</file>

+ 1 - 1
src/unitedentry/unitedentry.cpp

@@ -98,7 +98,7 @@ void UnitedEntry::setupUI()
     m_lineEdit->setClearButtonEnabled(true);
     m_lineEdit->setSizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Fixed);
     connect(m_lineEdit, &QLineEdit::textChanged,
-            m_processTimer, QOverload<void>::of(&QTimer::start));
+            m_processTimer, QOverload<>::of(&QTimer::start));
     setFocusProxy(m_lineEdit);
 
     // Popup.

+ 1 - 1
src/unitedentry/unitedentryalias.cpp

@@ -59,7 +59,7 @@ void UnitedEntryAlias::processInternal(const QString &p_args,
                                        const std::function<void(const QSharedPointer<QWidget> &)> &p_popupWidgetFunc)
 {
     if (!m_realEntry) {
-        auto label = EntryWidgetFactory::createLabel(tr("Invalid UnitedEntry alias: %1").arg(m_value));
+        auto label = EntryWidgetFactory::createLabel(tr("Invalid United Entry alias: %1").arg(m_value));
         p_popupWidgetFunc(label);
         emit finished();
         return;

+ 2 - 2
src/widgets/dialogs/settings/markdowneditorpage.cpp

@@ -534,7 +534,7 @@ QGroupBox *MarkdownEditorPage::setupGeneralGroup()
         m_plantUmlWebServiceLineEdit = WidgetsFactory::createLineEdit(box);
         m_plantUmlWebServiceLineEdit->setToolTip(tr("Override the Web service used to render PlantUml graphs"));
 
-        const QString label(tr("PlantUml Web service:"));
+        const QString label(tr("Override PlantUml Web service:"));
         layout->addRow(label, m_plantUmlWebServiceLineEdit);
         addSearchItem(label, m_plantUmlWebServiceLineEdit->toolTip(), m_plantUmlWebServiceLineEdit);
         connect(m_plantUmlWebServiceLineEdit, &QLineEdit::textChanged,
@@ -604,7 +604,7 @@ QGroupBox *MarkdownEditorPage::setupGeneralGroup()
         m_mathJaxScriptLineEdit = WidgetsFactory::createLineEdit(box);
         m_mathJaxScriptLineEdit->setToolTip(tr("Override the MathJax script used to render math formulas"));
 
-        const QString label(tr("MathJax script:"));
+        const QString label(tr("Override MathJax script:"));
         layout->addRow(label, m_mathJaxScriptLineEdit);
         addSearchItem(label, m_mathJaxScriptLineEdit->toolTip(), m_mathJaxScriptLineEdit);
         connect(m_mathJaxScriptLineEdit, &QLineEdit::textChanged,

+ 0 - 18
src/widgets/editors/markdowneditor.cpp

@@ -570,24 +570,6 @@ bool MarkdownEditor::processHtmlFromMimeData(const QMimeData *p_source)
         return true;
     }
 
-    // Parse to Markdown and Paste.
-    SelectDialog dialog(tr("Insert From Clipboard"), this);
-    dialog.addSelection(tr("Insert As Text"), 0);
-    dialog.addSelection(tr("Parse to Markdown and Paste"), 1);
-
-    if (dialog.exec() == QDialog::Accepted) {
-        int selection = dialog.getSelection();
-        if (selection == 0) {
-            // Insert as text.
-            m_textEdit->insertFromMimeDataOfBase(p_source);
-            return true;
-        } else if (selection == 1) {
-            // Parse to Markdown and Paste.
-            parseToMarkdownAndPaste();
-            return true;
-        }
-    }
-
     return false;
 }
 

Some files were not shown because too many files changed in this diff