xLanguage (Wordpress Plugin)
Monday, January 21st, 2008目錄
|Contents
安裝程序
Installation
This plugin is tested on v2.3 and up to v2.7.
- Download the zip file and extract into /wp-content/plugins/
- In the Admin control panel, goes to the “Plugins” page and activate the “xLanguage” plugin.
- Configure the plugin under the “Options” page.
- 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.































































March 8th, 2010 at 22:49
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???
March 4th, 2010 at 9:18
This works:
blablebliThis does not work:
blablebliblo blo bloWhy?
March 4th, 2010 at 6:14
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.
February 24th, 2010 at 15:27
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
February 20th, 2010 at 13:09
[...] 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. [...]
February 19th, 2010 at 22:48
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
February 19th, 2010 at 22:44
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
February 19th, 2010 at 20:53
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
February 16th, 2010 at 8:27
Yes. Seems that have some issues with Chrome.
February 15th, 2010 at 15:22
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
February 15th, 2010 at 13:42
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
February 12th, 2010 at 19:03
[...] 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 [...]
February 10th, 2010 at 23:32
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.
February 10th, 2010 at 3:17
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.
February 10th, 2010 at 2:05
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.
February 9th, 2010 at 3:00
[...] 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 [...]
February 8th, 2010 at 1:29
I cannot upload the widget to my navbar … it simply will not accept it … any idea why?
February 7th, 2010 at 22:46
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.