Is there something like qTranslate for Wordpress for Tumblr so I can localize blog posts? I need to write posts in English and German so that the German posts show up for German readers and English for the rest. Is this possible?
1 Answers
The answer to the first part of your question, “Is there something like qTranslate for Wordpress for Tumblr” is no: Tumblr is not a (quasi-)CMS system like WordPress. What you get in the Tumblr theme docs is all there is as to customization.
The answer to part two is: you can cook up anything you feel like using the tools Tumblr offers in its theme customization toolkit, which would be HTML, CSS and JavaScript (which, unlike hosted WordPress, is not blocked in the theme), but it is up to you. If the text exists in a translated form for both languages, the basic approach would be to include both versions in the page, give it the correct lang
attribute and style your CSS to hide one by default (using the [lang="x"]
attribute selector), then use JavaScript to guess at the visitors’s locale (see this question for some pointers) or offer a selection mechanism and toggle the hidden status of the two blocks (trivial with jQuery).
Finally, Tumblr’s theme templating language is localization aware – check out the localization section of the docs for how to localize the theme itself (not the content).