Previous post: IT Conversations: Dan Gillmor

Next post: On Tags and Ontologies

Basic Bilingual Plugin

by Stephanie on 01.23.2005

in Languages / Linguistics, Weblog Technology

[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 trackbacks }

infundibulum » Blog Archive » IRMA
02.16.2005 at 1:08
» bilingual blog plugin» Blog Archive » Complex solutions to simple problems
07.21.2005 at 9:09
Netlex News » Blog Archive » test
08.16.2005 at 21:24
H. Poe » Miniposts
01.03.2006 at 3:51
Climb to the Stars (Stephanie Booth)
01.04.2006 at 22:22
waviaei » Blog Archive » The first post
01.21.2006 at 16:49
Climb to the Stars (Stephanie Booth) » Requirements for a Multilingual Wordpress Plugin
01.22.2006 at 8:45
Ashar Edith » Conociendo WordPress
02.26.2006 at 16:29
Multilingual blogging with WordPress « Waviaei
04.29.2006 at 18:42
NorthSpace
07.25.2006 at 13:43
Californication » Blog Archive » Vlengels / Flemglish
09.06.2006 at 7:40
Californication » Blog Archive » Flemglish / Vlengels
09.06.2006 at 7:40
Basic Bilingual and Bunny’s Technorati Tags Plugins Updated for WordPress 2.1 at Climb to the Stars (Stephanie Booth)
03.25.2007 at 9:52
BlogCamp: Multilingual Blogging Session at Climb to the Stars (Stephanie Booth)
03.25.2007 at 14:32
WineCampFrance - a multilingual challenge « Goat at Large
04.14.2007 at 0:05
Climb to the Stars (Stephanie Booth)
11.30.2007 at 22:39
lost in data » Extension for Basic Bilingual Wordpress Plugin
07.06.2008 at 21:22

{ 36 comments… read them below or add one }

1 Izo 01.25.2005 at 5:58

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 Steph 01.25.2005 at 6:13

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 Izo 01.25.2005 at 6:58

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

4 Steph 01.25.2005 at 7:13

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 :-/

5 Izo 01.26.2005 at 0:32

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

Izo

6 Izo 01.26.2005 at 1:32

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

Izo

7 oso 04.03.2005 at 20:39

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!

8 oso 04.03.2005 at 21:39

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!

9 stilgar 07.26.2005 at 17:02

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 !

10 stilgar 07.26.2005 at 18:02

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 !

11 Stephanie 08.08.2005 at 11:58

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

12 Stephanie 08.08.2005 at 12:58

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

13 Alex 08.16.2005 at 6:44

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.

14 Alex 08.16.2005 at 7:44

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.

15 Axel 11.12.2005 at 1:21

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'

16 Axel 11.12.2005 at 3:21

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’

17 Stephanie 11.12.2005 at 6:35

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.

18 Stephanie 11.12.2005 at 8:35

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.

19 Climb to the Stars (Stephanie 01.04.2006 at 21:22

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 …

20 AsharEdith 02.25.2006 at 14:06

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!

21 Stephanie 02.25.2006 at 14:38

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.

22 AsharEdith 02.25.2006 at 15:06

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!

23 AsharEdith 02.25.2006 at 15:27

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?

24 AsharEdith 02.25.2006 at 15:31

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

25 Stephanie 02.25.2006 at 15:38

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.

26 AsharEdith 02.25.2006 at 16:27

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?

27 AsharEdith 02.25.2006 at 16:31

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

28 Stephanie 02.25.2006 at 17:14

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.

29 Stephanie 02.25.2006 at 18:14

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.

30 Toru 04.30.2006 at 14:42

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 !

31 Toru 04.30.2006 at 14:42

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 !

32 Jerome 05.20.2006 at 11:34

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

33 Jerome 05.20.2006 at 11:34

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

34 triqui 05.29.2006 at 2:27

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/

35 triqui 05.29.2006 at 2:27

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-i...>

36 Climb to the Stars (Stephanie 11.30.2007 at 21:39

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…

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

« Back to text comment

Additional comments powered by BackType

Clicky Web Analytics