Skip to content

Untranslated texts #110

Description

@Jojo-Schmitz

I found 2 texts that, as they show in a MuseScore dialog, should be translated/translatable, but are not:

Image

Affects the texts "empty document" and "unknown encoding". Code:

void XmlStreamReader::setData(const ByteArray& data_)
{
TRACEFUNC;
m_xml->doc.reset();
m_xml->customErr.clear();
m_token = TokenType::Invalid;
if (data_.size() < 4) {
m_xml->result = pugi::xml_parse_result{}; // zero it
m_xml->result.status = pugi::status_no_document_element;
m_xml->customErr = String(u"empty document");
LOGE() << m_xml->customErr;
return;
}
UtfCodec::Encoding enc = UtfCodec::xmlEncoding(data_);
if (enc == UtfCodec::Encoding::Unknown) {
m_xml->result = pugi::xml_parse_result{};
m_xml->result.status = pugi::status_internal_error;
m_xml->customErr = String(u"unknown encoding");
LOGE() << m_xml->customErr;
return;
}

Apart from that both strings should probably start with a capital letter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions