Mercurial > clickerconvert
changeset 21:0b66b10a287d
Add german translation
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 30 Mar 2016 17:08:46 +0200 |
parents | df7936065450 |
children | e8320104979d |
files | src/CMakeLists.txt src/cconvert_options.h src/converter.cpp src/l10n/l10n.qrc.in src/l10n/main_de_DE.ts |
diffstat | 5 files changed, 85 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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."),
--- 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.
--- /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 @@ +<!DOCTYPE RCC><RCC version="1.0"> +<qresource prefix="/l10n"> + <file alias="main_de_DE.qm">@CMAKE_CURRENT_BINARY_DIR@/main_de_DE.qm</file> +</qresource> +</RCC>
--- /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 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="de_DE"> +<context> + <name>Converter</name> + <message> + <location filename="../converter.cpp" line="68"/> + <source>Failed to open standard input and no input file provided.</source> + <translation>Öffnen des Eingabekanals Fehlgeschlagen und keine Eingabedatei übergeben.</translation> + </message> + <message> + <location filename="../converter.cpp" line="74"/> + <source>Failed to open %1 for reading.</source> + <translation>Die Datei "%1" konnte nicht gelesen werden.</translation> + </message> + <message> + <location filename="../converter.cpp" line="83"/> + <source>Failed to open standard output and no output file provided.</source> + <translation>Öffnen des Ausgabekanals Fehlgeschlagen und keine Ausgabedatei übergeben.</translation> + </message> + <message> + <location filename="../converter.cpp" line="89"/> + <source>Failed to open %1 for writing.</source> + <translation>Die Datei "%1" konnte nicht geöffnet werden.</translation> + </message> + <message> + <location filename="../converter.cpp" line="253"/> + <source>Failed to parse input document.</source> + <translation>Fehler bei der verarbeitung des Eingabedokuments.</translation> + </message> + <message> + <location filename="../converter.cpp" line="257"/> + <source>Saving the XLSX document failed.</source> + <translation>Das erstellen des XLSX Dokuments ist fehlgeschlagen.</translation> + </message> +</context> +<context> + <name>QObject</name> + <message> + <location filename="../cconvert_options.h" line="25"/> + <source>write output to file (default stdout)</source> + <translation>Ausgabe in Datei schreiben (standard stdout)</translation> + </message> + <message> + <location filename="../cconvert_options.h" line="41"/> + <source>[file]</source> + <translation>[Datei]</translation> + </message> + <message> + <location filename="../cconvert_options.h" line="29"/> + <source>Set the title of the document.</source> + <translation>Titel des Dokuments</translation> + </message> + <message> + <location filename="../cconvert_options.h" line="26"/> + <source>file</source> + <translation>Datei</translation> + </message> + <message> + <location filename="../cconvert_options.h" line="30"/> + <source>"The Title"</source> + <translation>"Der Titel"</translation> + </message> + <message> + <location filename="../cconvert_options.h" line="32"/> + <source>Print debug output.</source> + <translation>Debug ausgaben aktivieren</translation> + </message> + <message> + <location filename="../cconvert_options.h" line="40"/> + <source>File to process (default stdin)</source> + <translation>Eingabedatei (standard stdin)</translation> + </message> +</context> +</TS>