Créer des posts en deux langues sous wordpress

[ol]

Deux langues, pour quoi faire?

Comme une partie de mon trafic est dirigée sur ma page via mes jeux, j’ai quelques lecteurs anglophones.

Je cherchai donc un petit plug in wordpress qui me permette d’afficher mes posts sur mes jeux en anglais aussi.

Inconvénients de la traduction automatique

Je ne voulais pas d’une traduction à la volée via google trad ou autres.

A cause de toutes les incohérences de traduction, et surtout avec le ralentissement d’affichage que ça implique.

Non, je voulais juste écrire certains posts moi même en anglais (bien que je vous l’accorde, ça n’empêche pas les incohérences de traduction non plus :p).
Et avoir la possibilité de proposer le meme post en français ou en anglais selon la langue du lecteur (français ou étranger).

Evidemment je ne voulais pas non plus du petit drapeau français/anglais (sooo web 1.0), mais que le post passe automatiquement d’une langue a l’autre en fonction de la langue du navigateur web.

Quel Plug-in utiliser pour wordpress

Et bien devinez quoi ?

Ce plug in n’existe pas. On trouve uniquement des outils de traduction très complets (mais du coup très lourd aussi) de traduction automatique.

Comme on n’est jamais mieux servis que par soi-même , j’ai du donc créer ce fichu plug in tout seul et je vous présente donc :

Flip Lang

Très léger, le plug in va simplement cacher le contenu de l une ou l autre des balises en fonction de la langue du navigateur de votre lecteur.

On écrit un article en français pour les lecteurs français, et on propose le même article en anglais pour tous les autres lecteurs (qu’ils soient anglais ou suédois par exemple).

Dans l admin on choisit sa langue d origine :

Vous avez le choix d écrire tout votre post en français d abord et de mettre les balises

((ol pour Original Language) au début et à la fin du post.

flip lang fonctionnement
flip lang en action

Puis de réécrire le même texte plus bas entre les balises

(fl pour Foreign Language) dans une autre langue.

Rien ne vous empêche de traduire paragraphe par paragraphes, histoire de garder les mêmes images pour les 2 textes.

(Notice d’installation dans le fichier zip ci-dessous)

[/ol]

[fl]

Several languages, What for?

As a part of my traffic is directed to my page via my games, I have some english speaking Readers.

So I was looking for a little plug-in that would allow me to post about my games in English as well.

Disadvantages of auto translation

I didn’t want a translation on the fly via google trad or anything else.

Because of all the translation inconsistencies, and especially with the slower display that this implies.

No, I just wanted to write some posts myself in English (although I grant you that, it doesn’t prevent translation inconsistencies either :p ).
And have the possibility to propose the same post in French or English depending on the language of the reader (French or foreign).

Obviously I didn’t want the small French/English flag (sooo web 1.0) either, but that the post automatically flip between languages according to the language of the web browser.

Which Plug-in to use for wordpress

Well, guess what ?

This plug in doesn’t exist. There are only very complete (but also very heavy) machine translation tools available.

As we are never better served than by ourselves, I had to create this damn plug in by myself and I present you :

Flip Lang

Very lightweight, the plug-in will simply hide the content of either tag depending on the language of your player’s browser.

We write an article in French for French readers, and we propose the same article in English for all other readers (whether they are English or Swedish for example).

You choose your original language in the admin panel :

You have the choice to write your entire post in French first and put the

(ol for Original Language) tags at the beginning and end of the post.

flip lang fonctionnement
flip lang en action

Then rewrite the same text below between the

(fl for Foreign Language) tags in another language.

Nothing prevents you from translating paragraph by paragraph, just to keep the same images for both texts.

(Installation notes into the zip file below)

[/fl]

[ol]

D’ailleurs ce post est écrit en anglais et en français, l’avez vous remarqué ?

(si oui, c’est qu’il y a un problème :p  )

[/ol]

[fl]

By the way, this post is written in English and French, have you noticed it ?

(if so, there is a problem: p)

[/fl]

Leave a Reply

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur la façon dont les données de vos commentaires sont traitées.