I would like to get the cart Block outside of Magento. Here is my Code.
<?php
require_once ( $_SERVER['DOCUMENT_ROOT']."/app/Mage.php" );
umask(0);
Mage::app('base','website');
echo Mage::app()->getLocale()->getLocaleCode();
//Solution
Mage::getSingleton('core/translate')->setLocale('de_DE')->init('frontend', true);
Mage::getSingleton('core/session', array('name'=>'frontend'));
$block = Mage::getSingleton('core/layout')
->createBlock("checkout/cart_sidebar", "sidebar")
->setTemplate("checkout/cart/sidebar.phtml");
echo $block->toHtml();
?>
I have just the Problem that the output ist just english and translation doesn't work.
Thanks for Help