By teebo on
Hi everyone,
I have a block with php content and I would need to get the current language.
Something like $language (which doesn't work).
I installed the localizer module.
Thanks in advance.
Hi everyone,
I have a block with php content and I would need to get the current language.
Something like $language (which doesn't work).
I installed the localizer module.
Thanks in advance.
Comments
<?phpfunction
Thanks for the reply, but it
Thanks for the reply, but it does not seem to work:
Returns only... LANG:
use global $language; in
use global $language; in drupal 6 instead of global $locale; wich is for earlyer versions of drupal!
I'm currently using Drupal
Thanks, but, I'm currently using Drupal 5.
I'm waiting for modules to be Drupal 6 compatible.
no problem. Most people is
no problem.
Most people is still waiting for views and CCK :S
Just though i would mention it for other readers there might come by this topic for solution.
But now you know the way when you start using D6 :)
Thank you..
It's seem can work even if the user is not logged in.
I'm looking for direction as will..
It's seem that we can use something like this.
if $lang = 1 then it's left to right.. but if $lang = 0 then it's right to left
Regards
Thanks... you guided me on
Thanks... you guided me on the right track.
Here's how I got it to work:
global $locale is the solution
Thank you teebo, global $locale is the solution for drupal 5