diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-08-06 22:56:45 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-08-06 22:56:45 +0200 |
commit | 37a9aae98c5921e7c046912b04c9f5b576d3f4d0 (patch) | |
tree | 6ed26f2d61c4d6f5e8e9eed40abe2b2fdd871d82 /redhat/tdebase/tdebase-14.0.0-fix_twin_rules_translation.patch | |
parent | 472a95e30a3c05be3faa1d42877bc2fb3a50d86b (diff) | |
download | tde-packaging-37a9aae98c5921e7c046912b04c9f5b576d3f4d0.tar.gz tde-packaging-37a9aae98c5921e7c046912b04c9f5b576d3f4d0.zip |
RPM Packaging: update lots of main packages
Diffstat (limited to 'redhat/tdebase/tdebase-14.0.0-fix_twin_rules_translation.patch')
-rw-r--r-- | redhat/tdebase/tdebase-14.0.0-fix_twin_rules_translation.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/redhat/tdebase/tdebase-14.0.0-fix_twin_rules_translation.patch b/redhat/tdebase/tdebase-14.0.0-fix_twin_rules_translation.patch new file mode 100644 index 000000000..d34db88d8 --- /dev/null +++ b/redhat/tdebase/tdebase-14.0.0-fix_twin_rules_translation.patch @@ -0,0 +1,34 @@ +--- trinity-tdebase/twin/data/update_default_rules.cpp.ORI 2013-07-27 11:49:19.337804333 +0200 ++++ trinity-tdebase/twin/data/update_default_rules.cpp 2013-07-27 19:12:32.144222960 +0200 +@@ -15,12 +15,18 @@ + #include <kdebug.h> + #include <kinstance.h> + #include <kstandarddirs.h> ++#include <tdeaboutdata.h> ++#include <tdecmdlineargs.h> ++#include <tdeglobal.h> + + int main( int argc, char* argv[] ) + { + if( argc != 2 ) + return 1; +- TDEInstance inst( "twin_update_default_rules" ); ++ TDEAboutData about( "twin_update_default_rules", I18N_NOOP("TWin"), 0, 0, TDEAboutData::License_GPL, I18N_NOOP( "(c) 2004 KWin and KControl Authors" ) ); ++ TDECmdLineArgs::init( argc, argv, &about ); ++ TDEInstance inst( &about ); ++ Q_UNUSED( TDEGlobal::locale() ); // jump-start locales to get to translated desriptions + TQString file = locate( "data", TQString( "twin/default_rules/" ) + argv[ 1 ] ); + if( file.isEmpty()) + { +@@ -43,8 +49,10 @@ + dest_cfg.setGroup( TQString::number( pos )); + for( TQMap< TQString, TQString >::ConstIterator it = entries.begin(); + it != entries.end(); +- ++it ) ++ ++it ) { ++ printf("DEBUG: %s\n", it.key().latin1()); + dest_cfg.writeEntry( it.key(), *it ); ++ } + } + dest_cfg.setGroup( "General" ); + dest_cfg.writeEntry( "count", pos ); |