File messagebox-dvd.diff of Package kde3-kaffeine

--- kaffeine/src/input/disc/disc.cpp	2006/03/28 11:51:04	1.1
+++ kaffeine/src/input/disc/disc.cpp	2006/03/28 11:57:23
@@ -583,6 +583,12 @@
 	if ( !device.isEmpty() )
 		mrl.setURL( QString("dvd://%1").arg(device) );
 	else {
+
+		if ( !QFile::exists("/usr/share/xine/mad") && QFile::exists("/usr/share/doc/packages/xine/README.SuSE") ) {
+		    KMessageBox::sorry(0, i18n("This version of Xine (used by Kaffeine) has only a reduced\nset of supported codecs. It is not able to play DVDs.\nRead http://en.opensuse.org/XINE for further details."), QString::null, KMessageBox::AllowLink);
+		    return;
+		}
+
 		DCOPRef mediamanager("kded","mediamanager");
 		DCOPReply reply = mediamanager.call("fullList()");
 		if ( reply.isValid() ) {
--- po/de.po	2006/12/05 09:33:47	1.15
+++ po/de.po	2006/12/05 09:34:21
@@ -3210,2 +3210,6 @@
 msgid "DummyPart"
 msgstr "DummyPart"
+ 
+msgid "This version of Xine (used by Kaffeine) has only a reduced\nset of supported codecs. It is not able to play DVDs.\nPlease read http://en.opensuse.org/XINE for further details."
+msgstr "Diese Version von Xine (wird von Kaffeine benutzt) hat nur\neine limitierte Anzahl von Codecs. Daher ist es nicht möglich eine DVD anzusehen.\nBitte lesen Sie diese Seite http://en.opensuse.org/XINE für weitere Informationen."
+
openSUSE Build Service is sponsored by