From 9674ca38224c6d170bb951dac918e2ad10ca63aa Mon Sep 17 00:00:00 2001 From: Nikhil Marathe Date: Wed, 14 Jul 2010 05:09:01 +0000 Subject: [PATCH] Added i18n fix by Chusslove Illich to TilingLayoutFactory. Adds context to tiling layout names and makes them available for translation, which didn't happen earlier. CCMAIL: caslav.ilic@gmx.net svn path=/trunk/KDE/kdebase/workspace/; revision=1149719 --- tilinglayoutfactory.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tilinglayoutfactory.cpp b/tilinglayoutfactory.cpp index 0155d0df5b..e1b8874f00 100644 --- a/tilinglayoutfactory.cpp +++ b/tilinglayoutfactory.cpp @@ -34,13 +34,13 @@ along with this program. If not, see . #include "tilinglayouts/floating/floating.h" // w is the workspace pointer -#define ADD_LAYOUT( lay ) \ +#define ADD_LAYOUT( lay, ctxt_name ) \ case lay##Layout:\ kDebug(1212) << #lay;\ layout = new lay( w );\ layout->setLayoutType( lay##Layout );\ - Notify::raise( Notify::TilingLayoutChanged, \ - i18n( "Layout changed to %1", i18n(#lay) ) ); \ + Notify::raise( Notify::TilingLayoutChanged, \ + i18n( "Layout changed to %1", i18nc( ctxt_name ) ) ); \ break namespace KWin @@ -58,9 +58,9 @@ TilingLayout* TilingLayoutFactory::createLayout( int type, Workspace *w ) layout = createLayout( indexToLayoutIndex( options->tilingLayout ), w ); break; - ADD_LAYOUT( Spiral ); - ADD_LAYOUT( Columns ); - ADD_LAYOUT( Floating ); + ADD_LAYOUT( Spiral, I18N_NOOP2_NOSTRIP( "Spiral tiling layout", "Spiral" ) ); + ADD_LAYOUT( Columns, I18N_NOOP2_NOSTRIP( "Two-column horizontal tiling layout", "Columns" ) ); + ADD_LAYOUT( Floating, I18N_NOOP2_NOSTRIP( "Floating layout, windows aren't tiled at all", "Floating" ) ); default: kDebug(1212) << "INVALID LAYOUT!";