Basic Bilingual Plugin

[fr]

Ce plugin pour WordPress regroupe les hacks que j'utilise depuis un moment déjà pour gérer le bilinguisme de mon weblog. Il permet d'afficher un sommaire de chaque billet dans "l'autre langue" et d'appliquer un formattage par langue via l'attribut lang.

Plus de détails sur la page officielle du plugin.

[en]

Update 01.02.2007: This plugin broke badly with WordPress 2.1, but has now been (hopefully) updated. The wiki page on wp-plugins.org is frozen and may not be up-to-date anymore. Download here.

This post is the test run for my Basic Bilingual plugin.

It doesn’t add much functionality to what I already have through my hacks, but it’s cleaner from a code point of view, and it’s portable — you can use it too if you wish.

Be patient if the wiki page isn’t exactly up-to-date. It will be shortly — and the plugin will be available through the Plugin Manager as soon as I’ve made sure it’s functional enough (ie, when I press publish and hell doesn’t break loose).

This plugin basically allows you to do what you can see on this weblog: add lang attributes to your posts, excerpts in “the other language”, and localize the date. It also creates permanent fields in the admin pages for entering the language and “other language excerpt” easier.

I’d like to emphasize that this plugin is very simple. It is in no way a replacement of any sort for the larger-scale multilingual efforts going on these days. I wanted to get my code cleaned up and my hacks back in the admin interface (I lost them when I upgraded WP), and I’m making the result public.

17 Comments

  1. Posted 1/25/2005 at 6:58 am | Permalink

    Hi !
    I just tried to install the plug-in you created but… even when I activate it, nothing appear on the “write” page in WordPress. First, I thought that was a result of a tiny manipulation on your file (I just tried to configure it for three different languages ; including french, english and japanese) but now that I erased these added lines, it s just like the same as before. I wonder if that s a problem of version. I m using Wordpress 2.2.

    Izo

  2. Posted 1/25/2005 at 7:13 am | Permalink

    Izo: that would be it. I doubt the plugin hooks I use to add fields in the “write” page exist in 1.2. One exciting feature of the upcoming 1.5 is precisely to allow plugin writers to mess with admin pages!

    Sorry about that :-/

  3. Posted 1/26/2005 at 1:32 am | Permalink

    Well, so you think I should consider upgrading my version of Wordpress ?

    Izo

  4. Posted 4/3/2005 at 9:39 pm | Permalink

    Hi Stephanie. I’ve started using basic bilingual on my blog and, until a sophisitacted polyglot plugin comes around, this is exactly what I was looking for. Works great - thanks a lot!

  5. Posted 7/26/2005 at 6:02 pm | Permalink

    Hello ! Thanks for this plugin and the idea !

    I’ve modified it a little for my own blog I added more languages and added a function to display a little flag, and instead of displaying an excerpt in another language, I’m displaying an excerpt in a common language.

    Too bad there aren’t any action hooks in Wordpress to display the language selection combo without position:absoluute..

    If you want to check it out, this is the plugin page, and to see the admin pages you can try the live demo.

    Thanks again, great work !

  6. Stephanie
    Posted 8/8/2005 at 12:58 pm | Permalink

    Great work, stilgar! Haven’t seen it work (no time), but I’m really happy to see people building on my plugins.

  7. Alex
    Posted 8/16/2005 at 7:44 am | Permalink

    In the documentation for this plugin, you write “Once meta data has been stored for a post, you need to make it visible in the template.” Can you say a little more about that? I installed the plugin, but the second language entry does not show up in my blog. Do I need to edit any templates? I’m using WordPress 1.5 (blue default theme). Thanks for your help.

  8. Posted 11/12/2005 at 3:21 am | Permalink

    Heya, hot stuff this plugin of yours. I have installed it and I am using it for English and German. As my blog might get one or two more authors who write in languages other than those two I’d like to get straight if theoretically it would be possible to enhance the plugin? Will simply extending the array do the trick?! (maybe a stupid question, but I’m really not the coder type) I’d be happy to get some info on that. Keep rockin’

  9. Stephanie
    Posted 11/12/2005 at 8:35 am | Permalink

    Glad you like it! I’m certain it’s possible to extend it to include a larger finite number of languages, but I’m not sure how it would be done. Do post something here if you do change it! Many people would love to use it.

  10. Posted 2/25/2006 at 3:06 pm | Permalink

    Hi Steph!
    I hav a question… I’m new to WordPress… Therefore I have NO idea where do I have to aplly the tags … Can you write me a short dummy/moron prove explanation of what I have to do after activating the plugin? Please!

  11. Stephanie
    Posted 2/25/2006 at 3:38 pm | Permalink

    You need to edit the theme you’re using (under “presentation”, “theme editor”). It depends on which theme you’re using. You’ll want to find the file in the theme which displays posts, edit that, and add the tags at the right place in the code.

    Let me know if this is enough or if I must go more into details.

  12. Posted 2/25/2006 at 4:27 pm | Permalink

    Steph,
    I’m affraid I need more detail. =0(
    The tag should be like this? =

    Don’t have to do anything on the CSS file?

  13. Posted 2/25/2006 at 4:31 pm | Permalink

    The tag shud be preseded by < ? php ?????

  14. Stephanie
    Posted 2/25/2006 at 6:14 pm | Permalink

    I can’t walk you through it step by step, I’m afraid, but yes, the tag needs to be between < ? php and ? > (without spaces) as it is in fact a php function.

    And I’d suggest doing stuff in the CSS file to make things pretty — the wiki page points you to where I explain what I did to the CSS.

    If you need more help you can try joining #wordpress on chat.freenode.net (IRC) and ask there. I might be in.

  15. Posted 4/30/2006 at 2:42 pm | Permalink

    Hi Steph,
    Just to let you know that Basic Bilingual is working happily with mixture of single and multi-byte language; English and Japanese. Great !

  16. Posted 5/20/2006 at 11:34 am | Permalink

    Ca y est, ca marche!
    Great, now working!

  17. Posted 5/29/2006 at 2:27 am | Permalink

    I managed to solve the problem of having WordPress in two (or more) languages in a rather new way, check it out if you think it can be useful
    http://www.emanueleferonato.com/2006/05/26/wordpress-in-two-or-more-languages/

16 Trackbacks

  1. By infundibulum » Blog Archive » IRMA on 2/16/2005 at 1:08 am

    The role of multilingualism in blogging, on the other hand, is a relatively new domain. Stephanie Booth has come up with an interesting Wordpress plugin for blogg [...]

  2. [...] nd other language support is correct. I’ve found a basic bilingual plugin (here is a working example) - but it is still an alpha version and I am not that much [...]

  3. By Netlex News » Blog Archive » test on 8/16/2005 at 9:24 pm

    [...]Netlex News
    test Internationalisation
    Basic bilingual : installed + rounded box
    author: Stephanie Booth author U [...]

  4. By H. Poe » Miniposts on 1/3/2006 at 3:51 am

    [...] étrenne avec la nouvelle année le plugin miniposts pour wordpress. YAY ! Voilà  bien un an que j’essayais désespéremment de faire fonctionner cette cochonnerie de plugin sur S.N.M. sansOn dirait bien que ce soir, j’ai eu l’illumination pour le BJDlog. Tant mieux. En revanche, je n’en ai plus aucune utilitéS.N.M. T_T De l’autre, sitôt dit, sitôt fait, je viens d’activer le Basic Bilingual Plugin de Bunny pour blogueurs flemmards. Les posts ne seront doncdu BJDlog étant le plus souvent de baver sur les photos, cela se passe de longs discours. J’aurais tendance, depuis que je bosse dans la traduction, à  être une vraie couleuvre quand ilplugin and Basic Bilingual Plugin are now enabled for the BJD-log. Posted @4:04 in Site. #| [...]

  5. By Climb to the Stars (Stephanie Booth) on 1/4/2006 at 10:22 pm

    Plugin Updates for Wordpress 2.0…

    It took me a couple of hours, but both Basic Bilingual and Bunny’s Technorati Tags are now Wordpress 2.0-compatible.

    A few minor tweaks have been made, most significant of which is that these two plugins can now be used for Pages in addition to …

  6. [...] I am planning to make waviaei as a bilingual blog, English and Japanese. How I am going to do that, I have yet to decide. Currently, I have Basic Bilingual Plugin and Polyglot. I am not sure whether they are compatible with WP2.0 or not, and I am not an PHP expert. So I think I am going to leave as it is: some in English, some in Japanese. I am feeling that a multi-byte language problem will need to be dealt with somewhere sometime. [...]

  7. [...] My blog has been bilingual for a long time now. I’ve hacked bilingualism into it and then plugged it in. Other plugins for multilingual bloggers have been written, and some unfortunately got stuck somewhere in the development limbo. [...]

  8. By Ashar Edith » Conociendo WordPress on 2/26/2006 at 4:29 pm

    [...] Otro plugin que estoy probando es ‘Basic Bilingual‘. Este me permitirà¡ identificar en qué idioma es cada publicacià³n, ademà¡s de poder integrar un corto resumen en el otro idioma. De este modo nadie se pierde de nada. ¡Chévere! ¿Verdad!? [...]

  9. [...] It is what Stephanie Booth, the author of this plugin, calls it “lazy multilingualism”. You find it difficult to produce a translated version for every posts, but by providing an excerpt in other language, they will at least able to know what the post is about. [...]

  10. By NorthSpace on 7/25/2006 at 1:43 pm

    [...] It is Language Week again and I’m participating again this year, at least with one posting. Last year I intended to blog occasionally in Finnish, so I installed Stephanie Booth’s Basic Bilingual plugin in WordPress. I haven’t written so much in Finnish since then, and I haven’t used the plugin in the newest versions of my design. Maybe it’s hard enough to blog even in one’s own language. Now I’ve found the Polyglot plugin that should work easily in those rare occasions when I write in Finnish (or in other foreign languages), but be invisible when I write in English. [...]

  11. [...] Ik wou ook nog even melden dat ik al een hele tijd de ‘Basic Bilingual’ Wordpress plugin van Stephanie Booth gebruik (met wat aanpassingen mijnentwege) teneinde een en ander ‘nl’ of ‘en’ te taggen (met headers en datums die hierdoor automatisch aangepast worden); het sorteren in ‘English posts’ en ‘Nederlandse artikels’ hiernaast in de sidebar is daar ook op gebaseerd (de oudere, geimporteerde posts van Blogger moet ik nog manueel taggen). Simpeler dan aparte blogs te maken - merci Stephanie. Nu nog even dit postje in het Engels vertalen, en dan terug naar de normale verslaggeving! [...]

  12. [...] Why the default? Because writing in Dutch is still a bit easier on me than English. And of course, I’m way too lazy to start translate everything! I would also like to mention that I’m using for quite a while now the ‘Basic Bilingual’ Wordpress plugin by Stephanie Booth (with some modifications by me) to add a language tag to each post (and so for instance the language of the post headers and dates are being set based on these). The sorting in ‘English posts’ and ‘Nederlandse artikels’ (see links in sidebar) also uses this (except for my old imported Blogger stuff, which I still need to tag by hand). Much simpler than separate blogs and the likes, thanks Stephanie! [...]

  13. [...] Thanks to Sudar, who took the trouble to fix Bunny’s Technorati Tags so that it worked with WP2.1, here are up-to-date version of these two plugins, Bunny’s Technorati Tags and Basic Bilingual: [...]

  14. [...] Wordpress plugins: language picker Polyglot and Basic Bilingual [...]

  15. [...] Stephanie Booth, Swiss multi-lingual bloggeuse* extraordinaire (and very first tipper of the WineCampFrancophone hat) has some deep thoughts on multi-lingual blogging, as well as pointers to some great little hacks / tools. [...]

  16. By Climb to the Stars (Stephanie Booth) on 11/30/2007 at 10:39 pm

    Basic Bilingual 0.3 for Multilingual Blogging…

    Long overdue, an upgrade of my plugin Basic Bilingual. Grab the tgz archive or check out the code.

    Some explanations. First, you all know of my long-standing interest in all things multilingual and in multilingual blogging in particular.

    Years ago, I…

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*
« Back to text comment
Contact