aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Elvio Basello2008-10-14 22:35:46 +0000
committerGravatar Elvio Basello2008-10-14 22:35:46 +0000
commitde250c8a65ca656d06ba7fcd866617a00cea3db5 (patch)
treef785b59c63a67ebc3dd5172d349e40e73a732990 /src
parentfixed compilation on win (diff)
downloadKVIrc-de250c8a65ca656d06ba7fcd866617a00cea3db5.tar.gz
KVIrc-de250c8a65ca656d06ba7fcd866617a00cea3db5.tar.bz2
KVIrc-de250c8a65ca656d06ba7fcd866617a00cea3db5.zip
fixed translation functions in torrent module;
fixed CMake translation rules; updated translation files; git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2731 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/modules/torrent/libkvitorrent.cpp4
-rw-r--r--src/modules/torrent/tc_ktorrentdcopinterface.cpp8
-rw-r--r--src/modules/torrent/tc_statusbarapplet.cpp4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/torrent/libkvitorrent.cpp b/src/modules/torrent/libkvitorrent.cpp
index fbb1a3ad4..ca2e89430 100644
--- a/src/modules/torrent/libkvitorrent.cpp
+++ b/src/modules/torrent/libkvitorrent.cpp
@@ -69,7 +69,7 @@ static KviTorrentInterface *auto_detect_torrent_client(KviWindow * pOut = 0)
/* if(iBest < 90)
{
if(pOut)
- pOut->outputNoFmt(KVI_OUT_MULTIMEDIA,__tr2qs_ctx("Not sure about the results, trying a second, more agressive detection pass","mediaplayer"));
+ pOut->outputNoFmt(KVI_OUT_MULTIMEDIA,__tr2qs_ctx("Not sure about the results, trying a second, more agressive detection pass","torrent"));
// no sure player found... try again with a destructive test
for(d = g_pDescriptorList->first();d;d = g_pDescriptorList->next())
{
@@ -87,7 +87,7 @@ static KviTorrentInterface *auto_detect_torrent_client(KviWindow * pOut = 0)
{
QString szOut;
QString szNam = d->name();
- KviQString::sprintf(szOut,__tr2qs_ctx("Trying media player interface \"%Q\": score %d","mediaplayer"),&(szNam),iScore);
+ KviQString::sprintf(szOut,__tr2qs_ctx("Trying media player interface \"%Q\": score %d","torrent"),&(szNam),iScore);
pOut->output(KVI_OUT_MULTIMEDIA,szOut);
}
}
diff --git a/src/modules/torrent/tc_ktorrentdcopinterface.cpp b/src/modules/torrent/tc_ktorrentdcopinterface.cpp
index 98cfcd594..187e4ac0d 100644
--- a/src/modules/torrent/tc_ktorrentdcopinterface.cpp
+++ b/src/modules/torrent/tc_ktorrentdcopinterface.cpp
@@ -46,12 +46,12 @@
)
#define ERROR_MSG \
- QCString msg; \
+ QString szMsg; \
if (!findRunningApp(m_szAppId)) \
- msg = "KTorrent's isn't running!"; \
+ szMsg = "KTorrent's isn't running!"; \
else \
- msg = "Something's wrong here! KTorrent's DCOP interface has probably changed."; \
- m_lastError = __tr2qs_ctx(QString(msg), "torrent"); \
+ szMsg = "Something's wrong here! KTorrent's DCOP interface has probably changed."; \
+ m_lastError = __tr2qs_ctx(szMsg,"torrent"); \
debug("%s (%s:%d): %s", __PRETTY_FUNCTION__, __FILE__, __LINE__, (const char*)msg); \
#define ERROR_MSG_RANGE(I, SIZE) \
diff --git a/src/modules/torrent/tc_statusbarapplet.cpp b/src/modules/torrent/tc_statusbarapplet.cpp
index 5afdf40b5..5d102f869 100644
--- a/src/modules/torrent/tc_statusbarapplet.cpp
+++ b/src/modules/torrent/tc_statusbarapplet.cpp
@@ -58,7 +58,7 @@ static KviStatusBarApplet *CreateTorrentClientApplet(KviStatusBar *bar, KviStatu
void KviTorrentStatusBarApplet::selfRegister(KviStatusBar *bar)
{
KviStatusBarAppletDescriptor *d = new KviStatusBarAppletDescriptor(
- __tr2qs("Torrent Client"),
+ __tr2qs_ctx("Torrent Client","torrent"),
"torrentapplet",
CreateTorrentClientApplet,
"torrent", *(g_pIconManager->getSmallIcon(KVI_SMALLICON_AWAY)));
@@ -95,4 +95,4 @@ void KviTorrentStatusBarApplet::update()
#ifndef COMPILE_USE_STANDALONE_MOC_SOURCES
#include "tc_statusbarapplet.moc"
-#endif //!COMPILE_USE_STANDALONE_MOC_SOURCES
+#endif //COMPILE_USE_STANDALONE_MOC_SOURCES