xLanguage (Wordpress Plugin)

Monday, January 21st, 2008

安裝程序

Installation

This plugin is tested on v2.3 and up to v2.7.

  1. Download the zip file and extract into /wp-content/plugins/
  2. In the Admin control panel, goes to the “Plugins” page and activate the “xLanguage” plugin.
  3. Configure the plugin under the “Options” page.
  4. Start blogging with the multi-langual functionalities!

First, you have to configure which language are available to the users, and defining the properties of the language. A complex arrangement is allowed which is very useful if one of the language is “overlapped” with another.

Then, you can start blogging with the xLanguage toolbar provided which can help you to specify which paragraphs in the post belong to which language. In addition, you may want customized the name of the categories and tags to specified languages.

Also, put the xLanguage widget up so the users are allowed to switch language as needed.

When a user finally comes to your blog, the plugin will determine the most favorable language from his browser preferences. The content shown will have the correct part extracted. His choice of language will also be saved to cookie. Permalinks will also be modified to include the language information.

Troubleshooting

1. can not redeclare class xLanguagePlugin

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!

2. WP just gives blank page to everywhere, including anywhere in wp-admin, after adding a new language row with non-English character

If you found that the WP gives blank response to every page inside once you put a new language definition with non-Latin character, it indicates your database (MySQL) were not setup correctly to handle multi-language. Technically speaking, it means the collation setting is incorrect.

For MySQL 5 (the one that everyone should be using), this usually just means a configuration changes that is correctable.

If you have phpMyAdmin, use that to browse to your Database, in the Operations tab – the collation must be something started with “utf8_…”, otherwise you will run into trouble like this.

Fixing this would not be trivial, as the tables and columns are already created with the incorrect collation settings. Either change everything one by one, or wipe the DB, change the default collation and start over.

Latest news available in category xLanguage (WordPress)

793 Responses to “xLanguage (Wordpress Plugin)”

Pages: [32] 31 30 29 28 27 26 25 24 23 221 » Show All

  1. 793
    tester Says:

    Hi,

    I’ve just installed the plugin but I don’ t really understand this message at all when I set up the permlinks options:

    “Options cannot be saved because:
    The permalinks supported mode must include the primary appending position.
    The Square Bracket Syntax must be consists of a-z, A-Z, 0-9, – (dash) and _ (underscore) only.”

    I choosed that on Primary Appending Position:
    ” Prefix looks like http://example.com/blogurl/lang/en/archives/123. This has better compability with other plugins”

    And that on Square Bracket Syntax:
    “/”

    Any HELP please???

  2. 792
    Carlo Says:

    This works:
    blablebli

    This does not work:

    blablebliblo blo blo

    Why?

  3. 791
    Zoran Says:

    After I edit an article with Windows Live Writer all the text in the article is shown, regardless of the language. I must open it in WYSIWYG editor in WordPress and save it from there. Only then it looks OK again.

  4. 790
    Alberto Says:

    Hi,

    We are using your plugin xLanguage. It works great!! but we have a doubt. Now we are using ‘ugly’ permalinks like ‘http://xxxxx/?p=123′, and now we’d like to use pretty permalinks like ‘http://xxxxxx/2010/02/17/sample-post/’. I have tried to do it, but the permalinks are not good, because use the full title (english|spanish) like this ‘http://xxxxxxx/2010/02/17/english title spanish title/lang/en’.

    Can I use your plugin with pretty permalinks like that? Please, explain me how.

    Thanks in advance

  5. 789
    wordpress, atahualpa, xLanguage and widget titles translation | web performance Says:

    [...] My site is implemented in wordpress. I use the very nice atahualpa theme from bytesforall and a special plugin for multilingual websites, xLanguage from Sam Wong. [...]

  6. 788
    Catapult Says:

    I am sorry the code wasn’t showed. Second try !

    Hi there!

    I found a bug on list_lang.php.

    I am using flags. Active flag is showed perfect but the “no active” flag is not showed, after debugging I found the problem.

    File: list_lang.php
    Original:
    <a href=\"\”>
    <?php
    Corriged:
    <a href=\"\”>
    <?php

  7. 787
    Catapult Says:

    Hi there!

    I found a bug on list_lang.php.

    I am using flags. Active flag is showed perfect but the “no active” flag is not showed, after debugging I found the problem.

    File: list_lang.php
    Original:
    <a href="”>
    <?php

    Corrected:
    <a href="”>
    <?php

  8. 786
    Alberto Says:

    We are using your plugin xLanguage. It works great!! but we have a doubt. Now we are using ‘ugly’ permalinks like ‘http://xxxxx/?p=123′, and now we’d like to use pretty permalinks like ‘http://xxxxxx/2010/02/17/sample-post/’. I have tried to do it, but the permalinks are not good, because use the full title (english|spanish) like this ‘http://xxxxxxx/2010/02/17/english title spanish title/lang/en’.

    Can I use your plugin with pretty permalinks like that? Please, explain me how.

    Thanks in advance

  9. 785
    Leandro Says:

    Yes. Seems that have some issues with Chrome.

  10. 784
    Zia Says:

    At first thank you very much the nice plugin. This really works great. However, I want to put the language switcher in the header (not as a sidebar widget). How can I do that. I guess, I have to edit header.php. Thanks

  11. 783
    Caliper Engineering Says:

    There’s literally hundreds of opportunities out there, including local groups, but I’m going to list some of the best online penpal sites and my experiences with them. Thanks alot for the plugin by the way. Appreciate it. Cheers

  12. 782
    TecnolONGia» Arxiu » Nova imatge de TecnolONGia Says:

    [...] Ja no faig servir Polyglot per a les traduccions sinó xLanguage, molt més potent i fàcil d’utilitzar. A més, he doblat el tema per tal que la interfície [...]

  13. 781
    Crane Hire Says:

    One of the best ways of learning a language is interacting with natives. There’s literally hundreds of opportunities out there, including local groups, but I’m going to list some of the best online penpal sites and my experiences with them.

  14. 780
    Jaume Says:

    Hello Sam and all the folks who are helping throughout the comments. First of all I would like to thank you for this great plugin and for the support you are offering.

    I have a question I couldn’t solve after going through the 770+ comments.

    I’m trying to apply the translation to widgets. It works fine with titles. It also works fine with text… while it is a single line text. But, what if the content of the widget is something more complicated, ie, a bunch of HTML with more than one single line? Could I use the “normal” text option, ie, the span tags? It seems I can’t, but maybe I haven’t done it properly.

    Any help out there? Any workaround?

    Thank you very much.

  15. 779
    Roberto Says:

    it works perfectly; just be sure to double check how the admin side works in chrome tho as i have spent many hours trying to figure out why the plugin wasn’t working and eventually i have tried to use in firefox and it was a browser issue, i’m talking about applying a language to the text from the admin panel, in chrome doesn’t let you do it while in firefox worked as a charm.
    Thanks a lot for you effort, it’s brilliant.

  16. 778
    Salut tout le monde « silverlight, flash, php et C++ Algorithme Says:

    [...] fois trouver, il me fallait un plug-in pour avoir un site bilingue, parmi la multitude de choix, xLanguage a retenu mon attention, notamment car il permet de traduire les menus et les titres en plus des [...]

  17. 777
    Diana Calvario Says:

    I cannot upload the widget to my navbar … it simply will not accept it … any idea why?

  18. 776
    Printing Birmingham Says:

    This plugin works by inserting W3C standardized 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.

Pages: [32] 31 30 29 28 27 26 25 24 23 221 » 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