From e221b04965b0d278c166418436879fc0c07759d5 Mon Sep 17 00:00:00 2001 From: Martin Mayer Date: Wed, 2 Sep 2009 13:58:44 +0200 Subject: [PATCH] make alias-tooltips translateable and translate them into german --- i18n/quassel_de.ts | 10 ++++++++++ src/qtui/settingspages/aliasesmodel.cpp | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/i18n/quassel_de.ts b/i18n/quassel_de.ts index 1285bffd..1fb9ee2e 100644 --- a/i18n/quassel_de.ts +++ b/i18n/quassel_de.ts @@ -91,6 +91,16 @@ p, li { white-space: pre-wrap; } AliasesModel + + + <b>The shortcut for the alias</b><br />It can be used as a regular slash command.<br /><br /><b>Example:</b> "foo" can be used per /foo + <b>Kurzbefehl des Alias</b><br />Kann als normaler Slash-Befehl verwendet werden.<br /><br /><b>Beispiel:</b> Der Alias "foo" wird mit /foo ausgeführt. + + + + <b>The string the shortcut will be expanded to</b><br /><b>special variables:</b><br /> - <b>$i</b> represents the i'th parameter.<br /> - <b>$i..j</b> represents the i'th to j'th parameter separated by spaces.<br /> - <b>$i..</b> represents all parameters from i on separated by spaces.<br /> - <b>$i:hostname</b> represents the hostname of the user identified by the i'th parameter or a * if unknown.<br /> - <b>$0</b> the whole string.<br /> - <b>$nick</b> your current nickname<br /> - <b>$channel</b> the name of the selected channel<br /><br />Multiple commands can be separated with semicolons<br /><br /><b>Example:</b> "Test $1; Test $2; Test All $0" will be expanded to three separate messages "Test 1", "Test 2" and "Test All 1 2 3" when called like /test 1 2 3 + <b>Der Befehl, zudem der Alias erweitert wird</b><br /><b> Besondere Variablen:</b><br /> - <b>$i</b> steht für den i-ten Parameter.<br /> - <b>$i..j</b> steht für den i-ten bis zum j-ten Parameter, mit Leerzeichen getrennt.<br /> - <b>$i..</b> steht für alle Parameter ab dem i-ten, mit Leerzeichen getrennt.<br /> - <b>$i:hostname</b> steht für den Hostnamen des Bentuzers, der im i-ten Parameter übergeben wird oder * falls es unbekannt ist.<br /> - <b>$0</b> steht für die gesamte Zeichenkette.<br /> - <b>$nick</b> steht für Ihren momentanen Spitznamen.<br /> - <b>$channel</b> steht für den Namen des momentan ausgewählten Chats.<br /><br />Mehrere Befehle können mit Strichkommata getrennt werden.<br /><br /><b>Beispiel:</b> "Test $1; Test $2; Test All $0" wird erweitert zu den drei getrennten Meldungen "Test 1", "Test 2" und "Test All 1 2 3", wenn /test 1 2 3 aufgerufen wird. + Alias diff --git a/src/qtui/settingspages/aliasesmodel.cpp b/src/qtui/settingspages/aliasesmodel.cpp index c36bebdd..4d00d375 100644 --- a/src/qtui/settingspages/aliasesmodel.cpp +++ b/src/qtui/settingspages/aliasesmodel.cpp @@ -52,11 +52,11 @@ QVariant AliasesModel::data(const QModelIndex &index, int role) const { case Qt::ToolTipRole: switch(index.column()) { case 0: - return "The shortcut for the alias
" + return tr("The shortcut for the alias
" "It can be used as a regular slash command.

" - "Example: \"foo\" can be used per /foo"; + "Example: \"foo\" can be used per /foo"); case 1: - return "The string the shortcut will be expanded to
" + return tr("The string the shortcut will be expanded to
" "special variables:
" " - $i represents the i'th parameter.
" " - $i..j represents the i'th to j'th parameter separated by spaces.
" @@ -66,7 +66,7 @@ QVariant AliasesModel::data(const QModelIndex &index, int role) const { " - $nick your current nickname
" " - $channel the name of the selected channel

" "Multiple commands can be separated with semicolons

" - "Example: \"Test $1; Test $2; Test All $0\" will be expanded to three separate messages \"Test 1\", \"Test 2\" and \"Test All 1 2 3\" when called like /test 1 2 3"; + "Example: \"Test $1; Test $2; Test All $0\" will be expanded to three separate messages \"Test 1\", \"Test 2\" and \"Test All 1 2 3\" when called like /test 1 2 3"); default: return QVariant(); } -- 2.20.1