Skip to content

Commit c8b7908

Browse files
committed
Fix "expressions" not having the expression (and only having the transaltion)
1 parent ef91625 commit c8b7908

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

changelog

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ qdacco 1.2.2 (UNRELEASED)
22
============
33
-Fix entries such as "neighbor" where, inside the <translation> there was
44
something such as <otherlocal>xxx</otherlocal>[MORE SPACES]</translation>
5+
-Fix "expressions" in entries (e.g. "taula"). They didn't have the expression
6+
meaning (only its translation). Similar problem as above
57

68
qdacco 1.2.1 (October 2023)
79
============

nongui/StructureList.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ void StructureList::processEntry(QXmlStreamReader& reader) {
248248
m_translation.notes.append(ch);
249249
}
250250
else if (m_inFems) {
251-
m_translation.female = ch;
251+
m_translation.female += ch.trimmed();
252252
}
253253
else if (m_inFemPlural) {
254-
m_translation.femalePlural = ch;
254+
m_translation.femalePlural += ch.trimmed();
255255
}
256256
else if (m_inTranslation) {
257257
/* There are entries where the "translation" is between different parts. For example:
@@ -269,7 +269,7 @@ void StructureList::processEntry(QXmlStreamReader& reader) {
269269
m_translation.translation += ch.trimmed();
270270
}
271271
else if (m_inExpressions) {
272-
m_expressions.expression = ch;
272+
m_expressions.expression += ch.trimmed();
273273
}
274274
else if (m_inMistakes) {
275275
m_mistakes = ch;

0 commit comments

Comments
 (0)