Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By tille on
hello evrybody,
sorry for cross-posting.. (I already asked this over here http://drupal.org/node/119375) ..but i actually think this might be the more appropriate forum to ask this: how can I find out, what language is currently selected..? I'm trying to do something like this:
if($language == "English") {
echo("this is english");
return(TRUE);
} else {
echo("this is NOT english");
return(FALSE);
}
..and would therefore need some variable, that tells me, what the user selected ..
..help..? ..thanks!! greetz, till..
Comments
Dunno about localizer but
Dunno about localizer but with locale you'd do this;
Pobster
looking at the solution it
looking at the solution it looks actually quite 'banal' - and I really dont know why i couldnt find it anywhere - but yes, this is exactly what I was looking for - thank you!
greetz, till..
ps: I also updated the other thread..
___________________________
my pictures: www.bilderbook.org
___________________________
how to get a -language variable- from localizer in drupal 6.x
--
sim6
Thanks for that reply but you
Thanks for that reply but you are two and half years late to this party...
Pobster
Well, it had the answer I
Well, it had the answer I needed right now. So, yes, it was helpful to actually post the solution.
is it possible to change the
is it possible to change the subtheme based on this variable? I'm trying to do a simple css switch to change all the images for the dif. languages, or am i going about it the wrong way?
j