forked from qt-creator/qt-creator
LanguageServerProtocol: Tr::tr
Change-Id: Ica2f568385545552b255fcf05694e8ecde92407f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -41996,7 +41996,7 @@ Was soll %1 tun?</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BaseMessage</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Cannot decode content with "%1". Falling back to "%2".</source>
|
<source>Cannot decode content with "%1". Falling back to "%2".</source>
|
||||||
<translation>Zeichensatz "%1" kann nicht dekodiert werden. Verwende stattdessen "%2".</translation>
|
<translation>Zeichensatz "%1" kann nicht dekodiert werden. Verwende stattdessen "%2".</translation>
|
||||||
@@ -42005,16 +42005,10 @@ Was soll %1 tun?</translation>
|
|||||||
<source>Expected an integer in "%1", but got "%2".</source>
|
<source>Expected an integer in "%1", but got "%2".</source>
|
||||||
<translation>Statt eines Ganzzahlwerts wurde "%2" in "%1" gefunden.</translation>
|
<translation>Statt eines Ganzzahlwerts wurde "%2" in "%1" gefunden.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::Notification</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>No parameters in "%1".</source>
|
<source>No parameters in "%1".</source>
|
||||||
<translation>Keine Parameter in "%1".</translation>
|
<translation>Keine Parameter in "%1".</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::Request</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>No ID set in "%1".</source>
|
<source>No ID set in "%1".</source>
|
||||||
<translation>In "%1" ist keine ID angegeben.</translation>
|
<translation>In "%1" ist keine ID angegeben.</translation>
|
||||||
@@ -50240,7 +50234,7 @@ Teilnamen können verwendet werden, sofern sie eindeutig sind.</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>JsonRpcMessage</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Could not parse JSON message "%1".</source>
|
<source>Could not parse JSON message "%1".</source>
|
||||||
<translation type="unfinished">Die JSON-Nachricht konnte nicht ausgewertet werden: "%1".</translation>
|
<translation type="unfinished">Die JSON-Nachricht konnte nicht ausgewertet werden: "%1".</translation>
|
||||||
|
@@ -10737,7 +10737,7 @@ will also disable the following plugins:
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BaseMessage</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Unexpected header line "%1".</source>
|
<source>Unexpected header line "%1".</source>
|
||||||
<translation>Neočekivani redak u zaglavlju "%1".</translation>
|
<translation>Neočekivani redak u zaglavlju "%1".</translation>
|
||||||
@@ -10754,9 +10754,6 @@ will also disable the following plugins:
|
|||||||
<source>Unexpected header field "%1" in "%2".</source>
|
<source>Unexpected header field "%1" in "%2".</source>
|
||||||
<translation>Neočekivano polje u zaglavlju "%1" u "%2".</translation>
|
<translation>Neočekivano polje u zaglavlju "%1" u "%2".</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::JsonObject</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Expected type %1 but value contained %2</source>
|
<source>Expected type %1 but value contained %2</source>
|
||||||
<translation>Očekivana vrsta %1, ali vrijednost je sadržavala %2</translation>
|
<translation>Očekivana vrsta %1, ali vrijednost je sadržavala %2</translation>
|
||||||
@@ -10774,7 +10771,7 @@ will also disable the following plugins:
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LanguageServerProtocol::Notification</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>No parameters in "%1".</source>
|
<source>No parameters in "%1".</source>
|
||||||
<translation>Nema parametara u "%1".</translation>
|
<translation>Nema parametara u "%1".</translation>
|
||||||
@@ -10788,14 +10785,11 @@ will also disable the following plugins:
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LanguageServerProtocol::Request</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>No ID set in "%1".</source>
|
<source>No ID set in "%1".</source>
|
||||||
<translation>nema postavljene ID-oznake u "%1".</translation>
|
<translation>nema postavljene ID-oznake u "%1".</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::MarkedString</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>MarkedString should be either MarkedLanguageString, MarkupContent, or QList<MarkedLanguageString>.</source>
|
<source>MarkedString should be either MarkedLanguageString, MarkupContent, or QList<MarkedLanguageString>.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
@@ -10804,9 +10798,6 @@ will also disable the following plugins:
|
|||||||
<source>DocumentFormattingProperty should be either bool, double, or QString.</source>
|
<source>DocumentFormattingProperty should be either bool, double, or QString.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocoll::MarkupOrString</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Expected a string or MarkupContent in MarkupOrString.</source>
|
<source>Expected a string or MarkupContent in MarkupOrString.</source>
|
||||||
<translation>Dupli klik za prikaz.</translation>
|
<translation>Dupli klik za prikaz.</translation>
|
||||||
|
@@ -43464,7 +43464,7 @@ Output:
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BaseMessage</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Cannot decode content with "%1". Falling back to "%2".</source>
|
<source>Cannot decode content with "%1". Falling back to "%2".</source>
|
||||||
<translation>コンテンツを "%1" でデコードできません。"%2" にフォールバックします。</translation>
|
<translation>コンテンツを "%1" でデコードできません。"%2" にフォールバックします。</translation>
|
||||||
@@ -43473,9 +43473,6 @@ Output:
|
|||||||
<source>Expected an integer in "%1", but got "%2".</source>
|
<source>Expected an integer in "%1", but got "%2".</source>
|
||||||
<translation>"%1" の中身は整数を期待していましたが、"%2" でした。</translation>
|
<translation>"%1" の中身は整数を期待していましたが、"%2" でした。</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::JsonObject</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Expected type %1 but value contained %2</source>
|
<source>Expected type %1 but value contained %2</source>
|
||||||
<translation>期待される型は %1 ですが、値には %2 が含まれています</translation>
|
<translation>期待される型は %1 ですが、値には %2 が含まれています</translation>
|
||||||
@@ -43497,7 +43494,7 @@ Output:
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LanguageServerProtocol::Notification</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>No parameters in "%1".</source>
|
<source>No parameters in "%1".</source>
|
||||||
<translation>"%1" にはパラメータがありません。</translation>
|
<translation>"%1" にはパラメータがありません。</translation>
|
||||||
@@ -43511,28 +43508,19 @@ Output:
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LanguageServerProtocol::Request</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>No ID set in "%1".</source>
|
<source>No ID set in "%1".</source>
|
||||||
<translation>"%1"に ID が設定されていません。</translation>
|
<translation>"%1"に ID が設定されていません。</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::HoverContent</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>HoverContent should be either MarkedString, MarkupContent, or QList<MarkedString>.</source>
|
<source>HoverContent should be either MarkedString, MarkupContent, or QList<MarkedString>.</source>
|
||||||
<translation>HoverContent は、MarkedString、MarkupContent、または QList<MarkedString> のいずれかでなければなりません。</translation>
|
<translation>HoverContent は、MarkedString、MarkupContent、または QList<MarkedString> のいずれかでなければなりません。</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::MarkedString</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>DocumentFormattingProperty should be either bool, double, or QString.</source>
|
<source>DocumentFormattingProperty should be either bool, double, or QString.</source>
|
||||||
<translation>DocumentFormattingProperty は、bool、double、または QString のいずれかでなければなりません。</translation>
|
<translation>DocumentFormattingProperty は、bool、double、または QString のいずれかでなければなりません。</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocoll::MarkupOrString</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Expected a string or MarkupContent in MarkupOrString.</source>
|
<source>Expected a string or MarkupContent in MarkupOrString.</source>
|
||||||
<translation>MarkupOrString は文字列または MarkupContent に対応しています。</translation>
|
<translation>MarkupOrString は文字列または MarkupContent に対応しています。</translation>
|
||||||
|
@@ -4059,7 +4059,7 @@ Warning: this is an experimental feature and might lead to failing to execute th
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BaseMessage</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Cannot decode content with "%1". Falling back to "%2".</source>
|
<source>Cannot decode content with "%1". Falling back to "%2".</source>
|
||||||
<translation>Нельзя преобразовать содержимое с помощью «%1». Возврат к «%2».</translation>
|
<translation>Нельзя преобразовать содержимое с помощью «%1». Возврат к «%2».</translation>
|
||||||
@@ -23822,14 +23822,11 @@ Error: %5</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LanguageServerProtocol::HoverContent</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>HoverContent should be either MarkedString, MarkupContent, or QList<MarkedString>.</source>
|
<source>HoverContent should be either MarkedString, MarkupContent, or QList<MarkedString>.</source>
|
||||||
<translation>HoverContent должен быть или MarkedString, или MarkupContent, или QList<MarkedString>.</translation>
|
<translation>HoverContent должен быть или MarkedString, или MarkupContent, или QList<MarkedString>.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::JsonObject</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Expected type %1 but value contained %2</source>
|
<source>Expected type %1 but value contained %2</source>
|
||||||
<translation>Ожидается тип %1, но значение содержит %2</translation>
|
<translation>Ожидается тип %1, но значение содержит %2</translation>
|
||||||
@@ -23838,30 +23835,18 @@ Error: %5</translation>
|
|||||||
<source>None of the following variants could be correctly parsed:</source>
|
<source>None of the following variants could be correctly parsed:</source>
|
||||||
<translation>Ни один из следующих вариантов невозможно корректно разобрать:</translation>
|
<translation>Ни один из следующих вариантов невозможно корректно разобрать:</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::MarkedString</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>DocumentFormattingProperty should be either bool, double, or QString.</source>
|
<source>DocumentFormattingProperty should be either bool, double, or QString.</source>
|
||||||
<translation>DocumentFormattingProperty должен быть или bool, или double, или QString.</translation>
|
<translation>DocumentFormattingProperty должен быть или bool, или double, или QString.</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::Notification</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>No parameters in "%1".</source>
|
<source>No parameters in "%1".</source>
|
||||||
<translation>Нет параметров в «%1».</translation>
|
<translation>Нет параметров в «%1».</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::Request</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>No ID set in "%1".</source>
|
<source>No ID set in "%1".</source>
|
||||||
<translation>Не задан ID в «%1».</translation>
|
<translation>Не задан ID в «%1».</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocoll::MarkupOrString</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Expected a string or MarkupContent in MarkupOrString.</source>
|
<source>Expected a string or MarkupContent in MarkupOrString.</source>
|
||||||
<translation>Ожидается string или MarkupContent в MarkupOrString.</translation>
|
<translation>Ожидается string или MarkupContent в MarkupOrString.</translation>
|
||||||
|
@@ -4321,7 +4321,7 @@ Warning: this is an experimental feature and might lead to failing to execute th
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>BaseMessage</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Cannot decode content with "%1". Falling back to "%2".</source>
|
<source>Cannot decode content with "%1". Falling back to "%2".</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
@@ -23506,7 +23506,7 @@ Error: %5</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>JsonRpcMessage</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Could not parse JSON message "%1".</source>
|
<source>Could not parse JSON message "%1".</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
@@ -23776,14 +23776,11 @@ Error: %5</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LanguageServerProtocol::Notification</name>
|
<name>LanguageServerProtocol</name>
|
||||||
<message>
|
<message>
|
||||||
<source>No parameters in "%1".</source>
|
<source>No parameters in "%1".</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>LanguageServerProtocol::Request</name>
|
|
||||||
<message>
|
<message>
|
||||||
<source>No ID set in "%1".</source>
|
<source>No ID set in "%1".</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
#include "basemessage.h"
|
#include "basemessage.h"
|
||||||
|
|
||||||
#include "jsonrpcmessages.h"
|
#include "jsonrpcmessages.h"
|
||||||
|
#include "languageserverprotocoltr.h"
|
||||||
|
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
@@ -80,10 +81,9 @@ static void parseContentType(BaseMessage &message, QByteArray contentType, QStri
|
|||||||
if (equalindex > 0)
|
if (equalindex > 0)
|
||||||
codec = QTextCodec::codecForName(charset);
|
codec = QTextCodec::codecForName(charset);
|
||||||
if (!codec) {
|
if (!codec) {
|
||||||
parseError = BaseMessage::tr("Cannot decode content with \"%1\". "
|
parseError = Tr::tr("Cannot decode content with \"%1\". Falling back to \"%2\".")
|
||||||
"Falling back to \"%2\".")
|
.arg(QLatin1String(charset),
|
||||||
.arg(QLatin1String(charset),
|
QLatin1String(defaultCharset));
|
||||||
QLatin1String(defaultCharset));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -96,7 +96,7 @@ static void parseContentLength(BaseMessage &message, QByteArray contentLength, Q
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
message.contentLength = contentLength.toInt(&ok);
|
message.contentLength = contentLength.toInt(&ok);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
parseError = BaseMessage::tr("Expected an integer in \"%1\", but got \"%2\".")
|
parseError = Tr::tr("Expected an integer in \"%1\", but got \"%2\".")
|
||||||
.arg(QString::fromLatin1(contentLengthFieldName), QString::fromLatin1(contentLength));
|
.arg(QString::fromLatin1(contentLengthFieldName), QString::fromLatin1(contentLength));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -20,7 +20,6 @@ LANGUAGESERVERPROTOCOL_EXPORT Q_DECLARE_LOGGING_CATEGORY(parseLog)
|
|||||||
|
|
||||||
class LANGUAGESERVERPROTOCOL_EXPORT BaseMessage
|
class LANGUAGESERVERPROTOCOL_EXPORT BaseMessage
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(BaseMessage)
|
|
||||||
public:
|
public:
|
||||||
BaseMessage();
|
BaseMessage();
|
||||||
BaseMessage(const QByteArray &mimeType, const QByteArray &content,
|
BaseMessage(const QByteArray &mimeType, const QByteArray &content,
|
||||||
|
@@ -14,8 +14,6 @@ namespace LanguageServerProtocol {
|
|||||||
|
|
||||||
class LANGUAGESERVERPROTOCOL_EXPORT JsonObject
|
class LANGUAGESERVERPROTOCOL_EXPORT JsonObject
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(LanguageServerProtocol::JsonObject)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
using iterator = QJsonObject::iterator;
|
using iterator = QJsonObject::iterator;
|
||||||
using const_iterator = QJsonObject::const_iterator;
|
using const_iterator = QJsonObject::const_iterator;
|
||||||
|
@@ -3,8 +3,9 @@
|
|||||||
|
|
||||||
#include "jsonrpcmessages.h"
|
#include "jsonrpcmessages.h"
|
||||||
|
|
||||||
#include "lsputils.h"
|
|
||||||
#include "initializemessages.h"
|
#include "initializemessages.h"
|
||||||
|
#include "languageserverprotocoltr.h"
|
||||||
|
#include "lsputils.h"
|
||||||
|
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|
||||||
@@ -76,9 +77,11 @@ JsonRpcMessage::JsonRpcMessage(const BaseMessage &message)
|
|||||||
if (doc.isObject())
|
if (doc.isObject())
|
||||||
m_jsonObject = doc.object();
|
m_jsonObject = doc.object();
|
||||||
else if (doc.isNull())
|
else if (doc.isNull())
|
||||||
m_parseError = tr("Could not parse JSON message \"%1\".").arg(error.errorString());
|
m_parseError =
|
||||||
|
Tr::tr("Could not parse JSON message \"%1\".").arg(error.errorString());
|
||||||
else
|
else
|
||||||
m_parseError = tr("Expected a JSON object, but got a JSON \"%1\" value.").arg(docType(doc));
|
m_parseError =
|
||||||
|
Tr::tr("Expected a JSON object, but got a JSON \"%1\" value.").arg(docType(doc));
|
||||||
}
|
}
|
||||||
|
|
||||||
JsonRpcMessage::JsonRpcMessage(const QJsonObject &jsonObject)
|
JsonRpcMessage::JsonRpcMessage(const QJsonObject &jsonObject)
|
||||||
|
@@ -4,8 +4,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "basemessage.h"
|
#include "basemessage.h"
|
||||||
#include "lsptypes.h"
|
|
||||||
#include "jsonkeys.h"
|
#include "jsonkeys.h"
|
||||||
|
#include "languageserverprotocoltr.h"
|
||||||
|
#include "lsptypes.h"
|
||||||
|
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|
||||||
@@ -94,7 +95,6 @@ struct ResponseHandler
|
|||||||
|
|
||||||
class LANGUAGESERVERPROTOCOL_EXPORT JsonRpcMessage
|
class LANGUAGESERVERPROTOCOL_EXPORT JsonRpcMessage
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(JsonRpcMessage)
|
|
||||||
public:
|
public:
|
||||||
JsonRpcMessage();
|
JsonRpcMessage();
|
||||||
explicit JsonRpcMessage(const BaseMessage &message);
|
explicit JsonRpcMessage(const BaseMessage &message);
|
||||||
@@ -163,8 +163,7 @@ public:
|
|||||||
if (auto parameter = params())
|
if (auto parameter = params())
|
||||||
return parameter->isValid();
|
return parameter->isValid();
|
||||||
if (errorMessage)
|
if (errorMessage)
|
||||||
*errorMessage = QCoreApplication::translate("LanguageServerProtocol::Notification",
|
*errorMessage = Tr::tr("No parameters in \"%1\".").arg(method());
|
||||||
"No parameters in \"%1\".").arg(method());
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -254,8 +253,7 @@ public:
|
|||||||
CASE_ERRORCODES(ServerNotInitialized);
|
CASE_ERRORCODES(ServerNotInitialized);
|
||||||
CASE_ERRORCODES(RequestCancelled);
|
CASE_ERRORCODES(RequestCancelled);
|
||||||
default:
|
default:
|
||||||
return QCoreApplication::translate("LanguageClient::ResponseError",
|
return QCoreApplication::translate("::LanguageClient", "Error %1").arg(code);
|
||||||
"Error %1").arg(code);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#undef CASE_ERRORCODES
|
#undef CASE_ERRORCODES
|
||||||
@@ -376,10 +374,8 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
if (id().isValid())
|
if (id().isValid())
|
||||||
return true;
|
return true;
|
||||||
if (errorMessage) {
|
if (errorMessage)
|
||||||
*errorMessage = QCoreApplication::translate("LanguageServerProtocol::Request",
|
*errorMessage = Tr::tr("No ID set in \"%1\".").arg(this->method());
|
||||||
"No ID set in \"%1\".").arg(this->method());
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user