Try the Demo

Magento Forum

   
How do translations function? 
 
Mootrealm
Sr. Member
 
Avatar
Total Posts:  150
Joined:  2007-09-14
San Francisco, CA
 

I am wondering exactly how translations work - not how you do it, but the nuts and bolts of it.

So this is what a translatable item looks like

<label for="newsletter"><?php echo $this->__('Sign up for our newsletter:'?></label>

now if i translate that with inline translation, i am assuming that gets stored in the database. at first i thought maybe the file itself was being rewritten, but the templates are not writable.

there doesn’t seem to be any unique way of identifying that piece of code other than the language itself, how does the data base match up the translations and know to replace ‘Sign up for our newsletter’?

What if i kept changing it? are the old versions cluttering up the database?

It seems like i could just make my own, is that true?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mootrealm
Sr. Member
 
Avatar
Total Posts:  150
Joined:  2007-09-14
San Francisco, CA
 

i posted this on the weekend which was silly - so i am bumping it.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top