Uncomment code with new i18n strings.

svn path=/trunk/KDE/kdebase/workspace/; revision=758577
This commit is contained in:
Luboš Luňák 2008-01-08 11:26:52 +00:00
parent 0bea1cc50e
commit 2f1e9eba44

View file

@ -87,26 +87,20 @@ QString CompositingPrefs::compositingNotPossibleReason()
{ {
return i18n("Required X extensions (XComposite and XDamage) are not available."); return i18n("Required X extensions (XComposite and XDamage) are not available.");
} }
#if KDE_IS_VERSION( 4, 0, 90 ) #if defined( KWIN_HAVE_OPENGL_COMPOSITING ) && !defined( KWIN_HAVE_XRENDER_COMPOSITING )
#ifdef __GNUC__ if( !Extensions::glxAvailable())
#warning Uncomment return i18n( "GLX/OpenGL are not available and only OpenGL support is compiled." );
#elif !defined( KWIN_HAVE_OPENGL_COMPOSITING ) && defined( KWIN_HAVE_XRENDER_COMPOSITING )
if( !Extensions::glxAvailable())
return i18n( "XRender/XFixes extensions are not available and only XRender support"
" is compiled." );
#else
if( !( Extensions::glxAvailable()
|| ( Extensions::renderAvailable() && Extensions::fixesAvailable())))
{
return i18n( "GLX/OpenGL and XRender/XFixes are not available." );
}
#endif #endif
#endif
//#if defined( KWIN_HAVE_OPENGL_COMPOSITING ) && !defined( KWIN_HAVE_XRENDER_COMPOSITING )
// if( !Extensions::glxAvailable())
// return i18n( "GLX/OpenGL are not available and only OpenGL support is compiled." );
//#endif
//#elseif !defined( KWIN_HAVE_OPENGL_COMPOSITING ) && defined( KWIN_HAVE_XRENDER_COMPOSITING )
// if( !Extensions::glxAvailable())
// return i18n( "XRender/XFixes extensions are not available and only XRender support"
// " is compiled." );
//#else
// if( !( Extensions::glxAvailable()
// || ( Extensions::renderAvailable() && Extensions::fixesAvailable())))
// {
// return i18n( "GLX/OpenGL and XRender/XFixes are not available." );
// }
//#endif
return QString(); return QString();
#else #else
return i18n("Compositing was disabled at compile time.\n" return i18n("Compositing was disabled at compile time.\n"