hi ppl!!!
how can i define variables for languages translate!!!
E.g. i want to add some text´s in product area, and when i click in the flag it translates
Sorry i think that is very easy, but i don´t find it!!!
Thanks
it sounds like you need multiple language support, which opencart provides, however to support multiple languages you need to create the language package, as well as enter all your product data in multiple languages.
i have worked with similar features on another project where its not a full language replacement, but more of an individual word replacement using one language. however, i don't quite get how this would apply in a shop.
if you need something other than multiple language support, can you supply a specific example that applies to your business so we can understand the requirement a bit better?
i have worked with similar features on another project where its not a full language replacement, but more of an individual word replacement using one language. however, i don't quite get how this would apply in a shop.
if you need something other than multiple language support, can you supply a specific example that applies to your business so we can understand the requirement a bit better?
No I think he needs to add more words that translate 'out of the box'. Some that are not in the language files and not needed for Opencart.
xaicks:
Look at a language php file and see how different words are defined.
These get read from within the backend in this form:
So if you define your own variable in the language files they should be available in any template file:
PS: not tested that yet though!
xaicks:
Look at a language php file and see how different words are defined.
These get read from within the backend in this form:
Code: Select all
$language->get('button_add_to_cart'));
Code: Select all
<?php echo $language->get('my_own_variable')) ?>
Hi,
In language/portuguese/controller/product.tpl i have this
In template/default/content/product.tpl i want to put the variable and the result is this notice
Thanks ppl!
In language/portuguese/controller/product.tpl i have this
In template/default/content/product.tpl i want to put the variable and the result is this notice
how can i define variables?Notice: Undefined variable: text_descr in /hermes/web10/b1117/pow.lusotekops16/htdocs/pakiee/catalog/template/default/content/product.tpl on line 26
Thanks ppl!
Who is online
Users browsing this forum: No registered users and 34 guests