diff src/converter.cpp @ 21:0b66b10a287d

Add german translation
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 30 Mar 2016 17:08:46 +0200
parents df7936065450
children 927794e3cc52
line wrap: on
line diff
--- a/src/converter.cpp	Wed Mar 30 16:56:18 2016 +0200
+++ b/src/converter.cpp	Wed Mar 30 17:08:46 2016 +0200
@@ -150,7 +150,7 @@
         if (answerLine == QStringLiteral(CHOICE_IDENTIFIER)) {
             QRegularExpressionMatch choiceMatch = choiceEx.match(input, cursor);
             xlsx.setRowHeight(row, CHOICE_ROW_HEIGHT);
-            xlsx.write(row++, 1, tr("Answer"), mAnswerChoiceFmt);
+            xlsx.write(row++, 1, "Answer", mAnswerChoiceFmt);
             int firstChoiceRow = row;
             int lastChoiceRow = row;
             while (choiceMatch.hasMatch() && choiceMatch.capturedStart() == cursor + 1) {
@@ -171,7 +171,7 @@
                     mErrors << "Unparsable number in string: " + choiceMatch.captured();
                 }
                 xlsx.write(row, 2, percent);
-                xlsx.write(row, 3, tr("%1% | %2 Number of votes").
+                xlsx.write(row, 3, QString("%1% | %2 Number of votes").
                            arg(choiceMatch.captured(3)).arg(choiceMatch.captured(2)),
                            mChoiceVotesFmt);
                 xlsx.setRowHeight(row, CHOICE_ROW_HEIGHT);
@@ -186,7 +186,7 @@
         } else if (answerLine == QStringLiteral(TEXT_IDENTIFIER)) {
             QRegularExpressionMatch textMatch = freetxtEx.match(input, cursor);
             xlsx.setRowHeight(row, CHOICE_ROW_HEIGHT);
-            xlsx.write(row++, 1, tr("Answer"), mAnswerTextFmt);
+            xlsx.write(row++, 1, "Answer", mAnswerTextFmt);
             while (textMatch.hasMatch()) {
                 if (textMatch.capturedStart() != cursor + 1) {
                     /* The format allows unescaped quotes in the text.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)