xLanguage (Wordpress Plugin)

Monday, January 21st, 2008 Chinese Cantonese

A WordPress plugin that allows you to blog in multi-language, and users to select which to read. If your want to localize and present your blog in different languages (totally with title, rss, categories working, not just the post) and allows visitors to pick the language they want, this plugin is for you.

xLanguage allows you to blog in different language, and allows user to select which version to read. It works for blog post, page, tags, categories. The user language preferences will also select the right theme and plugins MO files.

Customization is the No. 1 design goal, after all that’s probably the reason why you want to setup a multilingual blog. The language configuration combination is highly customizable to facilitate multiple fallbacks. Every UI is extracted out, which could be optionally overridden by theme design without touching the plugin file at all.

This plugin works by inserting W3C standardized <span lang=”..”> tag in the post content, and a XML parser will be involved to extract them when served, extracting all elements with the matching lang=”..” tag. The permalinks and RSS feeds are also presented correctly. For single line data such as post title, a special but simple syntax is introduced.

The language preference is detected from browser’s preferences, as well as from Cookie if user visited before. Widget and template functions are also provided to allow user to switch the language easily.

Please read on for the installation, complete usage guide, screenshots, comparisons and known problems. If you found this plugin useful, please consider supporting it.

Please feel free to let me know if you need additional template functions, or if you have any idea that could make this a even better plugins for you.

Notice

If you hit the following error message after installation:

can not redeclare class xLanugagePlugin on line 996 in xlanguage.php

Resetting the xLanguage configuration would help. To do that, please go to “Settings -> xLanguage -> Options” in the Admin control panel, Scroll to the very bottom and reset it.

This is a known problem but I can never reproduce this so have no idea how to fix it. Any volunteer in helping me is very welcome!

Change Log

v1.3.3 (r44242)

  • #9 is regressed causing xLanguage installation dead on arrival. Now fixed together with #10.
  • This new version should solve the v1.3.2 installation problem.

v1.3.2 (r44032)

  • #9 is fixed - xLanguage should be usable in WP-MU now.

v1.3.1(r43326)

  • #8 is fixed - The static homepage bug introduced in v1.3.0.

v1.3.0 (r42456)

  • New feature #4 is implemented. In addition, to http://example.com/page/something/lang/en, now it could be http://example.com/lang/en/page/something.
  • No other bug is fixed.

Licensing

CC-GNU GPL

This plugin by Sam Wong is licensed under the CC-GNU GPL.

Latest news available in category xLanguage (WordPress)

302 Responses to “xLanguage (Wordpress Plugin)”

Pages: « 3126 25 24 [23] 22 21 201 » Show All

  1. 230
    hans Says:

    Hi!

    Great Plugin! Just what I was looking for… Everything works fine but one little thing.

    I have built a contact-form with cformsII… Is there a way, I could have this also mult-language? Or is there another way of making multi-language contact-forms?

    Thanks

  2. 229
    Yingna Says:

    Hi! I think this is a great plugin that you have made! It’s definitely very useful.

    Unfortunately, I have a few problems when I installed and tried to use it. I am using a fresh copy of Wordpress 2.6. First of all, when I tried to activate the plugin, I received this error:

    Fatal error: Cannot redeclare class xLanguageWidgetListLangs in /home/(…)/wp-content/plugins/xlanguage/widget.php on line 29

    After going to the Settings — xLanguage, I receive this error under the “Language” header:

    Warning: Invalid argument supplied for foreach() in /home/yintenco/(…)/wp-content/plugins/xlanguage/view/admin/language.php on line 94

    When I tried to add a language, I receive this error:

    Languages cannot be added because:
    The permalinks primary appending position cannot be empty.
    The Single Mode Splitter cannot be empty.
    The Square Bracket Syntax must be consists of a-z, A-Z, 0-9, - (dash) and _ (underscore) only.

    However, I filled out everything correctly.

    I would appreciate if you could shed a bit of light on how to fix these problems. Thank you!

  3. 228
    axl Says:

    It is not used anywhere in the Wordpress itself, but nevertheless Wordpress does not provide any similar entry point. I would like to promote this hook to be implemented by plugins to provide similar functionalities, and in turns, users and other plugins can rely on this hook too.

    So this means that we cannot use the apply_filter() to wordpress. Let’s say I retrieve the category of a post and echo the category_name, I end up with category_name_in_french|category_name_in_english. Is there any way to filter the result?

    Ok, Stupid I am;)

    All I had to do was to filter the variable containing the category_name!

    xLanguage for president!

  4. 227
    Ben Freeman Says:

    Hello again,
    Having had some (self created) teething problems with the install, I am back up and running with WP2.6 and this excellent and time saving plug-in.
    My next question is a suggestions request. Is anyone aware of a plug in future events calendar (I *really* like events calendar) which is compatible with xlanguage without hacking, or do i have to go though everthing in events calendar and add the piping line? Many thanks.

  5. 226
    Ben Dash » Blog Archívum » xLanguage and widget titles Says:

    [...] A question came in the beginning of using the xLanguage plugin: how can you make the default widgets’ (that came with wordpress) title bilingual, as the method with the ‘|’ Single Line Syntax doesn’t work for them. I’ve read in several places that other people also have this problem, so I thought I might give you the solution, with my general experiences regarding this issue: [...]

  6. 225
    qTranslate problems solved | A programmer's paranoia Says:

    [...] now up and functional. Old plugin for multilanguage i18n has been replaced with the more advanced xLanguage. One of the best plugin ever [...]

  7. 224
    Zaerl Says:

    Sorry, my fault. Now xLanguage works great for me in wordpress 2.6. It was a problem with the php version in my server.

  8. 223
    Zaerl Says:

    Hi there. I’ve upgraded to WP2.6 some days ago and now I experience the same error other users have. No translation of tagged text all around the blog. Compliments for the wonderful plugin. I will proceed with a donation if you update it. Anyway thanks for all the work done. I’ve tried several multilanguage plugin prior of xLanguage (qTranslate in primis) but I’ve experienced very weird behaviour.

  9. 222
    HelloSam Says:

    Dear my royal users, I just upgraded my Blog to 2.6 too but didn’t notice any problem so far. Please send me a screenshot to the email so that I could follow up with the specific issues. Thanks.

  10. 221
    Ben Freeman Says:

    I think that xlanguage is not compatible with wp2.6, as I have the same problem (and all my text is displayed in posts despite marking some in different languages). This program rocks and I hope the author will be able to update it soon.

Pages: « 3126 25 24 [23] 22 21 201 » Show All

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>

Subscribe without commenting