Using the plugin is simple.
- To begin with, download lang_picker.phps and rename it lang_picker.php
- Change the default language in lang_picker.php, if neccessary, by replacing en with the appropriate language code
- Upload the file to your plugins directory (/wp_content/plugins)
- Then activate it in the Plugins section of the WP admin panel
- To write a post in more than one language, simply enclose everything not in the default language in these tags:
<lang_xx>and</lang_xx>. Be sure to replace xx with the appropriate language code - At first, only posts in the specified default language will be displayed. To temporarily view another language, append
?lp_lang_view=xxto any cruft-free URL, or&lp_lang_view=xxto any cruft-full URL, being sure to replace xx with the appropriate language code. For example, you can temporarily view the German version of this entry. - To permanently view another language, use
lp_lang_prefinstead oflp_lang_view. This will set a cookie and display the new language preference whenever it is available. For example, you can set your preference to the German version of this site. (Or switch back to English.)
Note: If you do not manually specify an excerpt (in one language), your RSS feed will generate one for you without running it through the Language Picker Plugin. Thus, both languages will be visible.
History:
- Version .6: First public release
- Version .5: Switched from my-hacks to plugin
- < .5: Hacked together for personal use with WP 1.0
To do:
- Optimize
- Add function to display list of available languages
- Add other features from the old my-hacks version
Very nice plugin. I have been considering how to handle multi-language posts for an upcoming project.
Suggestions for improvement:
1) mod_rewrite rules of the sort
example.com/permalink/XXwhere XX is the language code to use.
2) add a filter that will display a flag icon next to (or under) the post title that links to the language-specific display; so that visitors can quickly choose the language they want.
Again, great plugin!
skippy: Not sure if you noticed the update to the plugin, but your flags could probably be accomplished by changing to string to put in front of each langauge to something like
<img src=">and the after each language to something like.gif" />As for mod_rewrite, I have exactly that kind of thing running. I need to document it better.
Thanks for the suggestions!
Ok, I see why my image suggestion won’t work… I’ll look into adding an option…
Great plugin, I miss the following functions:
translation of excerpts and titles
a system for picking out postins which aren’t translated already, there needs to be a list for each language, and in each list there should be a list of entries which hasn’t been translated yet. This would also need a flagging of “untranslateable”, for articles which shouldn’t show up in the translate list
Use the list of preferred languages as sent by the browser (opera does this)
Ah, forgot:
Need to create links automatically in each posting for the translations available, probably for each archive page/category page as well.
And that leads to the wish for translations of categories as well
Dear Jason, for german comment and for english comment. Any hints?
I’ve installed your plugin and wrote a comment in german (de) and english (en) on my blog to test it, but it didn’t worked. I can see only the german text (default language) even if I choose EN as prefered language in my browser (MSIE and Firefox). Plugin is activated. I used no
I can’t log-in anymore when the plugin is active. Any suggestions?
Strange. I guess you’ll have to delete it.
Thank you for this great plugin!!
heheheh http://wordpress.org/support/topic.php?id=21730
Maybe you save my live already
I can’t download the plugin. the link shows 404 error message