# HG changeset patch # User Andre Heinecke # Date 1459350526 -7200 # Node ID 0b66b10a287dad8193d7cd410186edce622a1744 # Parent df7936065450f010b39aeed84eaca7fd991c1518 Add german translation diff -r df7936065450 -r 0b66b10a287d src/CMakeLists.txt --- a/src/CMakeLists.txt Wed Mar 30 16:56:18 2016 +0200 +++ b/src/CMakeLists.txt Wed Mar 30 17:08:46 2016 +0200 @@ -16,6 +16,7 @@ main.cpp converter.cpp strhelp.c + cconvert_options.h ) find_package(Qt5LinguistTools) diff -r df7936065450 -r 0b66b10a287d src/cconvert_options.h --- a/src/cconvert_options.h Wed Mar 30 16:56:18 2016 +0200 +++ b/src/cconvert_options.h Wed Mar 30 17:08:46 2016 +0200 @@ -23,7 +23,7 @@ << QCommandLineOption(QStringList() << QStringLiteral("output") << QStringLiteral("o"), QObject::tr("write output to file (default stdout)"), - QObject::tr("[file]")) + QObject::tr("file")) << QCommandLineOption(QStringList() << QStringLiteral("title") << QStringLiteral("t"), QObject::tr("Set the title of the document."), diff -r df7936065450 -r 0b66b10a287d src/converter.cpp --- 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. diff -r df7936065450 -r 0b66b10a287d src/l10n/l10n.qrc.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/l10n/l10n.qrc.in Wed Mar 30 17:08:46 2016 +0200 @@ -0,0 +1,5 @@ + + + @CMAKE_CURRENT_BINARY_DIR@/main_de_DE.qm + + diff -r df7936065450 -r 0b66b10a287d src/l10n/main_de_DE.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/l10n/main_de_DE.ts Wed Mar 30 17:08:46 2016 +0200 @@ -0,0 +1,75 @@ + + + + + Converter + + + Failed to open standard input and no input file provided. + Öffnen des Eingabekanals Fehlgeschlagen und keine Eingabedatei übergeben. + + + + Failed to open %1 for reading. + Die Datei "%1" konnte nicht gelesen werden. + + + + Failed to open standard output and no output file provided. + Öffnen des Ausgabekanals Fehlgeschlagen und keine Ausgabedatei übergeben. + + + + Failed to open %1 for writing. + Die Datei "%1" konnte nicht geöffnet werden. + + + + Failed to parse input document. + Fehler bei der verarbeitung des Eingabedokuments. + + + + Saving the XLSX document failed. + Das erstellen des XLSX Dokuments ist fehlgeschlagen. + + + + QObject + + + write output to file (default stdout) + Ausgabe in Datei schreiben (standard stdout) + + + + [file] + [Datei] + + + + Set the title of the document. + Titel des Dokuments + + + + file + Datei + + + + "The Title" + "Der Titel" + + + + Print debug output. + Debug ausgaben aktivieren + + + + File to process (default stdin) + Eingabedatei (standard stdin) + + +