Index: 4.4.0/kernel/setup/cache.php
===================================================================
--- 4.4.0/kernel/setup/cache.php	(revision 212)
+++ 4.4.0/kernel/setup/cache.php	(working copy)
@@ -1,4 +1,6 @@
 <?php
+// ###JAC_PATCH_G_32_EZ_4.4.0### #017278: Wrong translation after clearing cache in admin setup tab
+
 //
 // Created on: <15-Apr-2003 11:25:31 bf>
 //
@@ -11,12 +13,12 @@
 //   This program is free software; you can redistribute it and/or
 //   modify it under the terms of version 2.0  of the GNU General
 //   Public License as published by the Free Software Foundation.
-// 
+//
 //   This program is distributed in the hope that it will be useful,
 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 //   GNU General Public License for more details.
-// 
+//
 //   You should have received a copy of version 2.0 of the GNU General
 //   Public License along with this program; if not, write to the Free
 //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
@@ -107,14 +109,43 @@
     $cacheCleared['static'] = true;
 }
 
-$tpl->setVariable( "cache_cleared", $cacheCleared );
-$tpl->setVariable( "cache_enabled", $cacheEnabled );
-$tpl->setVariable( 'cache_list', $cacheList );
+// ###JAC_PATCH_G_32_EZ_4.4.0###
+// if cache is cleared - store result in session and redirect to the the current page again
+// so the translations are shown correctly
+if( $module->isCurrentAction( 'ClearCache' )
+   || $module->isCurrentAction( 'ClearAllCache' )
+   || $module->isCurrentAction( 'ClearContentCache' )
+   || $module->isCurrentAction( 'ClearINICache' )
+   || $module->isCurrentAction( 'ClearTemplateCache' )
+   || $module->isCurrentAction( 'RegenerateStaticCache' ) )
+{
+    $cacheClearedSerialized = urlencode( base64_encode( serialize( array( 'cache_cleared' => $cacheCleared, 'cache_enabled' => $cacheEnabled ) ) ) );
+    $http->setSessionVariable( 'CacheCleared', $cacheClearedSerialized );
+    $module->redirectTo( 'setup/cache/' );
+}
+else
+{
+
+    if( $http->hasSessionVariable( 'CacheCleared' ) )
+    {
+        $cacheClearedArraySerialized = $http->sessionVariable( 'CacheCleared' );
+        $http->removeSessionVariable( 'CacheCleared' );
 
+        $cacheClearedArray = unserialize( base64_decode( urldecode( $cacheClearedArraySerialized ) ) );
+        if( is_array( $cacheClearedArray ) )
+        {
+            $cacheCleared = $cacheClearedArray['cache_cleared'];
+            $cacheEnabled = $cacheClearedArray['cache_enabled'];
+        }
+    }
 
-$Result = array();
-$Result['content'] = $tpl->fetch( "design:setup/cache.tpl" );
-$Result['path'] = array( array( 'url' => false,
-                                'text' => ezpI18n::tr( 'kernel/setup', 'Cache admin' ) ) );
+    $tpl->setVariable( 'cache_cleared', $cacheCleared );
+    $tpl->setVariable( 'cache_enabled', $cacheEnabled );
+    $tpl->setVariable( 'cache_list', $cacheList );
 
+    $Result = array();
+    $Result['content'] = $tpl->fetch( 'design:setup/cache.tpl' );
+    $Result['path'] = array( array( 'url' => false,
+                                    'text' => ezpI18n::tr( 'kernel/setup', 'Cache admin' ) ) );
+}
 ?>
