uRapidFlow i18n

If you're working in multilanguage environment, and running uRapidFlow scripts from cron or command line interface, Magento might not set the correct default language before importing or exporting your profiles, and as result the files will have troubles to be imported/exported.

Add these few lines to make sure your uRapidFlow profile runs with the correct language:

urapidflow.php
<?php
 
// initialize Magento environment
include_once 'app/Mage.php';
Mage::app('admin')->setCurrentStore(0);
 
// initialize your language
Mage::app()->getLocale()->setLocale('nl_NL');
Mage::app()->getTranslator()->init('global', true);
Mage::app()->getTranslator()->init('adminhtml', true);
 
$helper = Mage::helper('urapidflow');
 
// run profile using name:
$helper->run("Import Products - nl_NL profile");
urapidflow/i18n.txt · Last modified: 2011/07/06 15:18 by unirgy
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki