play Posted December 27, 2013 Share Posted December 27, 2013 Hello! Help to understand the translation module: ---------- how to make a line like this: 106a6c241b8797f52e1e77317b96a201 - what is? $_MODULE['<{blockpermanentlinks}prestashop>blockpermanentlinks-header_106a6c241b8797f52e1e77317b96a201'] = 'Accueil'; ---------- global $_MODULE; $_MODULE = array(); $_MODULE['<{blockpermanentlinks}prestashop>blockpermanentlinks-header_106a6c241b8797f52e1e77317b96a201'] = 'Accueil'; $_MODULE['<{blockpermanentlinks}prestashop>blockpermanentlinks-header_2f8a6bf31f3bd67bd2d9720c58b19c9a'] = 'contact'; $_MODULE['<{blockpermanentlinks}prestashop>blockpermanentlinks-header_e1da49db34b0bdfdddaba2ad6552f848'] = 'plan du site'; $_MODULE['<{blockpermanentlinks}prestashop>blockpermanentlinks-header_fad9383ed4698856ed467fd49ecf4820'] = 'favoris'; Link to comment Share on other sites More sharing options...
Kogkalidis Posted December 27, 2013 Share Posted December 27, 2013 These are values that you MUST NOT change.. Why don't you translate the traditional way through back office? Link to comment Share on other sites More sharing options...
vekia Posted December 27, 2013 Share Posted December 27, 2013 106a6c241b8797f52e1e77317b96a201 is a hashed value of text you want to translate. it's definitely bad idea to translate modules in language files. Link to comment Share on other sites More sharing options...
coeos.pro Posted December 27, 2013 Share Posted December 27, 2013 if you read the file blockpermanentlinks-header.tpl you have : {l s='contact' mod='blockpermanentlinks'} and if you do MD5('contact') (or use http://www.md5.fr/) you have 2f8a6bf31f3bd67bd2d9720c58b19c9a Link to comment Share on other sites More sharing options...
play Posted December 27, 2013 Author Share Posted December 27, 2013 And if I create a template? And I want to add a translation to the template. What do I do? Link to comment Share on other sites More sharing options...
play Posted December 27, 2013 Author Share Posted December 27, 2013 how to add a translation to the template? in themes / my template Link to comment Share on other sites More sharing options...
vekia Posted December 27, 2013 Share Posted December 27, 2013 localization > translations from first dropdown select "front office translation" and just translate fields there. Link to comment Share on other sites More sharing options...
play Posted December 30, 2013 Author Share Posted December 30, 2013 if you read the file blockpermanentlinks-header.tpl you have : {l s='contact' mod='blockpermanentlinks'} and if you do MD5('contact') (or use http://www.md5.fr/) you have 2f8a6bf31f3bd67bd2d9720c58b19c9a It is for France. How to do it similar to: Spanish, Russian, .... etc. Link to comment Share on other sites More sharing options...
Recommended Posts