Commit 066b1d8d authored by Friedemann Kleint's avatar Friedemann Kleint

Shortcut Ctrk-L (Locator Goto Line) broken in most translations.

Change the translateable string not to contain a blank.

Task-number: QTCREATORBUG-299
Reviewed-by: default avatarThorbjorn Lindeijer <thorbjorn.lindeijer@nokia.com>
parent 9ce3bd0b
......@@ -14657,7 +14657,7 @@ Die folgenden Encodings scheinen der Datei zu entsprechen:</translation>
</message>
<message>
<location line="+92"/>
<source> &lt;line number&gt;</source>
<source>&lt;line number&gt;</source>
<translation>&lt;Zeilennummer&gt;</translation>
</message>
</context>
......
......@@ -13301,7 +13301,7 @@ The following encodings are likely to fit:</source>
</message>
<message>
<location line="+92"/>
<source> &lt;line number&gt;</source>
<source>&lt;line number&gt;</source>
<translation>&lt;número de línea&gt;</translation>
</message>
</context>
......
......@@ -12637,7 +12637,7 @@ The following encodings are likely to fit:</source>
</message>
<message>
<location line="+92"/>
<source> &lt;line number&gt;</source>
<source>&lt;line number&gt;</source>
<translation type="unfinished">&lt;numéro de ligne&gt;</translation>
</message>
</context>
......
......@@ -13272,7 +13272,7 @@ Queste codifiche dovrebbero andare bene:</translation>
</message>
<message>
<location line="+92"/>
<source> &lt;line number&gt;</source>
<source>&lt;line number&gt;</source>
<translation>&lt;numero di riga&gt;</translation>
</message>
</context>
......
......@@ -13278,7 +13278,7 @@ The following encodings are likely to fit:</source>
</message>
<message>
<location line="+92"/>
<source> &lt;line number&gt;</source>
<source>&lt;line number&gt;</source>
<translation>&lt;行番号&gt;</translation>
</message>
</context>
......
......@@ -14757,7 +14757,7 @@ Następujące kodowania będą najprawdopodobniej pasowały:</translation>
</message>
<message>
<location line="+92"/>
<source> &lt;line number&gt;</source>
<source>&lt;line number&gt;</source>
<translation> &lt;numer linii&gt;</translation>
</message>
</context>
......
......@@ -15073,7 +15073,7 @@ The following encodings are likely to fit:</source>
</message>
<message>
<location line="+92"/>
<source> &lt;line number&gt;</source>
<source>&lt;line number&gt;</source>
<translation> &lt;номер строки&gt;</translation>
</message>
</context>
......
......@@ -12694,7 +12694,7 @@ Naslednji nabori znakov so verjetno ustrezni:</translation>
</message>
<message>
<location line="+92"/>
<source> &lt;line number&gt;</source>
<source>&lt;line number&gt;</source>
<translation>&lt;številka vrstice&gt;</translation>
</message>
</context>
......
......@@ -362,9 +362,11 @@ void TextEditorActionHandler::gotoAction()
{
Locator::LocatorManager *locatorManager = Locator::LocatorManager::instance();
QTC_ASSERT(locatorManager, return);
const QString shortcut = TextEditorPlugin::instance()->lineNumberFilter()->shortcutString();
const QString text = tr(" <line number>");
locatorManager->show(shortcut + text, 2, text.length()-1);
QString locatorString = TextEditorPlugin::instance()->lineNumberFilter()->shortcutString();
locatorString += QLatin1Char(' ');
const int selectionStart = locatorString.size();
locatorString += tr("<line number>");
locatorManager->show(locatorString, selectionStart, locatorString.size() - selectionStart);
}
void TextEditorActionHandler::printAction()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment