mirror of https://github.com/qt/qtgrpc.git
Fix all translate strings
It was supposed to be 'translate', not 'tr'. Change-Id: I315285ccc9df1772fdaba8bcd1db658171796140 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
85f67bb7e9
commit
dd83ec0772
|
|
@ -348,7 +348,7 @@ QByteArray QProtobufSerializer::serializeMessage(
|
||||||
void QProtobufSerializerPrivate::setUnexpectedEndOfStreamError()
|
void QProtobufSerializerPrivate::setUnexpectedEndOfStreamError()
|
||||||
{
|
{
|
||||||
setDeserializationError(QAbstractProtobufSerializer::UnexpectedEndOfStreamError,
|
setDeserializationError(QAbstractProtobufSerializer::UnexpectedEndOfStreamError,
|
||||||
QCoreApplication::tr("QtProtobuf", "Unexpected end of stream"));
|
QCoreApplication::translate("QtProtobuf", "Unexpected end of stream"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void QProtobufSerializerPrivate::clearError()
|
void QProtobufSerializerPrivate::clearError()
|
||||||
|
|
@ -641,8 +641,8 @@ bool QProtobufSerializerPrivate::deserializeProperty(
|
||||||
if (!QProtobufSerializerPrivate::decodeHeader(it, fieldNumber, wireType)) {
|
if (!QProtobufSerializerPrivate::decodeHeader(it, fieldNumber, wireType)) {
|
||||||
setDeserializationError(
|
setDeserializationError(
|
||||||
QAbstractProtobufSerializer::InvalidHeaderError,
|
QAbstractProtobufSerializer::InvalidHeaderError,
|
||||||
QCoreApplication::tr("QtProtobuf",
|
QCoreApplication::translate("QtProtobuf",
|
||||||
"Message received doesn't contains valid header byte."));
|
"Message received doesn't contain valid header byte."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -677,7 +677,7 @@ bool QProtobufSerializerPrivate::deserializeProperty(
|
||||||
qProtoWarning() << "No deserializer for type" << metaProperty.typeName();
|
qProtoWarning() << "No deserializer for type" << metaProperty.typeName();
|
||||||
setDeserializationError(
|
setDeserializationError(
|
||||||
QAbstractProtobufSerializer::NoDeserializerError,
|
QAbstractProtobufSerializer::NoDeserializerError,
|
||||||
QCoreApplication::tr("QtProtobuf",
|
QCoreApplication::translate("QtProtobuf",
|
||||||
"No deserializer is registered for type %1"));
|
"No deserializer is registered for type %1"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -704,8 +704,8 @@ bool QProtobufSerializerPrivate::deserializeMapPair(QVariant &key, QVariant &val
|
||||||
if (!QProtobufSerializerPrivate::decodeHeader(it, mapIndex, type)) {
|
if (!QProtobufSerializerPrivate::decodeHeader(it, mapIndex, type)) {
|
||||||
setDeserializationError(
|
setDeserializationError(
|
||||||
QAbstractProtobufSerializer::InvalidHeaderError,
|
QAbstractProtobufSerializer::InvalidHeaderError,
|
||||||
QCoreApplication::tr("QtProtobuf",
|
QCoreApplication::translate("QtProtobuf",
|
||||||
"Message received doesn't contains valid header byte."));
|
"Message received doesn't contain valid header byte."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (mapIndex == 1) {
|
if (mapIndex == 1) {
|
||||||
|
|
@ -714,7 +714,7 @@ bool QProtobufSerializerPrivate::deserializeMapPair(QVariant &key, QVariant &val
|
||||||
auto basicHandler = findIntegratedTypeHandler(metaType, false);
|
auto basicHandler = findIntegratedTypeHandler(metaType, false);
|
||||||
if (!basicHandler) {
|
if (!basicHandler) {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
QString errorStr = QCoreApplication::tr("QtProtobuf",
|
QString errorStr = QCoreApplication::translate("QtProtobuf",
|
||||||
"Either there is no deserializer for type "
|
"Either there is no deserializer for type "
|
||||||
"%1 or it is not a builtin type")
|
"%1 or it is not a builtin type")
|
||||||
.arg(QLatin1String(key.typeName()));
|
.arg(QLatin1String(key.typeName()));
|
||||||
|
|
@ -735,7 +735,7 @@ bool QProtobufSerializerPrivate::deserializeMapPair(QVariant &key, QVariant &val
|
||||||
qProtoWarning() << "No deserializer for type" << value.typeName();
|
qProtoWarning() << "No deserializer for type" << value.typeName();
|
||||||
setDeserializationError(
|
setDeserializationError(
|
||||||
QAbstractProtobufSerializer::NoDeserializerError,
|
QAbstractProtobufSerializer::NoDeserializerError,
|
||||||
QCoreApplication::tr("QtProtobuf",
|
QCoreApplication::translate("QtProtobuf",
|
||||||
"No deserializer is registered for type %1")
|
"No deserializer is registered for type %1")
|
||||||
.arg(QLatin1String(value.typeName())));
|
.arg(QLatin1String(value.typeName())));
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue