Microblog : A very long article Wikipedia article on the orientation of toilet paper [7 jun à 22:52] [R]

Mardi, 11 novembre 2008

HTML in RSS and Translate — HTML dans le RSS et traduction

Catégories : [ Blog ]

I changed my RSS feed so that it displays the stories in HTML instead of the old text-only version. Moreover, I added a link to each of the RSS items to use automatic translating services (Google Translate and Babelfish). This link only appears if the RSS feed is requested with a given language in parameter. E.g., for English, use http://users.jyu.fi/~mweber/blog/index.rss?lang=en as the RSS feed's URL. You can replace the en at the end with fr or fi for French and Finnish respectively.

J'ai changé mon flux RSS afin d'afficher les histoires en HTML au lieu de l'ancienne version en texte simpe. De plus, j'ai ajouté à chaque item RSS un lien vers des services de traduction automatique (Google Translate et Babelfish). Ce lien n'apparait que si le flux RSS est appelé avec un paramètre langue. Par exemple pour le Français, il faut utiliser http://users.jyu.fi/~mweber/blog/index.rss?lang=fr comme URL du flux RSS. On peut remplacer le fr à la fin par en ou fi pour l'anglais ou le finnois, respectivement.

Disclaimer — Désistement

I cannot be held responsible for death by fatal hilarity when reading the automatic translations.

Je ne peux être tenu responsable si vous mourez de rire en lisant les traductions automatiques.

[ Posté le 11 novembre 2008 à 23:35 | pas de commentaire | ]