Different content in global area for different language

Permalink
Hi.

I have 2 languages on website and I have some global areas. It works fine for one language but the problem is that I have 2 languages. Can anybody tell me how to setup different content for one language and different for another.

I dont want to copying content for each sub-page.

Thanks in advance.

 
hissy replied on at Permalink Reply
hissy
Ordinarily, I separate Global Area name based on language section. See code example:
https://gist.github.com/hissy/7396557...

This is a non-official way, but it works.
JohntheFish replied on at Permalink Reply
JohntheFish
kosgame replied on at Permalink Reply
Thanks a lot JohntheFish. But I still have big problem.
I can`t find something like that for search block.
JohntheFish replied on at Permalink Reply
JohntheFish
Try the author of DH. Send a PM.
Cahueya replied on at Permalink Reply
I did it a while ago using stacks:
https://www.concrete5.org/community/forums/internationalization/how-...

Should work with every block, but needs some hardcoding.
Remo replied on at Permalink Reply
Remo
it's pretty much the same as hissy's solution, but here's what some people use toohttp://www.concrete5recipes.com/tricks/language-specific-global-are...
kosgame replied on at Permalink Reply
Thanks. I used Remo`s solution and it is sth I was searching for.
jsammer replied on at Permalink Reply
I have the same requirement, and the c5 recipe posted by Remo looks like the perfect fit. I am a php novice - where does this php code go?

Thanks,
Joachim