User Tools

Site Tools


urapidflow:i18n

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 · by unirgy