Posted by defaze on November 27, 2012 at 4:44pm
Hello!
Sorry for my bad english, this might be why i didn't find the answer in google.
I'm developing simple module dor drupal 6, just a button to show.
But i need to insert value of the button multilaguage variable, so when I change language on site, the button value changes also.
Using i18n for multilanguaging the site.
There is nessary translations in "/admin/build/translate/search" that i need, but how can i call this variables in my module?
Also if I try to print $language,$variables and $conf arrays,returns empty.
Comments
anyone?please?
anyone?please?
All you need to do is use the
All you need to do is use the functions t() and format_plural().
http://api.drupal.org/api/drupal/includes%21common.inc/function/t/6
http://api.drupal.org/api/drupal/includes%21common.inc/function/format_p...
If you read the documentation all should become clear.