-rw-r--r-- | i18n/da/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/de/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/en/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/es/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/fr/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/hu/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/it/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/ja/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/ko/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/nl/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/no/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/pl/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/pt/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/pt_BR/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/sl/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/xx/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/zh_CN/wellenreiter.ts | 0 | ||||
-rw-r--r-- | i18n/zh_TW/wellenreiter.ts | 0 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/main.cpp | 10 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/mainwindow.cpp | 43 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlist.cpp | 18 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/statwindow.cpp | 4 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 32 | ||||
-rw-r--r-- | noncore/net/wellenreiter/wellenreiter.pro | 18 |
24 files changed, 82 insertions, 43 deletions
diff --git a/i18n/da/wellenreiter.ts b/i18n/da/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/da/wellenreiter.ts | |||
diff --git a/i18n/de/wellenreiter.ts b/i18n/de/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/de/wellenreiter.ts | |||
diff --git a/i18n/en/wellenreiter.ts b/i18n/en/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/en/wellenreiter.ts | |||
diff --git a/i18n/es/wellenreiter.ts b/i18n/es/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/es/wellenreiter.ts | |||
diff --git a/i18n/fr/wellenreiter.ts b/i18n/fr/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/fr/wellenreiter.ts | |||
diff --git a/i18n/hu/wellenreiter.ts b/i18n/hu/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/hu/wellenreiter.ts | |||
diff --git a/i18n/it/wellenreiter.ts b/i18n/it/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/it/wellenreiter.ts | |||
diff --git a/i18n/ja/wellenreiter.ts b/i18n/ja/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/ja/wellenreiter.ts | |||
diff --git a/i18n/ko/wellenreiter.ts b/i18n/ko/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/ko/wellenreiter.ts | |||
diff --git a/i18n/nl/wellenreiter.ts b/i18n/nl/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/nl/wellenreiter.ts | |||
diff --git a/i18n/no/wellenreiter.ts b/i18n/no/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/no/wellenreiter.ts | |||
diff --git a/i18n/pl/wellenreiter.ts b/i18n/pl/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/pl/wellenreiter.ts | |||
diff --git a/i18n/pt/wellenreiter.ts b/i18n/pt/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/pt/wellenreiter.ts | |||
diff --git a/i18n/pt_BR/wellenreiter.ts b/i18n/pt_BR/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/pt_BR/wellenreiter.ts | |||
diff --git a/i18n/sl/wellenreiter.ts b/i18n/sl/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/sl/wellenreiter.ts | |||
diff --git a/i18n/xx/wellenreiter.ts b/i18n/xx/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/xx/wellenreiter.ts | |||
diff --git a/i18n/zh_CN/wellenreiter.ts b/i18n/zh_CN/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/zh_CN/wellenreiter.ts | |||
diff --git a/i18n/zh_TW/wellenreiter.ts b/i18n/zh_TW/wellenreiter.ts new file mode 100644 index 0000000..e69de29 --- a/dev/null +++ b/i18n/zh_TW/wellenreiter.ts | |||
diff --git a/noncore/net/wellenreiter/gui/main.cpp b/noncore/net/wellenreiter/gui/main.cpp index 03da135..96ebb3f 100644 --- a/noncore/net/wellenreiter/gui/main.cpp +++ b/noncore/net/wellenreiter/gui/main.cpp | |||
@@ -55,9 +55,9 @@ int main( int argc, char **argv ) | |||
55 | // root check | 55 | // root check |
56 | if ( getuid() ) | 56 | if ( getuid() ) |
57 | { | 57 | { |
58 | qWarning( "Wellenreiter: trying to run as non-root!" ); | 58 | qWarning( QObject::tr( "Wellenreiter: trying to run as non-root!" ) ); |
59 | result = QMessageBox::warning( w, " - Wellenreiter II - (non-root)", "You have started Wellenreiter II\n" | 59 | result = QMessageBox::warning( w, " - Wellenreiter II - (non-root)", QObject::tr( "You have started Wellenreiter II\n" |
60 | "as non-root. You will have\nonly limited functionality.\nProceed anyway?", | 60 | "as non-root. You will have\nonly limited functionality.\nProceed anyway?" ), |
61 | QMessageBox::Yes, QMessageBox::No ); | 61 | QMessageBox::Yes, QMessageBox::No ); |
62 | if ( result == QMessageBox::No ) return -1; | 62 | if ( result == QMessageBox::No ) return -1; |
63 | } | 63 | } |
@@ -83,8 +83,8 @@ int main( int argc, char **argv ) | |||
83 | if ( line.contains( "dhcp" ) ) | 83 | if ( line.contains( "dhcp" ) ) |
84 | { | 84 | { |
85 | qWarning( "Wellenreiter: found dhcp process #%d", (*it).toInt() ); | 85 | qWarning( "Wellenreiter: found dhcp process #%d", (*it).toInt() ); |
86 | result = QMessageBox::warning( w, " - Wellenreiter II - (dhcp)", "You have a dhcp client running.\n" | 86 | result = QMessageBox::warning( w, " - Wellenreiter II - (dhcp)", QObject::tr( "You have a dhcp client running.\n" |
87 | "This can severly limit scanning!\nShould I kill it for you?", | 87 | "This can severly limit scanning!\nShould I kill it for you?" ), |
88 | QMessageBox::Yes, QMessageBox::No ); | 88 | QMessageBox::Yes, QMessageBox::No ); |
89 | if ( result == QMessageBox::Yes ) | 89 | if ( result == QMessageBox::Yes ) |
90 | { | 90 | { |
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp index 6cd364c..c4a8fbc 100644 --- a/noncore/net/wellenreiter/gui/mainwindow.cpp +++ b/noncore/net/wellenreiter/gui/mainwindow.cpp | |||
@@ -102,40 +102,40 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n | |||
102 | QMenuBar* mb = menuBar(); | 102 | QMenuBar* mb = menuBar(); |
103 | 103 | ||
104 | QPopupMenu* fileSave = new QPopupMenu( mb ); | 104 | QPopupMenu* fileSave = new QPopupMenu( mb ); |
105 | fileSave->insertItem( "&Session...", this, SLOT( fileSaveSession() ) ); | 105 | fileSave->insertItem( tr( "&Session..." ), this, SLOT( fileSaveSession() ) ); |
106 | fileSave->insertItem( "&Text Log...", this, SLOT( fileSaveLog() ) ); | 106 | fileSave->insertItem( tr( "&Text Log..." ), this, SLOT( fileSaveLog() ) ); |
107 | fileSave->insertItem( "&Hex Log...", this, SLOT( fileSaveHex() ) ); | 107 | fileSave->insertItem( tr( "&Hex Log..." ), this, SLOT( fileSaveHex() ) ); |
108 | 108 | ||
109 | QPopupMenu* fileLoad = new QPopupMenu( mb ); | 109 | QPopupMenu* fileLoad = new QPopupMenu( mb ); |
110 | fileLoad->insertItem( "&Session...", this, SLOT( fileLoadSession() ) ); | 110 | fileLoad->insertItem( tr( "&Session..." ), this, SLOT( fileLoadSession() ) ); |
111 | //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) ); | 111 | //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) ); |
112 | 112 | ||
113 | QPopupMenu* file = new QPopupMenu( mb ); | 113 | QPopupMenu* file = new QPopupMenu( mb ); |
114 | file->insertItem( "&New", this, SLOT( fileNew() ) ); | 114 | file->insertItem( tr( "&New" ), this, SLOT( fileNew() ) ); |
115 | id = file->insertItem( "&Load", fileLoad ); | 115 | id = file->insertItem( tr( "&Load" ), fileLoad ); |
116 | file->insertItem( "&Save", fileSave ); | 116 | file->insertItem( tr( "&Save" ), fileSave ); |
117 | file->insertSeparator(); | 117 | file->insertSeparator(); |
118 | file->insertItem( "&Exit", qApp, SLOT( quit() ) ); | 118 | file->insertItem( tr( "&Exit" ), qApp, SLOT( quit() ) ); |
119 | 119 | ||
120 | QPopupMenu* view = new QPopupMenu( mb ); | 120 | QPopupMenu* view = new QPopupMenu( mb ); |
121 | view->insertItem( "&Configure..." ); | 121 | view->insertItem( tr( "&Configure..." ) ); |
122 | 122 | ||
123 | QPopupMenu* sniffer = new QPopupMenu( mb ); | 123 | QPopupMenu* sniffer = new QPopupMenu( mb ); |
124 | sniffer->insertItem( "&Configure...", this, SLOT( showConfigure() ) ); | 124 | sniffer->insertItem( tr( "&Configure..." ), this, SLOT( showConfigure() ) ); |
125 | sniffer->insertSeparator(); | 125 | sniffer->insertSeparator(); |
126 | startID = sniffer->insertItem( "&Start", mw, SLOT( startClicked() ) ); | 126 | startID = sniffer->insertItem( tr( "&Start" ), mw, SLOT( startClicked() ) ); |
127 | sniffer->setItemEnabled( startID, false ); | 127 | sniffer->setItemEnabled( startID, false ); |
128 | stopID = sniffer->insertItem( "Sto&p", mw, SLOT( stopClicked() ) ); | 128 | stopID = sniffer->insertItem( tr( "Sto&p" ), mw, SLOT( stopClicked() ) ); |
129 | sniffer->setItemEnabled( stopID, false ); | 129 | sniffer->setItemEnabled( stopID, false ); |
130 | 130 | ||
131 | QPopupMenu* demo = new QPopupMenu( mb ); | 131 | QPopupMenu* demo = new QPopupMenu( mb ); |
132 | demo->insertItem( "&Add something", this, SLOT( demoAddStations() ) ); | 132 | demo->insertItem( tr( "&Add something" ), this, SLOT( demoAddStations() ) ); |
133 | 133 | ||
134 | id = mb->insertItem( "&File", file ); | 134 | id = mb->insertItem( tr( "&File" ), file ); |
135 | id = mb->insertItem( "&View", view ); | 135 | id = mb->insertItem( tr( "&View" ), view ); |
136 | mb->setItemEnabled( id, false ); | 136 | mb->setItemEnabled( id, false ); |
137 | id = mb->insertItem( "&Sniffer", sniffer ); | 137 | id = mb->insertItem( tr( "&Sniffer" ), sniffer ); |
138 | id = mb->insertItem( "&Demo", demo ); | 138 | id = mb->insertItem( tr( "&Demo" ), demo ); |
139 | mb->setItemEnabled( id, true ); | 139 | mb->setItemEnabled( id, true ); |
140 | 140 | ||
141 | #ifdef QWS | 141 | #ifdef QWS |
@@ -155,7 +155,7 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n | |||
155 | // setup status bar (for now only on X11) | 155 | // setup status bar (for now only on X11) |
156 | 156 | ||
157 | #ifndef QWS | 157 | #ifndef QWS |
158 | statusBar()->message( "Ready." ); | 158 | statusBar()->message( tr( "Ready." ) ); |
159 | #endif | 159 | #endif |
160 | 160 | ||
161 | connect( mw, SIGNAL( startedSniffing() ), this, SLOT( changedSniffingState() ) ); | 161 | connect( mw, SIGNAL( startedSniffing() ), this, SLOT( changedSniffingState() ) ); |
@@ -230,9 +230,9 @@ QString WellenreiterMainWindow::getFileName( bool save ) | |||
230 | map.insert( tr("All"), QStringList() ); | 230 | map.insert( tr("All"), QStringList() ); |
231 | QStringList text; | 231 | QStringList text; |
232 | text << "text/*"; | 232 | text << "text/*"; |
233 | map.insert(tr("Text"), text ); | 233 | map.insert( tr("Text"), text ); |
234 | text << "*"; | 234 | text << "*"; |
235 | map.insert(tr("All"), text ); | 235 | map.insert( tr("All"), text ); |
236 | 236 | ||
237 | QString str; | 237 | QString str; |
238 | if ( save ) | 238 | if ( save ) |
@@ -351,7 +351,8 @@ void WellenreiterMainWindow::closeEvent( QCloseEvent* e ) | |||
351 | { | 351 | { |
352 | if ( mw->isDaemonRunning() ) | 352 | if ( mw->isDaemonRunning() ) |
353 | { | 353 | { |
354 | QMessageBox::warning( this, "Wellenreiter/Opie", "Sniffing in progress!\nPlease stop sniffing before closing." ); | 354 | QMessageBox::warning( this, "Wellenreiter/Opie", |
355 | tr( "Sniffing in progress!\nPlease stop sniffing before closing." ) ); | ||
355 | e->ignore(); | 356 | e->ignore(); |
356 | } | 357 | } |
357 | else | 358 | else |
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp index 1cf49e0..3a6aa15 100644 --- a/noncore/net/wellenreiter/gui/scanlist.cpp +++ b/noncore/net/wellenreiter/gui/scanlist.cpp | |||
@@ -53,9 +53,9 @@ MScanListView::MScanListView( QWidget* parent, const char* name ) | |||
53 | 53 | ||
54 | addColumn( tr( "Net/Station" ) ); | 54 | addColumn( tr( "Net/Station" ) ); |
55 | setColumnAlignment( 0, AlignLeft || AlignVCenter ); | 55 | setColumnAlignment( 0, AlignLeft || AlignVCenter ); |
56 | addColumn( tr( "B" ) ); | 56 | addColumn( tr( "#" ) ); |
57 | setColumnAlignment( 1, AlignCenter ); | 57 | setColumnAlignment( 1, AlignCenter ); |
58 | addColumn( tr( "AP" ) ); | 58 | addColumn( tr( "MAC" ) ); |
59 | setColumnAlignment( 2, AlignCenter ); | 59 | setColumnAlignment( 2, AlignCenter ); |
60 | addColumn( tr( "Chn" ) ); | 60 | addColumn( tr( "Chn" ) ); |
61 | setColumnAlignment( 3, AlignCenter ); | 61 | setColumnAlignment( 3, AlignCenter ); |
@@ -148,12 +148,12 @@ void MScanListView::addNewItem( QString type, QString essid, QString macaddr, bo | |||
148 | else | 148 | else |
149 | { | 149 | { |
150 | s.sprintf( "(i) new network: '%s'", (const char*) essid ); | 150 | s.sprintf( "(i) new network: '%s'", (const char*) essid ); |
151 | //TODO send s to logwindow | ||
151 | network = new MScanListItem( this, "network", essid, QString::null, 0, 0, 0 ); | 152 | network = new MScanListItem( this, "network", essid, QString::null, 0, 0, 0 ); |
152 | } | 153 | } |
153 | 154 | ||
154 | 155 | ||
155 | // insert new station as child from network | 156 | // insert new station as child from network |
156 | |||
157 | // no essid to reduce clutter, maybe later we have a nick or stationname to display!? | 157 | // no essid to reduce clutter, maybe later we have a nick or stationname to display!? |
158 | 158 | ||
159 | qDebug( "inserting new station %s", (const char*) macaddr ); | 159 | qDebug( "inserting new station %s", (const char*) macaddr ); |
@@ -170,6 +170,7 @@ void MScanListView::addNewItem( QString type, QString essid, QString macaddr, bo | |||
170 | { | 170 | { |
171 | s.sprintf( "(i) new adhoc station in '%s' [%d]", (const char*) essid, channel ); | 171 | s.sprintf( "(i) new adhoc station in '%s' [%d]", (const char*) essid, channel ); |
172 | } | 172 | } |
173 | //TODO send s to logwindow | ||
173 | 174 | ||
174 | } | 175 | } |
175 | 176 | ||
@@ -198,6 +199,17 @@ void MScanListView::addIfNotExisting( MScanListItem* network, QString addr, cons | |||
198 | MScanListItem* station = new MScanListItem( network, type, /* network->text( col_essid ) */ "", addr, false, -1, -1 ); | 199 | MScanListItem* station = new MScanListItem( network, type, /* network->text( col_essid ) */ "", addr, false, -1, -1 ); |
199 | if ( _manufacturerdb ) | 200 | if ( _manufacturerdb ) |
200 | station->setManufacturer( _manufacturerdb->lookup( addr ) ); | 201 | station->setManufacturer( _manufacturerdb->lookup( addr ) ); |
202 | |||
203 | QString s; | ||
204 | if ( type == "station" ) | ||
205 | { | ||
206 | s.sprintf( "(i) new station in '%s' [??]", (const char*) network->text( col_essid ) ); | ||
207 | } | ||
208 | else | ||
209 | { | ||
210 | s.sprintf( "(i) new wireless station in '%s' [??]", (const char*) network->text( col_essid ) ); | ||
211 | } | ||
212 | //TODO send s to logwindow | ||
201 | } | 213 | } |
202 | 214 | ||
203 | 215 | ||
diff --git a/noncore/net/wellenreiter/gui/statwindow.cpp b/noncore/net/wellenreiter/gui/statwindow.cpp index 2c8c774..a9ae661 100644 --- a/noncore/net/wellenreiter/gui/statwindow.cpp +++ b/noncore/net/wellenreiter/gui/statwindow.cpp | |||
@@ -20,8 +20,8 @@ MStatWindow::MStatWindow( QWidget * parent, const char * name, WFlags f ) | |||
20 | :QVBox( parent, name, f ) | 20 | :QVBox( parent, name, f ) |
21 | { | 21 | { |
22 | table = new OListView( this ); | 22 | table = new OListView( this ); |
23 | table->addColumn( "Protocol" ); | 23 | table->addColumn( tr( "Protocol" ) ); |
24 | table->addColumn( "Count" ); | 24 | table->addColumn( tr( "Count" ) ); |
25 | table->setItemMargin( 2 ); | 25 | table->setItemMargin( 2 ); |
26 | }; | 26 | }; |
27 | 27 | ||
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index c061319..62bda91 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp | |||
@@ -168,11 +168,15 @@ void Wellenreiter::receivePacket(OPacket* p) | |||
168 | OWaveLanPacket* header = static_cast<OWaveLanPacket*>( p->child( "802.11" ) ); | 168 | OWaveLanPacket* header = static_cast<OWaveLanPacket*>( p->child( "802.11" ) ); |
169 | netView()->addNewItem( type, essid, header->macAddress2().toString(), beacon->canPrivacy(), channel, 0 ); | 169 | netView()->addNewItem( type, essid, header->macAddress2().toString(), beacon->canPrivacy(), channel, 0 ); |
170 | 170 | ||
171 | // do we have a prism header? | 171 | // update graph window |
172 | OPrismHeaderPacket* prism = static_cast<OPrismHeaderPacket*>( p->child( "Prism" ) ); | 172 | if ( ds ) |
173 | if ( ds && prism ) | 173 | { |
174 | graphwindow->traffic( ds->channel(), prism->signalStrength() ); | 174 | OPrismHeaderPacket* prism = static_cast<OPrismHeaderPacket*>( p->child( "Prism" ) ); |
175 | 175 | if ( prism ) | |
176 | graphwindow->traffic( ds->channel(), prism->signalStrength() ); | ||
177 | else | ||
178 | graphwindow->traffic( ds->channel(), 95 ); | ||
179 | } | ||
176 | return; | 180 | return; |
177 | } | 181 | } |
178 | 182 | ||
@@ -259,7 +263,8 @@ void Wellenreiter::stopClicked() | |||
259 | ( (QMainWindow*) parent() )->setCaption( "Wellenreiter II" ); | 263 | ( (QMainWindow*) parent() )->setCaption( "Wellenreiter II" ); |
260 | 264 | ||
261 | // message the user | 265 | // message the user |
262 | QMessageBox::information( this, "Wellenreiter II", "Your wireless card\nshould now be usable again." ); | 266 | QMessageBox::information( this, "Wellenreiter II", |
267 | tr( "Your wireless card\nshould now be usable again." ) ); | ||
263 | 268 | ||
264 | sniffing = false; | 269 | sniffing = false; |
265 | emit( stoppedSniffing() ); | 270 | emit( stoppedSniffing() ); |
@@ -280,7 +285,8 @@ void Wellenreiter::startClicked() | |||
280 | 285 | ||
281 | if ( ( interface == "" ) || ( cardtype == 0 ) ) | 286 | if ( ( interface == "" ) || ( cardtype == 0 ) ) |
282 | { | 287 | { |
283 | QMessageBox::information( this, "Wellenreiter II", "Your device is not\nproperly configured. Please reconfigure!" ); | 288 | QMessageBox::information( this, "Wellenreiter II", |
289 | tr( "Your device is not\nproperly configured. Please reconfigure!" ) ); | ||
284 | return; | 290 | return; |
285 | } | 291 | } |
286 | 292 | ||
@@ -297,7 +303,7 @@ void Wellenreiter::startClicked() | |||
297 | case DEVTYPE_WLAN_NG: iface->setMonitoring( new OWlanNGMonitoringInterface( iface ) ); break; | 303 | case DEVTYPE_WLAN_NG: iface->setMonitoring( new OWlanNGMonitoringInterface( iface ) ); break; |
298 | case DEVTYPE_HOSTAP: iface->setMonitoring( new OHostAPMonitoringInterface( iface ) ); break; | 304 | case DEVTYPE_HOSTAP: iface->setMonitoring( new OHostAPMonitoringInterface( iface ) ); break; |
299 | case DEVTYPE_ORINOCO: iface->setMonitoring( new OOrinocoMonitoringInterface( iface ) ); break; | 305 | case DEVTYPE_ORINOCO: iface->setMonitoring( new OOrinocoMonitoringInterface( iface ) ); break; |
300 | case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", "Bring your device into\nmonitor mode now." ); break; | 306 | case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", tr( "Bring your device into\nmonitor mode now." ) ); break; |
301 | case DEVTYPE_FILE: qDebug( "Wellenreiter: Capturing from file '%s'", (const char*) interface ); break; | 307 | case DEVTYPE_FILE: qDebug( "Wellenreiter: Capturing from file '%s'", (const char*) interface ); break; |
302 | default: assert( 0 ); // shouldn't reach this | 308 | default: assert( 0 ); // shouldn't reach this |
303 | } | 309 | } |
@@ -309,7 +315,8 @@ void Wellenreiter::startClicked() | |||
309 | iface->setMonitorMode( true ); | 315 | iface->setMonitorMode( true ); |
310 | if ( !iface->monitorMode() ) | 316 | if ( !iface->monitorMode() ) |
311 | { | 317 | { |
312 | QMessageBox::warning( this, "Wellenreiter II", "Can't set device into monitor mode." ); | 318 | QMessageBox::warning( this, "Wellenreiter II", |
319 | tr( "Can't set device into monitor mode." ) ); | ||
313 | return; | 320 | return; |
314 | } | 321 | } |
315 | } | 322 | } |
@@ -317,7 +324,7 @@ void Wellenreiter::startClicked() | |||
317 | // open pcap and start sniffing | 324 | // open pcap and start sniffing |
318 | if ( cardtype != DEVTYPE_FILE ) | 325 | if ( cardtype != DEVTYPE_FILE ) |
319 | { | 326 | { |
320 | if ( configwindow->writeCaptureFile->isEnabled() ) | 327 | if ( configwindow->writeCaptureFile->isEnabled() ) //FIXME: bug!? |
321 | { | 328 | { |
322 | QString dumpname( configwindow->captureFileName->text() ); | 329 | QString dumpname( configwindow->captureFileName->text() ); |
323 | dumpname.append( '-' ); | 330 | dumpname.append( '-' ); |
@@ -337,7 +344,8 @@ void Wellenreiter::startClicked() | |||
337 | 344 | ||
338 | if ( !pcap->isOpen() ) | 345 | if ( !pcap->isOpen() ) |
339 | { | 346 | { |
340 | QMessageBox::warning( this, "Wellenreiter II", "Can't open packet capturer:\n" + QString(strerror( errno ) )); | 347 | QMessageBox::warning( this, "Wellenreiter II", |
348 | tr( "Can't open packet capturer:\n" ) + QString(strerror( errno ) )); | ||
341 | return; | 349 | return; |
342 | } | 350 | } |
343 | 351 | ||
@@ -367,7 +375,7 @@ void Wellenreiter::startClicked() | |||
367 | else | 375 | else |
368 | { | 376 | { |
369 | assert( parent() ); | 377 | assert( parent() ); |
370 | ( (QMainWindow*) parent() )->setCaption( "Wellenreiter II - replaying capture file..." ); | 378 | ( (QMainWindow*) parent() )->setCaption( tr( "Wellenreiter II - replaying capture file..." ) ); |
371 | } | 379 | } |
372 | } | 380 | } |
373 | 381 | ||
diff --git a/noncore/net/wellenreiter/wellenreiter.pro b/noncore/net/wellenreiter/wellenreiter.pro index eb60c4a..7085c5a 100644 --- a/noncore/net/wellenreiter/wellenreiter.pro +++ b/noncore/net/wellenreiter/wellenreiter.pro | |||
@@ -12,3 +12,21 @@ contains( platform, x11 ) { | |||
12 | system( mkdir -p $OPIEDIR/lib $OPIEDIR/bin $OPIEDIR/share/pics ) | 12 | system( mkdir -p $OPIEDIR/lib $OPIEDIR/bin $OPIEDIR/share/pics ) |
13 | } | 13 | } |
14 | 14 | ||
15 | TRANSLATIONS = ../../../i18n/de/wellenreiter.ts \ | ||
16 | ../../../i18n/nl/wellenreiter.ts \ | ||
17 | ../../../i18n/da/wellenreiter.ts \ | ||
18 | ../../../i18n/xx/wellenreiter.ts \ | ||
19 | ../../../i18n/en/wellenreiter.ts \ | ||
20 | ../../../i18n/es/wellenreiter.ts \ | ||
21 | ../../../i18n/fr/wellenreiter.ts \ | ||
22 | ../../../i18n/hu/wellenreiter.ts \ | ||
23 | ../../../i18n/ja/wellenreiter.ts \ | ||
24 | ../../../i18n/ko/wellenreiter.ts \ | ||
25 | ../../../i18n/no/wellenreiter.ts \ | ||
26 | ../../../i18n/pl/wellenreiter.ts \ | ||
27 | ../../../i18n/pt/wellenreiter.ts \ | ||
28 | ../../../i18n/pt_BR/wellenreiter.ts \ | ||
29 | ../../../i18n/sl/wellenreiter.ts \ | ||
30 | ../../../i18n/zh_CN/wellenreiter.ts \ | ||
31 | ../../../i18n/zh_TW/wellenreiter.ts | ||
32 | |||