Wierd behaviour of _e() and __()
-
I am trying to make a theme translatable. With one term, I am having some trouble.
This code:
<? $c = get_the_category_list(', '); var_dump($c); echo $c; _e("$c"); _e("Uncategorized") ?>
Outputs:
string(145) "Uncategorized" Uncategorized Uncategorized Okategoriserade
My WordPress installation is set to use a Swedish locale. As you can see, the last call to _e() works, other doesn’t. WHY? What do I need to do to the variable before I pass it to _e()?
Using 2.9.2
Thank you,
Carl
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Wierd behaviour of _e() and __()’ is closed to new replies.