I am new to this Magento community and stuck at a very basic thing. I am getting the region(state) name from a customer address with this code
$billingAddress = Mage::getModel('customer/address')->load($billingAddressId); $RegionName = $billingAddress->getRegion();
Now some regions are being returned in locale language. One example is - Oberösterreich. I want this to be translated in default en_GB language.
I was facing a similar issue with country name as well, though figured out a solution for that as -
$locale = new Zend_Locale('en_GB'); $countries = $locale->getTranslationList('Territory', $locale->getLanguage(), 2); $countryName = $countries[$billingAddress->getCountryId()];
This was converting the returned name from Deutschland to Germany
I am seeking the same solution for the region name as well. Any help would be appreciated.