Forums / Developer / Module Path localization
Sao Tavi
Tuesday 10 May 2011 8:33:32 am
So, I found at ezpedia a nice way to set up the breadcrumbs. One of the issues I have is the breadcrumbs localization. The php code to set the breadcrumbs would be: $Result['path'] = array( array( 'url' => /, 'text' => 'Order ' ), array( 'url' => '/refund', 'text' => 'Refund Completed' ) ); What I want is that 'Order' to appear in Spanish 'Ordenar' (I don't know Spanish well enough, this is just an example) and '/refund' as '/restitucion'
Friday 13 May 2011 4:30:52 am
Ok, maybe I should rephrase this:
How can I access i18n function from php instead of the template engine?
Bertrand Dunogier
Friday 13 May 2011 5:34:57 am
ezpi18n::tr(): http://pubsvn.ez.no/doxygen/trunk/html/classezpI18n.html#a02149f61c1dc858674f6df5ca932849f
Bertrand Dunogier eZ Systems Engineering, Lyon http://twitter.com/bdunogier http://gplus.to/BertrandDunogier