Skip to content

Commit

Permalink
Fix "expressions" not having the expression (and only having the tran…
Browse files Browse the repository at this point in the history
…saltion)
  • Loading branch information
cpina committed Feb 2, 2024
1 parent ef91625 commit c8b7908
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ qdacco 1.2.2 (UNRELEASED)
============
-Fix entries such as "neighbor" where, inside the <translation> there was
something such as <otherlocal>xxx</otherlocal>[MORE SPACES]</translation>
-Fix "expressions" in entries (e.g. "taula"). They didn't have the expression
meaning (only its translation). Similar problem as above

qdacco 1.2.1 (October 2023)
============
Expand Down
6 changes: 3 additions & 3 deletions nongui/StructureList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ void StructureList::processEntry(QXmlStreamReader& reader) {
m_translation.notes.append(ch);
}
else if (m_inFems) {
m_translation.female = ch;
m_translation.female += ch.trimmed();
}
else if (m_inFemPlural) {
m_translation.femalePlural = ch;
m_translation.femalePlural += ch.trimmed();
}
else if (m_inTranslation) {
/* There are entries where the "translation" is between different parts. For example:
Expand All @@ -269,7 +269,7 @@ void StructureList::processEntry(QXmlStreamReader& reader) {
m_translation.translation += ch.trimmed();
}
else if (m_inExpressions) {
m_expressions.expression = ch;
m_expressions.expression += ch.trimmed();
}
else if (m_inMistakes) {
m_mistakes = ch;
Expand Down

0 comments on commit c8b7908

Please sign in to comment.