Blog Posts

How to translate form labels in Magento’s Admin Area

How to translate form labels in Magento’s Admin Area

Since Magento has built in functionality for translations, you can ask yourself why Magento doesn’t want to translate my labels… and everything is set up correctly!
For all of you who work on Magento for a while and you didn’t yet needed to translate everything in Magento admin area here is a short “howto” on what you can do:
go to app/code/core/Mage/Adminhtml/Block/Widget/Form.php
and find protected function _setFieldset($attributes, $fieldset, $exclude=array())
Instead of this line

//'label'     => $attribute->getFrontend()->getLabel(),
//put this:
'label'     => Mage::helper('core')->__($attribute->getFrontend()->getLabel()),

Of course you will not change Magento’s core file in this way :) (more below).
Read more

16

How to translate product names in Magento through .csv files

How to translate product names in Magento through .csv files

Let’s add to cart one item from our Magento community edition. If you have MCE with sample data you can visit something like this: http://loc.magento.com/sony-vaio-vgn-txn27n-b-11-1-notebook-pc.html?___store=german&___from_store=default
Add item to your cart and you’ll see success message “Sony VAIO VGN-TXN27N/B 11.1″ Notebook PC was added to your shopping cart.”. Now if we add in our .csv file for de_DE translations something like this:

"%s was added to your shopping cart.","%s wurde zum Warenkorb hinzugefügt."
"Sony VAIO VGN-TXN27N/B 11.1" Notebook PC","Sony Deutsch VAIO VGN-TXN27N/B"

If you have already setup all required things for “German” translations, then try again buy same product and you will not be able to see our translated “success message”. It’s not only because of “"” in product name.
Read more

1

Symfony2 from beta1 to beta2

Symfony2 from beta1 to beta2

Today I had to migrate existing project from Symfony2 Beta 1 version to Beta2.
First I looked at the difference between my config files and new one provided with Beta2. Read more

2

Count on us to Design your Magento Go Store

Count on us to Design your Magento Go Store

Magento Go is a good idea for startups getting acquainted with online retail and to get things moving at low cost. The platform offers a clear path to growth and access to advanced features, such as bundled products, cross promotion and coupons with no need of development whatsoever.

The good news is that, besides being a Magento Silver Partner, we are also part of a selective list of Design Providers endorsed by Magento…
Read more

0

Symfony2 – validation part 1

Symfony2 – validation part 1

NOTE: Tested on Symfony2 Beta1. Might not work on later releases!

Few days ago I tried to find validation method for duplicate items in database because I have a table named ‘languages’ and need ‘language_symbol’ field to be unique.

Read more

0

Symfony 2 paginator – improved version

Symfony 2 paginator – improved version

NOTE: Tested on Symfony2 Beta3. Might not work on later releases!

After some comments on forums about my earlier post:
“Custom Pagination in Symfony 2” that was made on Symfony2 version: PR 12,
I decided to make some changes in the source code and give it available for download.

Basic structure of paginator is similar to latest post, but improvements are made by removing HTML stuff from controller, so paginator is rendered by twig template and not inside class on the fly. Read more

0

QR Codes – The bridge between eCommerce and offline advertising

QR Codes – The bridge between eCommerce and offline advertising

Since we know mobile internet usage with smartphones have already grown to a market share that can’t be neglected in our marketing campaigns it is time to start using all of the smartphones’ amazing features. One such feature is ability to read QR codes, the 2-D barcodes that are likely to mark the new era in quick access to additional information. Read more

0

Doing Business with Croatian Software Exporters

Doing Business with Croatian Software Exporters

Last Friday Inchoo attended the first official meeting of a newly established association of Croatian independent software exporters – CISEx. The meeting was held in Zagreb with 40 odd members of the association present. Read more

0

Symfony 2 forms validation

Symfony 2 forms validation

sxc.hu/bredmaker

NOTE: Tested on Symfony2 PR12. Might not work on later releases!

To continue previous article when writing about forms in Symfony 2, now it’s time to write something about forms validation. Read more

2

Symfony 2 Form

Symfony 2 Form

NOTE: Tested on Symfony2 PR12. Might not work on later releases!

If you want to use forms in Symfony 2 project there is already prepared system for that.

First in ‘Yourname/SomethingBundle/Forms’ folder create class like this: Read more

5