0

I have a blog and I want to write some posts in spanish and some other in english (no post will be in both languages).

So, I want to be able change the value returned by language_attributes() function for certain posts. I've seen that language_attributes() uses get_bloginfo('language'). So I guess in wordpress, language is designed to be at 'the whole site' level rather than at 'post' or 'page' level.

I think I only have two solutions: to write a plugin in which I can define the language for each post (which would have to use a filter like here. Or to use a multi-language plugin, which is a too sophisticated solution for my simple problem.

Any other ideas? Any other plugin o simple solution?

thanks

Community
  • 1
  • 1
de3
  • 1,890
  • 5
  • 24
  • 39

1 Answers1

0

There are plug-ins already available for setting up a multilingual WordPress blog. You might want to have a look into this topic: http://codex.wordpress.org/Multilingual_WordPress. So, you could use an existing plug-in.

Shahzad Latif
  • 1,408
  • 12
  • 29
  • I chose qTranslate, although what I wanted was something simpler. But qTranslate is cool – de3 Dec 27 '11 at 22:16