Close Panel

2

Oct

2009

Multilanguage Wordpress

By DarkByte. Posted in IT thingies, News | 12 Comments »

For a few days now I am bothered by the idea of modifying my blog as to be multi-language (having the same blog, but to allow me post in more languages and to display the posts according to the global language setting).

The first thought that crossed my mind was to install a new Wordpress for each language that I want to use, but when I thought of all those plugins, settings and all that crap that will bother me, I quit.

Unfortunately, there aren’t too many informations regarding the possibility of a Wordpress that supports more language at a given time. At a fairly deep search I found a single site that had some promises, so I kept it for when I would start testing.

Fortunately, there is also Smash in the world, who found me another two sites that seemed perfect.

I couldn’t wait anymore. I took xampp, installed it, I took Wordpress, installed it too, I took the database from the blog, imported it in my new localhost blog, adjusted the settings as to be as close to the original ones as possible and I went nuclear.

I started with qTranslate and I instantly dropped dead when, after I clicked on Activate Plugin, it displayed me a mile-long page cu errors. Good thing there was Google available.

The file “qtranslate_core.php” must be modified. More clearly, the next piece of code must be commented:

	if(is_object($text)||get_class($text) == '__PHP_Incomplete_Class') {
		foreach(get_object_vars($text) as $key => $t) {
			$text->$key = qtrans_use($lang,$text->$key,$show_available);
		}
		return $text;
	}

After modifying this file, the installation, activation and setting up the plugin are just a breeze.

All I still need to do is to modify the rest of the blog’s posts. I’m so screwed straight face

Good luck with improving Wordpress !


DarkByte is
Email this author | All posts by DarkByte | Subscribe to Entries (RSS)

 

12 Responses to “Multilanguage Wordpress”

  1. 1
    misssun Says:

    Foarte buna ideea ta, de a avea blogul si in engleza…desi o sa iti ia ceva timp pana traduci toate posturile. Spor la treaba si mult timp liber. big grin

  2. 2
    Claudiu Says:

    worried Now that’s gonna take a while (sa fiu sincer in locul tau m-as preface ca nu mai am alte posturi whistling)

    Spor!

  3. 3
    DarkByte Says:

    Sa inteleg ca la tine nu ar trebui sa apelez dupa ajutor in problema asta ? big grin

    Merci happy

  4. 4
    misssun Says:

    Ca sa nu plangi ca esti oropsit de soarta si ca nu te ajuta nimeni, ma ofer eu sa te ajut la tradus. big grin

  5. 5
    Claudiu Says:

    Daca as avea timp te-as ajuta sincer, dar se pare ca decizia ta mi-a dat si mie avant hee hee and once again schimb layout-ul, back-end’ul, functionalitati and so on…

    Asta e, pe masura ce invat mai mult urasc mai tare ce am facut cand nu stiam happy I guess it’s universal…

  6. 6
    Claudiu Says:

    Si apropo… ai observat cum e scrisa data la commenturi? happy E ceva intentionat?

  7. 7
    DarkByte Says:

    De acord cu tine happy

    Da, am observat. E un bug legat de pluginul pentru multi-language. Inca nu am avut timp sa incerc sa il repar, iar pe Google nu am gasit rezolvarea, so … va mai merge asa un timp happy

    Thanks for pointing it out, though.

    Bafta

  8. 8
    Marc Shaw Says:

    Hey, I read a lot of blogs on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say GREAT blog!…..I”ll be checking in on a regularly now….Keep up the good work! happy

    - Marc Shaw

  9. 9
    Frank Scurley Says:

    I don’t know If I said it already but …Cool site, love the info. I do a lot of research online on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say I’m glad I found your blog. Thanks, happy

    ….Frank Scurley

  10. 10
    Claudiu Says:

    Dates work big grin And you have flags, right on winking

  11. 11
    DarkByte Says:

    I know, I just forgot to post about the date/hour fix I made.

    Glad you like the way it is now happy

  12. 12
    Savannah Says:

    Awesome blog!

    I thought about starting my own blog too but I’m just too lazy so, I guess Ill just have to keep checking yours out.
    LOL,

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">