xLanguage (Wordpress Plugin)
Monday, January 21st, 2008目錄
|Contents
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.
這個WordPress plugin使你能夠用多種語文來寫Blog,同時讓讀者選最適合的語文版本來看。若你想完全將你的Blog本地化成多種語文,這個Plugin應該能應付閣下的要求。
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.
xLanguage使你能夠在以多種語言來寫Blog,同時讓讀者選擇他們想看的語言版本。這Plugin的功能可應用在Blog post、頁面、標籤、分類等等。讀者的選擇亦會對MO翻譯檔有效。
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.
這Plugin是以高度自訂化為設計大前題,歸根究底,閣下想架起一個多語Blog為的大概都是想給讀者一個度身訂造的環境吧?所以,語文設定的彈性是超高的,可容許不同語言交叉重疊。所有使用者介面的部份都已獨立出來,可通過Theme檔來直接重載,而絲毫不動Plugin檔。
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.
本Plugin的工作原理是利用W3C標準的<span lang=”..”>標籤把不同語言的段落標籤好,被存取時則利用XML parser按讀者需要的取出來。這Plugin也照顧到Permalinks和RSS feed。至於單行的資料例來Post的標題等等,只需利用一個簡單的方式改寫就可以實現多語功能。
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.
讀者的語言偏好是首先從瀏覽器設定測出來,繼而透過Cookie保存。本Plugin也提供了Widget和Template函數,方便讀者轉換顯示語言。
Please read on for the installation, complete usage guide, screenshots, comparisons and known problems. If you found this plugin useful, please consider supporting it.
這繼續參閱安裝程序、使用手冊、畫面截圖、同類比較和己知問題。若你覺得這個Plugin有用的話,請考慮支持一下吧。
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.
若你有想要的Template functions,或者有任何可以改進本Plugin的想法的話,請不要客氣,盡情提出吧!
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
v2.0.4 (r124177)
- A better handling logic about the parser log file failover.
- Updated robot list – code merged from the WassUp 1.7.1
- No need to upgrade if your installation has been working perfectly, although upgrading might bring SEO benefits as the search engine list has been updated.
v2.0.3 (r105104)
- A bug that causing infinity redirection loop is fixed (#23)
No need to upgrade if your installation is working perfectly. If you gave a try before and found that the URL generated does not work or causing infinity loop, please give another try with this.
v2.0.2 (r92141)
- Critical bug fixed: The SQL in get_pages_in_current_lang() is invalid (#22)
Please upgrade if your theme used get_pages() function.
v2.0.1 (r84024)
- New features: Now you can hide those post written in foreign that reader can’t read. See the updated user guide in the next few pages.
- Now it’s easier to put the flag icons! See the updated user guide in the next few pages.
- Support Wordpress 2.7.0
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
This plugin by Sam Wong is licensed under the CC-GNU GPL.

































































January 29th, 2008 at 5:54
I get the following error (top all pages) after installing xLanguage:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/../wp-content/plugins/xlanguage/parser.php on line 96
January 29th, 2008 at 8:29
I should have it fixed by now. Would you please verify the v1.0.3 for me please? Many Thanks for reporting.
January 29th, 2008 at 11:00
Thanks. That was the problem… I now have the latest version, and it fixes the problem.
January 29th, 2008 at 11:27
I get a fatal error when activating your plugin,
Parse error: syntax error, unexpected ‘&’, expecting T_VARIABLE or ‘$’ in /mnt/gs02/herd03/28321/domains/blog.tweedledeed.com/html/wp-content/plugins/xlanguage/xlanguage.php on line 607
I am running the newest version of your plugin and the newest version of wordpress. Please email me with any idea you may to why this is. Great looking plugin BTW.
January 29th, 2008 at 23:43
The same problem as Tony have. I am running the newest version of your plugin and the newest version of wordpress and get following error “Parse error: syntax error, unexpected ‘&’, expecting T_VARIABLE or ‘$’ in /home/redbridg/public_html/touree/wordpress/wp-content/plugins/xlanguage/xlanguage.php on line 607″
January 30th, 2008 at 0:28
Fatal error: Undefined class name ’self’ in /home/redbridg/public_html/touree/wordpress/wp-content/plugins/xlanguage/xlanguage.php on line 406
January 31st, 2008 at 6:16
for me this plugin just doesn’t work. I use the latest wordpress, plugin installs fine, languages set up as described, toolbar shows up, but it doesn’t do anything! any ideas?
February 1st, 2008 at 13:11
Nice plugin. I’m trying to make it work with Hebrew (which is Right-To-Left language). I disabled the auto-detection using browser because my site is mainly in Hebrew and detection doesn’t work well. You might want to add an option to disable auto-detection manually.
1. After installing I see that the buttons for RTL/LTR paragraph are missing in TinyMCE which makes it impossible to edit a document in both RTL/LTR languages at the same time. I modified tinymce-plugin.js to add an attribute while setting lang like this:
if (lang == ‘he’)
Do you have an idea why those buttons are gone?
{
e.setAttribute(‘dir’, ‘rtl’);
}
else if (lang != ”)
{
e.setAttribute(‘dir’, ‘ltr’);
}
It’s too buggy in Firefox (affects unrelated elements). I can’t fix this
2. For some reason I can’t make it work with the “|” splitter. I has to change to another splitter which works.
3. Widgets titles and built-in widget titles aren’t affected by translation for some reason.
4. There’s a need for some function to control translation of themes (with local text)
5. bSuite and InnerIndex (table of contents) cannot work with this plugin. If you can find a solution for auto-generated multi-language table-of-contents (based on tags) it would be great.
6. I’m looking for a way to clean multiple tags in TinyMCE. I find myself looking into the HTML code trying to fix the lang tags because it gets too messy in Firefox after working with a document for some time.
7. Category description isn’t working with the splitter for some reason. It can be used with more than one line but your code checks for “\n” which makes it not work. I had to hack the code like this:
//if (strpos($content, $this->options['split']) !== false && strpos($content, “\n”) === false) {
if (strpos($content, $this->options['split']) !== false && ! (strpos($content, “”) > 0) ) {
I also fixed some other issues with the category description. I use this field for display although it’s not really used by default with WordPress.
It’s got great potential if you can fix the bugs
Thanks!
February 1st, 2008 at 13:23
Missing html tags in my last comment:
5. (based on “” tags)
6. Correction is like this:
if (strpos($content, $this->options[’split’]) !== false && ! (strpos($content, “ “” ”) > 0) ) {
February 1st, 2008 at 23:59
[...] 暂时disable了xlanguage,有一篇一直显示不正常。 我觉得不该用parse xml来作这件事,但我也想不到更好的方法。 var blogurl=”http://leen.name/blog”; var needemail=”"; Name [...]
February 2nd, 2008 at 0:19
Amir:
I will try my best to solve the RTL problem.
Meanwhile, for the plugins/widgets problem, you need to insert the code
apply_filters('language', 'this_is_the_text|to_be_translated');in appropriate place, so xLanguage can filter the content.for Theme Translation, you could use the same apply_filters code at this moment. I will expose a shorter template function in the next version.
February 2nd, 2008 at 1:07
[...] The xLanguage plugin have got quite amount of feedbacks. Many thanks to [...]
February 4th, 2008 at 7:41
I was hoping this plugin is what I need. Sadly, it seems to be incompatible with several other plugins I use. Notably the pictures added on my main page (pure html with Lightbox2) produce “xLanguage parse error: not well-formed (invalid token):” error. Same error is visible on top of my “contact” page with a nice cforms contact form put there. After I turn xLanguage on, the contact form gets duplicated, and the whole page layout gets messy. Any idea how to make it work?
Cheers
February 5th, 2008 at 1:51
Hi,
after clicking activate plugin I’m getting:
Fatal error: Call to undefined function: register_sidebar_widget() in http://www.mydomain.hu/testing/wp-content/plugins/xlanguage/plugin.php on line 500
I use wordpress 2.3.2 and bbsync plugin.
Any suggestions?
February 5th, 2008 at 2:33
I’ve disabled that “xLanguage parse error” by replacing this line in parser.php
//$ret = ‘xLanguage parse error: ‘ . xml_error_string(xml_get_error_code($this->parser)) . ‘:’ . substr($this->content, 17);
$ret = substr($this->content, 17);
It appeared in my website in various places but it’s harmless as far as I can see.
Plug-ins compatibility can be a problem. I already edited some plug-in and others I had to disable (bSuit).
February 5th, 2008 at 14:36
monyoking: That’s very strange. Because register_sidebar_widget() to the way to get the xLanguage widget. On the other hand, can you use any widget on your sidebar? May I suggest you to double check your installation, in particular, make sure the file wp-include/widgets.php is in place.
Amir: it’s because the plugins installed doesn’t produce correct XHTML code, but the parser heavily depends on it. If your website can pass http://validator.w3.org/ XHTML1.0 Transitional with xLanguage turned off, there shouldn’t be any problem. I will include a log in the next version to capture the errors, so user can revisit the problem in the log, instead of showing this embarrassing message.
February 5th, 2008 at 20:12
Hi HelloSam, thanks for the fast reply, widgets.php is in place. I can use sidebar widgets, but I’m using k2 theme too, maybe it has something to do with sidebar widgets.
February 5th, 2008 at 23:47
[...] 多语言网站(尚未测试):http://hellosam.net/project/xlanguage [...]
February 6th, 2008 at 8:08
Mmmh, it seems, that the plugin not only has problem with “invalid” XHTML, but with some kind of characters or gaps in some places too. I can often reproduce Parse errors with the chars “:” or “(” immediately after the Span tag. Can anyone else confirm this behaviour too?
February 7th, 2008 at 5:14
Hi, there is a strange phenomenon after activating the plugin. Some (not all) of my postings are repeatedly displayed.
Using PHP 4. Any idea?
February 7th, 2008 at 23:27
Right. I have receive many reports about the repeat problem and will surely investigate and fixing it in the next update.
February 8th, 2008 at 8:20
Hi HelloSam, nice plugin indeed, works fine with the entry content and category names.
I am writing you because my posts also use the_meta content, but I can´t find the way to use the splitter or your scripts for the post-meta-key, to make them multilanguage too. Any sugestions will be more than welcome. Thanks in advance. And happy chinese new year!
February 8th, 2008 at 16:40
happy new year too! I like your Godess Quan Yin
February 9th, 2008 at 3:50
xLanguage needs K2 sidebar manager support.
February 9th, 2008 at 4:10
[...] no como antes que había uno en inglés (el principal) y otro en español. Ahora, gracias al plugin xLanguage, se puede leer el blog en 2 idiomas, desde los post hasta los [...]
February 10th, 2008 at 1:29
It’s a great plugin! Just what I needed
It took me a while to figure out how to use “apply_filters” to translate certain theme elements.
Here is the full code snippet:
February 10th, 2008 at 1:39
And one more try…
echo apply_filters('language', 'Author|Автор');
February 11th, 2008 at 9:08
If it is of any help, I also get repeat but there seems to be a patern.
example:
posts original
Line 1
Line 2
Line 3
Line 4
Line 5
then repeats
Line 3
Line 4
Line 5
then repeats
Line 4
Line 5
Continues till there is no more lines.
code is (with no tics:
‘Line 1
Line 2
Line 3
Line 4
Line 5′
No other language/translation in code.
Thanks great plugin once this kind of thing is worked out
February 11th, 2008 at 9:11
Sorry,
I hope the code shows up this time.
code would include
just before line 1 and would haveafter line5.February 11th, 2008 at 9:13
OK lol
It has the “span lang=…” before line 1 and “/span” after line 5
February 14th, 2008 at 19:51
Hi Sam, thank you for your great plugin! I wanted to ask you, if there’s any possibility to translate the post_name-field (post slug) with the single-line-filter option? thanks in advance… tommy
February 15th, 2008 at 13:25
Hi Sam, hopefully this will help you to solve the repeat problem. For me it only occurs when the break
tag is being use in the content. whenever there is a repeat line i will see</xLanguagePFebruary 16th, 2008 at 7:15
I am interested in getting this plugin modified for SEO as well, are you interested in upgrading and fixing the bugs for some $ and at the same time having a better language plugin? Please contact me.
February 18th, 2008 at 5:11
[...] Monday, February 18th, 2008 As I have mentioned in the eariler post, I was working to fix some critical bugs and at the same time putting some more features into the [...]
February 18th, 2008 at 7:34
Thanks alot for your plugin!
One question though: Is there a way to stop the plugins work for a certain page?
(One page here (a monoslideshow in it) needs a certain url and gets confused handling “/lang/de” or “/lang/en”.)
cp
February 18th, 2008 at 10:00
[...] This morning, i have an idea. I want to make this site as a multilanguages site. So, i searching for some wordpress plugins. There are a lot of plugins. I am trying to select it. And i get this one. [...]
February 19th, 2008 at 5:17
1. The usage guide has been updated, with lot more information, should worth a read. May I also take this chance to ask you to turn on the Feedback system, if you are using > v1.1.0?
2. There was a deployment bug in v1.1.0 that I should have caught earlier, blocking all new installation. Now fixed.
February 21st, 2008 at 11:06
[...] i want o add plugins for myblog, searching this and that and i found xlanguange plugins form wp in here and there. i try to adding the plugins in wp, but when i activated error appeared. i retried to [...]
February 22nd, 2008 at 17:40
when I add relative URL in tags, the it gets confused with “/lang/en”.
e.g. current url: http://www.abc.com/level2/lang/en
URL in : level2a
The result turns out http://www.abc.com/level2/lang/en/level2a NOT http://www.abc.com/level2/level2a/lang/en
Is it any way or settings I can fix it? Thanks.
February 25th, 2008 at 19:15
hi Sam, thanks for this great tool. In my case it does work well, apart from the small icons next to the language names. They show up only for English. If i add other languages, there is error. Any idea what’s the issue here? please take a look at http://www.yeongumaru.com. Thanks. Dom
February 26th, 2008 at 19:02
Dom: In the plugin package, it includes a PSD file which is used to draw the English icon. You are feel free to use it and draw the others for yourself as you like. It’s just so hard for me to come up with the design for every languages for every blog
February 27th, 2008 at 23:19
Great Plugin!
I still have one small problem. I use the breadcrumb navigation plugin (http://sw-guide.de/wordpress/plugins/breadcrumb-nav-xt/) aswell. Now when displaying the breadcrumbs, I get this effect: “germantitle|englishtitle” instead of either “germantitle” or “englishtitle”
…
Is there a way to solve this problem?
Thanks!
chlori
March 1st, 2008 at 4:12
[...] xLanguage otro plugin muy completo para disponer de tu blog en varios idiomas a la vez, de forma total. [...]
March 1st, 2008 at 20:19
I get this error:
Warning: fopen(/path/wp-content/xlanguage-parser-19824958371540390088.log): failed to open stream: Permission denied in /path/wp-content/plugins/xlanguage/admin.php on line 134 Warning: fclose(): supplied argument is not a valid stream resource in /path/wp-content/plugins/xlanguage/admin.php on line 135
It is a new wordpress installation with no other plugins activated.
March 2nd, 2008 at 12:54
I have fixed the error by chmod. I think the plugin does not work, because I do not see the toolbar for it when I write. And when I create categories and use | I don’t get different versions when I pick language.
Here is my test site: http://d21306.u40.imountain.com/?cat=1&lang=en-us
Thanks
March 7th, 2008 at 13:33
Hi Sam,
great plugin!
but… (you might’ve expected this:-):
how do I manage the tags? I’m using the Configurable Tag Cloud Widget (http://reciprocity.be/ctc/) and like to see the xLanguage also in this tag cloud.
Thanx in advance!
Volker
March 10th, 2008 at 1:17
Hello, works just fine now, but you have forgotten the blogroll categorys. Even if i use “|” for splitting english and german, the Categorys of my Blogroll won’t be translated. I always get both languages…
Thanks, Timo
March 10th, 2008 at 23:19
Great plug in! But I too am having a few problems with the English tags.
Cheers,
Tristan
March 11th, 2008 at 0:40
All your comments are heard. Thank you very much.
Tags is tricky because the way that Wordpress handle it. Please allow some more time for me to find a solution.
Timo: For the blogroll category, opps I have forgot to add it. This can be fixed in the configuration without upgrading. Please go to the Options tab (3rd one) of the xLanguage options page, then add “,link_category” to the Filter Hooks -> text, then the blogroll will be processed automatically.
March 13th, 2008 at 2:41
“For single line content, please adopt the single line filtering mode syntax.” but I don’t see any examples of how to use this “single line filtering mode syntax”.. can you provide an example please?
Thank you!
March 13th, 2008 at 15:22
Absolutely brillian plugin. I just got version 1.1.5 and it installed and configured like a breeze. I’m using it for an international art gallery — latincollector.com. My question for you is about the dates showing up in the archive selector generated using wordpress’s internal wp_get_archives() call, the months I am getting are not coming back in spanish. I can do a kludge fix for this inline, but was hoping it was something the plugin has already covered.
Thanks again! Once I get my check for this job I’ll be sending you a paypal contribution.
March 14th, 2008 at 1:51
Hello Sam
did it possible adaptive plugin for working with SEO TITLE plugin? http://www.netconcepts.com/seo-title-tag-plugin/
Like i understand need add filter, yeah? But where? Can you help?
March 14th, 2008 at 3:31
Another big problem – encoding
like many other i use UTF-8 encoding for wordpress
this mean my files in template save as UTF-8 encoding because they have russian text
So, your plugin output text in ANSI encoding and not UTF, of course last version IE and other browsers understand correct encoding and transform text for correct view but if you look into HTML code you see problem. Of course use not english text – example i have problem with russian.
March 15th, 2008 at 1:46
To use with seo-title-tag is easy, In the line that reads,
… if (function_exists(’seo_title_tag’)) { seo_title_tag(); } …
Change it to
… if (function_exists(’seo_title_tag’)) { apply_filters(‘localization’, seo_title_tag()); } …
On the other hand, xLanguage is not aware of the encoding. It is basically doing thing blindly in ASCII (that’s how PHP work), so any ASCII compatible encoding should work, including UTF-8, which is the default. I am pretty sure Russian is covered by the UTF-8, and if you are not using it, I strongly suggest you to.
My blog is running in Chinese and English, absolutely no problem. I don’t think Russian can be more complicated than Chinese in terms of encoding. Please let me know if otherwise.
March 15th, 2008 at 16:09
Ok Sam thanx for SEO title
Now about encoding;
look to HTML sourse at [Link removed per request]
i use editplus editor(editplus.com) for html code and what i see:
Телефоны SEO компании|How to contact
But here can be Телефоны SEO компаний|How to contact
If i disable xlang plugin in html sourse all text and encoding is ok like can be.
Here is 100% problem with encoding
March 15th, 2008 at 22:28
Opps. I think I have made an mistake that you have figured out already.
For seo-title, you should modify the end of seo_title_tag() functions that apply_filters on the $title variable.
like echo wp_specialchars(trim(apply_filters(‘localization’, $title)), true)
March 16th, 2008 at 2:47
Sam, thanx for help with Seo title plugin.
Here is manual.
Open seo-title-tag.php and found … echo wp_specialchars(trim($title), true); …(608 line)
replace to:
… echo wp_specialchars(trim(apply_filters(‘localization’, $title)), true); …
Now use | like usually for title
March 16th, 2008 at 17:18
xLanguage plugin has greatly helped me, because I’m writing my blog with Chinese, Japanese, and English. I was looking for a plugin like this, I’ve tried gengo and jLanguage, which are not quite satisfying my task. But xLanguage is far more than I can expect a multilingual plugin can be. It solved all my problem once for all. I can see you are thinking deeply for the user’s need. Thank you so much for creating such a excellent plugion for wordpress.
March 17th, 2008 at 3:34
I really like your add-on but I don’t understand one thing: how do I see only the articles available in the selected language. I wrote in two languages but I think it is not quite a good ideea to show all posts for all languges.
March 17th, 2008 at 5:01
Sorin, I am afraid I have to disappoint you. xLanguage cannot do that, and there is no plan in implementing that yet. It need a very great effort to implement–
March 25th, 2008 at 0:48
Hi Sam,
first of all I have to shout out a big THANK YOU for this great plugin! It really fits my needs for multilingual blogging best. Donation will be on the way soon.
With the instructions you gave I was even able to hack the built-in plugins (Meta, Categories, etc.) in wp-includes/widgets.php to become multilanguage. Is there a more generic call to the widget-title somewhere in the plugin-system, so one doesn’t have to add it to every single widget title?
There only remain two problems:
1.) I am using the plugin ‘TinyMCE Advanced’to activate the advanced capabilities of TinyMCE. Unfortunately I can’t add anything to the 2nd toolbar, because then the xLanguage buttons will be wiped out and will only come back when I de-activate and re-activate the TinyMCE plugin.
But that’s only a minor point, more interesting is:
2.) Whatever I do, I can’t get the_date() to be multilanguage. If I deactivate xLanguage and set ‘WPLANG’ in wp-config.php, my monthnames are converted. With xLanguage activated, all language-specific date- & time-settings are ignored, the ones under Options->General always take precedence. I experimented with the filter hooks for xLanguage and by trial-and-error I can confirm that they do what they are supposed to. EXCEPT date_format and time_format which are hooking to pre_option_date_format (pre_option_time_format respectively), I can do with them what I want, nothing changes. Adding the_date() and the_time() as hooks anyplace else also doesn’t solve it. I also tried to this in my index.php:
filter_actions(‘localization’,the_date());
but to no avail.
I am suspecting, that since the generation of the date/time is done via a PHP-call, one needs the proper locales server-side.
More so, because the ‘WPLANG’ translation seems to come from a language specific MO file.
I wil further investigate this and would be happy about any feedback from your side.
Keep up the good work!
Cheers, Falk
March 25th, 2008 at 1:32
Hi,
first, thanks for thsi great plugin. But i have a big problem with it. When trying to include so Flash-Content to a post, the xLanguage-Plugin does not work any more. Is there a known issue while combining flash content with the xLanguage Plugin? Is there a workaround to fix this?
Thanks
Thomas
March 25th, 2008 at 10:21
Hi there,
great plugin. Works like a charm, setup was easy and the documentation is well-written.
But I’ve one question: I’d like to use a localized version of the kubrick theme (german). For this, I downloaded the localized version of the kubrick theme from de.wordpress.org, uploaded it, and switched from the normal kubrick theme. Thing is, as long as the xLanguage Plugin is activated, the localisation of the german theme seems to be broken. As soon as I deactivate xLanguage, localisation kicks in.
In the category template (where I started to search for the problem), I noticed this difference:
normal template:
Archive for the ‘’ Categorytemplate with localisation:
the __( function should be part of the gettext framework that is used by Wordpress to translate the contents, but I don’t have any clue how this could interact with xLanguage. Any ideas?
Of course I could “simply” translate the whole theme again, but I’d rather like to use the already translated templates, which would save me a lot of time.
with best regards,
Lars
March 25th, 2008 at 10:23
sorry, looks like the example code got broken. Another try:
normal template:
<h2 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h2>template with localisation:
<h2 class="pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'kubrick'), single_cat_title('', false)); ?></h2>March 25th, 2008 at 21:20
Hi, Sam! I’m curious.. I want my date/timestamps to output from the database in the respective language.
what is the best way to accomplish this?
how can i get your plugin to call setlocale() for the approriate language?
March 25th, 2008 at 21:46
Wow. Here I get a 4, 5 replies in two days about WP_LANG, SetLocale, MO file, __(…) issue. I have to admit that it’s one of the weak area not being tested well, so sorry for the trouble caused.
This plugin is planned and designed to be compatible and actually work well and integrated smoothly with the MO translation, including the month and year date localization. But from the feedback, it turns out it doesn’t work expected. I am sorry that my schedule is a bit tight over this week, but I will surely look into these problems over the weekend to have it solved.
Stay tuned!
March 25th, 2008 at 23:49
Hi Sam,
there’s definitely no need for apologies
You put a fair amount of work into this plugin & right now it is the best at the task of multilanguage blogging in Wordpress. I also have to salute you for the extensive commenting of your code, although I only took a quick glance at it. Right now my priority is finishing the hacking and themeing of my own Wordpress installation (including the attempt to add more formatting options to PHP SmartyPants, underlying of wp-typogrify), but when I’m finished I am more then willing to help you out with any feedback and testing I can provide.
Cheers, Falk
March 26th, 2008 at 12:16
How do I get xLanguage to convert a WP Page?
I wrote my WP Pages in total as a regular php/html page and made them into WP page templates.
In WP, i just created blank PAGES with the approriate php page
if you can imagine it’s a few hundred lines of nested divs, tables, and what not. Two copies pasted one above the other: one French, one English.
they have the tags
andaround the entire nested div structures. like this:french>
french>
english>
english>
but it doesn’t do the trick!
how should i be using this?
March 27th, 2008 at 2:05
Hi Sam
I found a workaround for the_date();
setlocale(LC_ALL, 'fr_FR.UTF8'); //french
echo strftime( '%A, %D', strtotime(the_date('Y/m/d', '', '', FALSE)) );
lol. it works.
of course, you decide how you want strftime to do it’s thing.
i haven’t investigated fully as yet but you may have to use the single line filtering mode syntax to get the date to display grammatically correct for both languages.
if i knew how to ask what the current language was I would do something like this in my header:
if (currLanguage == french){
setlocale(LC_ALL, 'fr_FR.UTF8','FR') //english
}else{
setlocale(LC_ALL, 'en','EN') //english
}
how can i test for the current language?
March 27th, 2008 at 4:22
Hi,
Falk Koziol hinted that he was able to modify the widgets.php file. You would’nt by any chance have an example you could share?
Cheers
James
March 27th, 2008 at 20:44
Falk made a several attempts in posting the comment. I must thank for his effort. But because the system messed up his code somehow, I deleted his comment post on his request.
Animan: use xlanguage_current_language_code(). See xlanguage/template.php for details. (Well, there isn’t many details..just call it and it returns the current lang code)
James: You might want to look at the Page 4, Widget Title Customization. It should have everything you needed.
March 29th, 2008 at 19:14
Hi
Just wanted to thank everyone who took the time to reply. The explanations were clear and I was able to update my widgets.php file without breaking my site!
Cheers again
James
March 30th, 2008 at 6:26
Hello Sam..i have some problems installing this plugin..
i’am using wp v2.3.3
when i want to activate this plugin in the admin screen, it is written “Warning: fopen(/home/a5519167/public_html/wp-content/xlanguage-parser-11270409371712294128.log) [function.fopen]: failed to open stream: Permission denied in /home/a5519167/public_html/wp-content/plugins/xlanguage/admin.php on line 135
Warning: fclose(): supplied argument is not a valid stream resource in /home/a5519167/public_html/wp-content/plugins/xlanguage/admin.php on line 136″
what’s goin on here sam? could you tell me how to fix this problem? thank you very much..
waiting for your reply
March 30th, 2008 at 18:08
@ash-ray: I had the same problem. You can solve it by changing the write access of your wp-content directory, making it writable for the web server.
1. with ssh access:
cd /path/to/your/wordpress/directory
chmod a+rwx wp-content
2. with your ftp program: there should be a possibility to change access rights; there would be rights for read/write/execute
for the user, groups, and others. You would need to set all three rights for all three groups. It would be a good idea to do that NON-RECURSIVE, meaning you only change the directory itself, not all the files within
This should be considered a workaround, as it might not be a good idea to give write access to that directory in general, but it works. Maybe HelloSam can give you a better/securer solution. (I ran into the same problem, btw)
March 30th, 2008 at 18:32
Hi everybody,
Thank you for this interesting plugin, after trying it a little while, I get used to it now.
As anyone (like me) also tried the wordpress 2.5 release ? I have just did it and have a little trouble in the admin part : I cannot see the xLanguage toolbar when writing a post.
Do you have the same problem ? Would you have a little hack to get it back ?
By the way, Sam, if you are in Beijing at the end of the Olympic Games, we’ll be finishing our Paris to Beijing trip by car, we will welcome you
http://challengelogan.free.fr
March 30th, 2008 at 22:17
I’m having the same problem:
Any one have the solution?
Thanks for the plugin!
March 30th, 2008 at 23:23
If anyone has a solution please tell us
April 1st, 2008 at 0:16
Thanks LGW for your instant reply..^_^
You helped me, my problem was solved
but, i have another problem, same with Antonie and Bio, I cannot see the xLanguage toolbar when writing a post..
i need your help buddy, how to fix this problem..
Thank you very much
regards,
April 1st, 2008 at 4:50
It took longer then I expected to make xLanugage to be compatible with WP 2.5. As they have upgraded the TinyMCE from v2 to v3, the whole thing and API is just gone. Anyway, here it is! I didn’t do a full blown test on it yet so be sure let me know if you have catch any functionality bug on WP 2.5. At the meanwhile, the interface surely need some adjustment.
Because of that…I havn’t looked at the date_time, locale problem yet. I will take care of this ASAP. Sorry to have you waited.
April 1st, 2008 at 13:01
Bug report:
After I upgraded to version 1.2.0, the visual editor was disappeared.
Before that in 1.1.5, it’s fine just without xLanguage buttons.
April 1st, 2008 at 13:09
Add some information:
The bug happened in WP2.5, browser is Firefox 3.0 beta5pre
Visual editor disappears when xLanguage is enabled.
Works fine in Opera and other browsers ,though.
Could be a bug of Firefox :b
April 1st, 2008 at 13:46
There is another thing that bothers me is that:
When I deactive and re-active xLanguage again (like plugin automatic upgrade is WP2.5), the permalinks will be broken, and all contents with “lang” in the URL will become 404. It can be recovered by deleting all languages information, and input them again.
Not a serious problem, but please have an eye on it when you have time.
And a question:
Would you please to tell me how can I make xLanguage to filter the content when I’m using self-edited PHP and text and HTML widgets OR K2 sidebar module? I tried to input contents with language span tag but it won’t work. Only the title works, not with”|” but with span tags. It’s confusing me. ^^b
Thank you for updating this plugin in first time when WP is upgraded. And please take your time. Good luck.
April 1st, 2008 at 17:14
extvia: I had the same problem, but it was solved by rebuilding the permalink structure. I did not have to delete any language information. I did however loose the language buttons in the editor, and have not been able to recover them as of yet.
Thank you Sam for a nice plugin
April 2nd, 2008 at 3:01
Two bugs fixed: the JavaScript and Permalinks problem. Could someone check with Firefox 3 for me?
the IE7 coloring has been broken though…I have yet to trace when was it broken.
April 2nd, 2008 at 13:53
Permalink : OK
TinyMCE under Firefox 3.0 beta 5 : OK
Filter works fine widgets, so I use widgets instead.
Thank you very much for the quick respond!
April 2nd, 2008 at 19:37
hi, have you ever thought of including the famfamfam flags into your plugins? have a look here: http://www.famfamfam.com/lab/icons/flags/
i think i’m giving you’re plugin a try since jlanguage seems not to be updated anymore.
werner
April 5th, 2008 at 18:45
I want to make this plugin work.
Perhaps I have a conflict with another pluging? (My setup is quite clean.)
On the first install, I was able to set the first language. Then something went wrong (??) and I can no longer change the setiings in the Admin panel (for the xLanguage).
No longer anything is being written to the database. (I deleted the first entry in hopes of re-installing it.)
Would gladly send you some beer money.
April 6th, 2008 at 6:09
OK, I did make it work, but somehow I had to install WP-SuperCache first.
Thanks for the awesome plugin. As promised, I just bought you a beer. Cheers, yum bui.
April 7th, 2008 at 2:47
I’m having some odd parsing problems with xLanguage using WP2.5 and latest xLanguage. Trying to add a Japanese translation of a post causes a parsing error, but I’ve reviewed the source many times and it’s perfectly valid (and very simple) XHTML. The error details do not point to a tag but shows odd characters that are not in the text, so it looks more like an encoding problem but I don’t know WP and xLanguage well enough to really start investigating it from that angle.. Any help?
(sorry to not point you to the blog, it’s meant to be for the family only)
April 7th, 2008 at 3:40
The bug that caused the_date(), the_time() the working is fixed. More details in the tutorial page.
April 8th, 2008 at 16:24
Hi, Sam
Any ideas where I can find a US English .MO file?
I’ve tried looking everywhere. I thought maybe you know where I can find one.
April 8th, 2008 at 22:39
Hi
I update the plugin to the latest version and get the following error on my widget page: %BEG_OF_TITLE% %END_OF_TITLE% in place of where the list of widgets should appear.
If I deactivate the plugin I do not have the error
Tks
James
April 9th, 2008 at 17:15
Hi! Quite perfect and useful plugin.
How can I make Xlanguage compatible with Cforms ][ (http://www.deliciousdays.com/cforms-plugin/) plugin?
I did not find the codes you mentioned in Filter Hook Section.
Thank you,
Luca
April 10th, 2008 at 1:01
I’m trying to make this work. I created french and english. I tried using the | to write wome french|english parts but I can’t test the english part.
Am I suppose to see some link or dropdown list on my site which offers the reader two languages?
Guess I’m missing something hehe.
April 10th, 2008 at 1:24
Daniel, you will at the very least add the xLanguage widget to your sidebar.
Then you might want to do some theme customization as mentioned in the usage guide (2).
April 11th, 2008 at 21:57
I use wordpress 2.5 (downloaded it today) I am trying to make xlanguage to work. I have activated the plug-in and added two languages. When I create a new post nothing appears, there is nothing extra in the tool bar. I think that I followed the instructions, but, obviously I have done something wrong.
Do I have to add .MO files at all?
The only thing I want is to have the possibility to write the post in three languages, and the possibility of the reader to switch to the one it suits them better.
I hope someone can give me a hand, thanks in advance.
Sam, do you have Paypal?
April 11th, 2008 at 22:35
I still can’t figure out how to “add the xLanguage widget to my sidebar”. Do I have to edit some of the Word Press source files?
Sorry if I sound noobie… in fact I am
April 12th, 2008 at 9:52
[...] an existing CMS is a difficult thing, since there are so many text-based elements to deal with. xLanguage provides a simple method for posting multilingual content. The user writes all the content into one [...]
April 12th, 2008 at 16:43
Like Guillermo, I also upgraded to 2.5, and the xLanguage toolbar doesn’t show in the “create new post” window.
April 12th, 2008 at 23:19
Well I’ll be darned. It wasn’t working with FF this morning, and I tried IE7 and it worked. Now it also works with FF. Weird, but as long as it works I’m happy!
April 13th, 2008 at 4:09
Hi
your wp plugin looks great. i have been experimenting with it and i was wondering if it is possible to set the language to be shown like this:
“domain.com/lang/en/content.html”
instead of:
“domain.com/content.html/lang/en”
…would contribute if this is possible
April 19th, 2008 at 3:50
Hi there,
first of all, big kudos on the plugin you released. Its great!!
Im looking at the files, and i cant seem to find WidgetHelloSam, which widget extends… could you tell me where i could find the file? I do get an error sometimes where such file couldnt be found…
regards.
April 20th, 2008 at 16:30
Man, your plugin works great.
It took no time to change from polyglot to xlanguage
April 25th, 2008 at 1:51
Hi,
I love your plugin a billion!! Unfortunately the single line filtering mode doesn’t work with “Wordpress Navigation List Plugin NAVT”
–> http://wordpress.org/extend/plugins/wordpress-navigation-list-plugin-navt/
Many greetings
Igor
April 25th, 2008 at 2:37
can you combine xlanguage with a dropdown menu plugin?
April 25th, 2008 at 4:27
Hallo there, thanks for plugin.
I’m trying to use last version of xlanguage on wp 2.5.
I can correctly add languages and tag content but on the pages / post I can’t see any way to change language…can you help me?
Best regards.
Fabri.
April 25th, 2008 at 4:56
Sorry I had to add Language list.
Here is an issue: If I write a page and correctly tag it into my 3 langs I cannot set it as “Front page displays” as a static page.
When I surf http://www.mydomain.com the language list is “www.mydomain.com/?lang=en” and “www.mydomain.com/?lang=fr” and “www.mydomain.com/?lang=it” but when I click on one of these links, I get “Not Found Sorry, but you are looking for something that isn’t here.”
Any help appreciated.
Best regards.
April 25th, 2008 at 13:27
@Fabri
Click on Settings in the Dashboard and select PermaLinks. Make sure that the “Default” option is selected. I have noticed that if I change it to anything other than Default I run into the same problems you are describing. Hope this is helpful.
Kamal
April 27th, 2008 at 0:07
Hi,
Just came across your mod. It definitely looks great, and I’m planning to use it. But I was just wondering if your latest version is also compatible with version 2.51 of wordpress. On the wordpress plugin website it says only compatible to wordpress 2.5.
Hope to hear something from you soon.
Thanks again for offering such a wonderful mod. Keep up the great work
.
April 27th, 2008 at 3:39
Hi !
Thank you very much for your work and great plugin. I found it very usefull and flexible.
I don’t seem to find a way to make it work for the text widget aereas, (I wnt this free text I put on the sidebar to be localised as the rest of the blog). is there any way to do this ?
Thank you very much in advance
April 27th, 2008 at 9:07
Found another interesting plugin, which you might want to consider to copy some features from:
http://www.qianqin.de/qtranslate/
Instead of tagging the language in the text box. Why not make tabs so each has its own input box for the language? See the example in the mod I mentioned above.
April 27th, 2008 at 17:06
@niki:
qtranslate has lot of javascript errors on wp 2.5
April 28th, 2008 at 8:54
There’s a bug making posts show both languages at the same time. It’s caused by the following phrases:
*p align=”center”**/p*
OR
*p align=”right”**/p*
OR
*p align=”left”**/p*
(replace the * with appropriate brackets)
I had to mass replace them all using SQL and problem was solved. It happens when there’s no text between the opening “p” and the closing “p”. TinyMCE sometimes generates them so it can be a pain if you don’t know how to deal with it. I’ve just had some time to upgrade to v1.3.0 (not fixed) You’re doing great work here Sam.
April 28th, 2008 at 21:36
Thanks for reporting and the comments.
I will look into the bugs you guys reported but I am afraid it might take some time.
April 30th, 2008 at 17:08
Hi Sam,
Great plugin! My only question is if there is any way that you can tag a whole Post so that the Post will not show up at all if another language then the one that the Post is written in is selected? For example, lets say that I have English and Spanish on my site. I write a Post and tag the text/html in it as English. Then I do not want that Post to show up at all if I have Spanish selected as current language. Is there any way to do this at the moment or will I have to add some kind of php-parser that checks if a post contains the current selected language? Is it only me missing something? Or if not, do you have any hints on how I could solve my problem?
April 30th, 2008 at 22:54
Hi Sam,
while using Static Page with xlanguage, WP tries to load the post instead of page after clicking on the dedicated page link.
With Version 1.2.4 it works fine.
Thanks,
Igor
May 1st, 2008 at 3:12
Hi There,
First of all, great work that you’re doing!
I’m trying to use your plugin but I’ve come across to some issues and although I’ve read your guide many times, I can’t figure that out.
2- My template has the following code to create the menu:
<li class="current_page_item" ><a href="/">Home
How can I change the “Home” option if it is hard coded? This option is not coming from WP so I can’t use the plugin as the guide describes.
Thanks and any help is appreciated.
Marc
May 1st, 2008 at 4:16
Hi Sam
I’m trying to set up a bilingual blog (welsh and english) and your plug in looks like its going to be invaluable.
I’ve installed the plugin and amended the theme to include the language choice in the sidebar, but I’m a little confused as to how to get a different template to display according to the language selected. I’m guessing that I build this into my theme, with different header and footer files for each language. I can put those together, but how do I get Wordpress to identify the chosen language?
Any help would be much appreciated.
many thanks
May 2nd, 2008 at 4:50
I think I have the same question as Stef.
The WP theme that I’m using has some words hard coded for example, take a look at the right hand side nav with the tabs:
http://freshnews.premiumnewstheme.com/
How can I translate the tabs (Popular, Comments, Featured, Tabs) ?
Should I create a diff theme with the words translated for each language?
Thanks!
Marc
May 2nd, 2008 at 5:30
Hi Sam/Marc
I thought I’d found a solution – putting an if/else statement into index.php, page.php etc in the theme:
if (xlanguage_current_language_code("cy")) {include (TEMPLATEPATH . "/headerc.php");
}
else {
include (TEMPLATEPATH . '/header.php'); ;
}
so headerc.php would be the welsh version of the header. This worked once but then gets stuck on one language version – the welsh one in this instance. I’m sure there’s a better way of doing it, but my php skills are a bit rudimentary.
Any help would be much appreciated.
Thanks
May 2nd, 2008 at 9:25
Hi There,
I used this on my header:
It works and I hope I could be helpful...
May 2nd, 2008 at 10:51
Hi Stef,
There are several approaches for localizing theme:
1. If it’s just word changes, or some other minor phrase, the best way would be obtain the .MO files from the theme author to do the translation in the WP’s way. (See WP document for more details about the localization support). xLanguage in this role is to select the correct language depends on user’s language selection, so that the correct MO file will be applied and presented.
2. Your approach is Okay too. the code should actually be
if (xlanguage_current_language_code == "cy") { ... }3. If there is lot of changes, the best way would be create two (or more) independent themes, that’s it, a whole new theme with their very own folder. Then in the “Advanced” options of xLanguage, you can choose to use assign that theme for a different language.
May 2nd, 2008 at 18:25
Hi Sam
Thanks very much for getting back to me. I’m clearly going to have to buy you a lunch or two.
Your third option – to create two separate themes, one in each language – worked perfectly. I’d missed that in the documentation so thanks for the pointer. Option 2 didn’t seem to work even once you’d cleaned up my terrible php – I have a feeling it has to do with the info generated by header.php being held in cache, but I could be wrong.
The other problem I have is that the site is a mix of pages which are generated by Wordpress and pages which sit outside of WP. On the ones which sit outside of WP I include a couple of bits of info from WP – list of current news, list of pages etc so I use
on those pages I’m getting an error:
Warning: Cannot modify header information – headers already sent by (output started at /home/site/public_html/index_1.php:4) in /home/site/public_html/news/wp-content/plugins/xlanguage/xlanguage.php on line 222
A search on Wordpress reveals that these errors are often caused by spaces in php files, but that doesn’t seem to be the problem here. It seems that xlanguage is trying to modify the header info, to set/read the cookie.
Is there any way of getting around this?
Thanks again
May 3rd, 2008 at 3:53
Hi Sam,
Do you know if there is any incompatibility between the xLanguage plugin and WP MU?
Thanks and keep the good work!
John Lancaster
May 3rd, 2008 at 12:45
I just tried to do something in 1.3.2 to store the parser log in user’s folder. And because xLanguage does not modify DB schema, I believe it’s safe to use in WP-MU now, although I didn’t test yet
.
Please let me know if you have deployed it.
May 3rd, 2008 at 19:18
Hey,
maybe it’s because of wordpress’ new version, but on top of my admin page, i get:
Warning: fopen(//wp-content/uploads/2008/05/xlanguage-parser-1618593827213996771.log) [function.fopen]: failed to open stream: No such file or directory in /wp-content/plugins/xlanguage/admin.php on line 141
Warning: fclose(): supplied argument is not a valid stream resource in /wp-content/plugins/xlanguage/admin.php on line 142
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/xlanguage/admin.php:141) in /wp-content/plugins/xlanguage/xlanguage.php on line 222
May 3rd, 2008 at 22:51
Hi Sam,
after checking the 1.3.2 version and the going back to 1.2.4 i am getting following message ont he top of the page:
Warning: fopen() [function.fopen]: Unable to access /domains1/ws504100/public/www_root//domains1/ws504100/public/www_root// in /domains1/ws504100/public/www_root/wp-content/plugins/xlanguage/admin.php on line 134Warning: fopen(/domains1/ws504100/public/www_root//domains1/ws504100/public/www_root//) [function.fopen]: failed to open stream: No such file or directory in /domains1/ws504100/public/www_root/wp-content/plugins/xlanguage/admin.php on line 134
Warning: fclose(): supplied argument is not a valid stream resource in /domains1/ws504100/public/www_root/wp-content/plugins/xlanguage/admin.php on line 135
Any Idea wat went wrong?
If I stay on Version 1.3.2 it works, but ofcourse other thing does not work than. So I am compeled to use the old Version 1.2.4
May 4th, 2008 at 4:04
Hi Sam,
is it possible to uninstall xLanguage completely just to start from the very beginning? Where do you save all the pre settings like the title for the widget?
Thanks,
Igor
PS I miss my other posting I published today.
May 5th, 2008 at 3:02
[...] testing xLanguage, a plugin for Wordpress. If it’s working ok, you should see this text in english, and nothing [...]
May 5th, 2008 at 20:00
Hi Sam,
I still experince the static homepage bug in the version 1.3.3.
Thanks,
Igor
May 5th, 2008 at 22:19
hi there,
as I am still looking for the perfect plugin to use, could you also compare to this plugins please:
http://wordpress.org/extend/plugins/qtranslate/#post-4547
and this:
http://www.poplarware.com/languageplugin.html
thank you very much.
May 7th, 2008 at 1:59
Nice plugin i am also still looking if anyone has other examples?
May 7th, 2008 at 2:01
My blog give me an error, but only in the english version (the default is the spanish)
Fatal error: Cannot redeclare mw_recent_comments() (previously declared in /home/s03370b1/public_html/blog/wp-content/themes/redie-30-es/functions.php:7) in /home/s03370b1/public_html/blog/wp-content/themes/redie-30-en/functions.php on line 131
links:
spanish: http://www.drlupu.com/blog/lang/es/productos
english: http://www.drlupu.com/blog/lang/en/productos
May 7th, 2008 at 22:37
lupu: Please check the theme code and make sure they are totally separated. i.e. you didn’t hardcode any include path.
ovidiu: xLanguage is a direct successor of LanguageSwitcher. qTranslate handle it differently, I also doubt if it needs to modify the DB schema.
St Louis Missouri News: What kind of example you are looking for?
May 8th, 2008 at 0:18
Hi HelloSam, I have fixed it, the problem was that I use the same (but different folders) theme for the two languajes, and it get some functions declared two times. (I deleted the functions from the non-default theme functions.php and now its working 100%)
Now, I have a question. Can we get the widgets titles translated?
May 8th, 2008 at 17:21
Hi Sam and great work with this plugin ! I’m using it on multiple WordPress websites. I’m working on having a multilanguage tumblr (i’m using their Api) and would like to use your parser just to strip the html tags that don’t have the good ‘lang=”en”‘ language set. I tried to player with parser.php but it didn’t give anything. I tried tu user the filter() function but couldn’t find what to put in the third argument.
I was wondering if you could give me an idea how to use your parser in the right way ?
Thanks a lot !
May 10th, 2008 at 5:48
Great plugin Sam, thank you!
Id also like to ask if you could tell me what is the php code to call the xLanguage on the theme without using widgets.
May 11th, 2008 at 20:00
Hi Sam,
There seems to be a problem with month names. For some reason they always appear in their English form when viewed in post’s dates, comment’s dates, etc.
When xLanguage is disabled WordPress takes these variables from the .mo language file which defines ‘January’, ‘February’, ‘March’, etc. as strings that can be translated. This ability is lost with xLanguage. Any idea why this happens?
May 12th, 2008 at 4:06
[...] websites including recykinfo.com and artdecomontreal.com. As I’ve written about recently, the xLanguage plugin was a great replacement to Gengo, it seemed more flexible, not relying on edits to the database and [...]
May 12th, 2008 at 14:01
Inconsistencies of locale code with localized versions of WordPress: Most if not all WordPress localized versions are using the underline “_” instead of the hypen “-” for their .mo and .po files. This is a serious problem because xLanguage doesn’t allow them (only the form of xx-xx and not xx_xx).
Examples: French: fr_FR, German: de_DE, Swedish: sv_SE, Italian: it_IT, etc.
For xLanguage you must use fr-fr, de-de, sv-se, it-it, etc.
Why is that a problem? Because you can’t use the same translation .mo file for both Admin Panel and your website. The Admin Panel is looking for the locale defined by the WordPress locale (“fr_FR” -> “pluginName-fr_FR.mo”). Your front-end website is looking for the locale defined by xLanguage (“fr-FR” -> “pluginName-fr-FR.mo” or worse “fr” -> “pluginName-fr.mo”).
pluginName-fr_FR.mo isn’t the same as pluginName-fr-FR”. This is a serious problem for all localized WordPress versions that follow the WordPress guides. It’s true that the the correct format is xx-xx but why not support the current guidelines of WordPress itself?
I really hope I’m missing something. This is a great plugin but I’m stuck now when I want to extend an existing localized WordPress without changing its locale from xx_xx to xx-xx and thus eliminating the possibility of smooth upgrades in the future.
I would like to see something like this on the website: “http://www.website.com/lang/fr” representing French language, while the real locale is “fr_FR” according to localized WordPress guidelines and while the xLangauge locale for Browser detection is “fr-FR”. All of these must be defined as one language. Is it possible?
May 12th, 2008 at 21:30
Amir, thanks for the insightful comment. I have filed a bug to myself. But please don’t expect it would be in very soon as I am quite busy in the following week.
At the meanwhile, may I suggest using softlink (the “ln -s” command) to link the MO file. Of course, this would only work when you have shell access to your host.
May 14th, 2008 at 6:27
can you compare it with qtranslate, please?
thanks.
May 15th, 2008 at 11:53
I read the usage guides a couple of times and still don’t get how I can make a post in TWO languages… could you clear this up?
May 15th, 2008 at 17:00
When I am inside Language (Advanced) and try to add fallback, when I submit the Update Languages button this is the response:
Fatal error: Call to undefined function: array_combine() in /wp-content/plugins/xlanguage/admin.php on line 617
What kind of problem is this and what can I do to fix it?
May 15th, 2008 at 21:06
Daniel:
Read the first page, first section of the xLanguage settings. It has a screencap about the toolbar that you should see when you write the post.
Given that you have add some Languages already, Go back to “Write Post” mode, you should see that xLanguage toolbar. If not, please clean your browser cache.
Eugene:
Opps. It’s a bug. I have used some PHP5 only function there. Thanks for the report.
May 16th, 2008 at 0:50
yes I see the tab
Let’s say i write the text “blah” how do i get that text to be in two languages. I tried by just tagging the german version in german… but I dunno both versions show up under en-us.
I’m probably just missing something small, but I just can’t figure it out…
May 16th, 2008 at 0:55
Are you using a browser other than firefox or ie? I know with safari for example you get this problem.
May 16th, 2008 at 22:11
Daniel, if you don’t tag the text, then that text would be visible in all languages.
Of course, I think you know that already, xLanguage is not an autotranslator.
May 16th, 2008 at 22:27
Heh, yes I know that.
(Both of that)
I’ll try to explain my predicament once again.
I tagged it GERMAN, and it showed up in the eng version.
Now how do I get topic “BLAH” to show up in both languages? Maybe WE are having an language barrier.
May 16th, 2008 at 22:41
how come the German text shows up in the english version??? … ughh
May 16th, 2008 at 23:44
@Daniel
I saw the same problem when I setup a client web site (lomilomihanalima.com). Last night, I discovered that when I changed the parser and toolbar mode to brackets things worked as they should.
Apparently, the theme I used was not XHTML clean.
Aloha,
.. ev ..
May 17th, 2008 at 1:10
Thanx
May 17th, 2008 at 1:16
Anyone, an idea ? I posted a message some time ago, I was wondering if it was possible to strip the html tags that don’t have the good ‘lang=”en”‘ language set. I tried tu user the filter() function in parser.php but couldn’t find what to put in the third argument.
I was wondering if you could give me an idea how to use your parser in the right way ? I’d just like to put away the other languages that are in my string variable
Thanks a lot !
May 17th, 2008 at 12:02
Daniel: To verify if it’s the parsing problem like Eugene said, try to start a totally new post and see if the tagging works. Secondly, please check the “Parsing Log” in the xLanguage settings page to see if there was any error. Though, the xlanguage does not parse the theme, so it doesn’t matter if the theme is xhtml compatible or not.
Benjamin: You might want to use “apply_filters(‘wp_localization’, ‘your_text_in_lang1|your_text_in_lang2, or even your HTML text’)”, then xLanguage will apply the same filtering logic on those text.
May 17th, 2008 at 16:46
@ EUgene -”I changed the parser and toolbar mode to brackets things” – as in “[]” ?
Parser log:
http://richmond-seducers.com/lang/en-us/ mismatched tag
http://richmond-seducers.com/lang/de/ mismatched tag
mismatched tag
not well-formed (invalid token)
I have no idea what this means…
May 20th, 2008 at 8:14
Hi Sam,
did you get my message regarding FTP-Root?
thanx,
Igor
May 23rd, 2008 at 4:51
[...] One SEO Pack, Different Localization in Front- and Backend, Google XML Sitemaps, PXS Mail Form and xLanguage. Hours of work: Too [...]
May 26th, 2008 at 1:23
As we try to activate the plug in we are getting the following error messages:
Warning: fopen(/var/hsphere/local/home/user/website.com/wp/wp-content/uploads/2008/05/xlanguage-parser-15490940491815403855.log) [function.fopen]: failed to open stream: Permission denied in /var/hsphere/local/home/user/website.com/wp/wp-content/plugins/xlanguage/admin.php on line 141
Warning: fclose(): supplied argument is not a valid stream resource in /var/hsphere/local/home/user/website.com/wp/wp-content/plugins/xlanguage/admin.php on line 142
How we can fix this ?
Best regards,
May 26th, 2008 at 13:07
I’m getting the same error as “Admin”
May 26th, 2008 at 21:20
For that problem, make sure the uploads folder is writable by your web server, which usually (but not always) means changing the permision of the uploads folder to a less secure settings – “chmod 777″.
If image uploading works when you do blog posting, you should not hit this problem. Let me know if this is not the case.
May 27th, 2008 at 0:04
hi, I reinstalled the plugin and I checked the permissions and I don’t get that error message anymore upon activation. I set up two languages English and Spanish. When I try to open my site, I automatically get redirected to the signup page (I’m using WP-MU 1.5.1) people end up at the signup page when it would be a 404 error on regular Wordpress. When I try to go to a post I notice that the prefix is added. One problem is that I can’t find a en-us mo file. Even when Spanish is the default I keep getting redirected. I’m using custom permalinks with the post name.
What do you recommend I check first?
May 27th, 2008 at 0:11
FYI – I’m also using Supercache
May 27th, 2008 at 0:21
Hi Chris,
Please test the xLanguage with the SuperCache turned off first. Only try it after everything is working.
And I still don’t get your problem. Can you list out 1) the URL you have tried, 2) the expected result and 3) the actual result?
Also, please leave the comment with a valid email address so that I can follow up with you with email. The one that you have left doesn’t seems to be valid. Thanks.
May 27th, 2008 at 4:01
Sam,
I’m run into a roadblock on a site I’m working on: http://www.lomilomihanalima.com
WordPress is configured to set page_id=3 as the home page. So the URL will look like this:
http://www.lomilomihanalima.com/?page_id=3&lang=en-us
or this:
http://www.lomilomihanalima.com/?page_id=3&lang=jp
However when the language code link is clicked the URL comes out:
http://www.lomilomihanalima.com/?lang=lang=en-us
or:
http://www.lomilomihanalima.com/?lang=jp
This produces null page.
How can I fix this?
Aloha and mahalo for your help,
.. ev ..
May 30th, 2008 at 2:54
I am using gengo plugin, but I want to switch to xlanguage. Gengo adds language identifier /en/ to the permalink of the post, but xlanguage adds /lang/en/. Is it possible to change /lang/en/ permalink to /en/ permalink, so my permalinks will not get broken when switching to xlanguage from gengo?
May 30th, 2008 at 3:10
Sam … I posted a message to you a few days ago concerning my problem about the home page not switching properly. The post doesn’t show up. Did you get it?
Mahalo,
.. ev ..
May 30th, 2008 at 4:37
Eugene: No I don’t have it. May you repost?
Dovydas: I am afraid it’s not support and it’s not in the plan. Such modification requires some significant code changes to the rewrite rule generation logics.
May 30th, 2008 at 4:50
Eugene: I found your comment in the spam bucket. So sorry about that.
What you are saying could be a valid bug. At the meanwhile, could you try to enabling permalink to see if it resolves in permalink mode?
May 31st, 2008 at 5:02
Hi Sam,
I’m using a a plugin that enables ranking of the posts by popularity and the output function is: akpc_most_popular($limit = 5);
The problem is that, although I’m using the “|” spliter in the post title, the popularity plugin shows up all the content in the sidebar, including the spliters.
Is there any solution for this?
Thanks!
May 31st, 2008 at 10:29
Nothing can be done without changing the code of the akpc plugin: please make the title pass through the ‘localization’ filter using the code: apply_filters(‘localization’, $title).
Refer to http://hellosam.net/project/xlanguage/4
May 31st, 2008 at 19:41
Thanks, Sam.
I’ll try to get it fixed.
I’m running into another issue though and I don’t think it has anything to do with the plugin , but any help would be appreciated as I believe that users will be faced with a similar issue.
When I try to add the the page title for the 5 languages that I want, for instance:
About Us-eng|About Us-it|About Us-de|About Us-fr |About Us-es
Wordpress is llimiting the length of the title description and it cuts the last About Us, in this case Spanish.
Have u ever faced this issue?
Again, any help is greatly appreciated.
Marcos
June 3rd, 2008 at 2:45
@Sam
Okay. I work on it and let you know what happens.
Mahalo,
.. ev ..
>At the meanwhile, could you try to enabling permalink to see if it resolves in permalink mode?
June 11th, 2008 at 18:09
Hello Sam,
I turned permalinks on for (lomilomihanalima.com) and the home page still does not work well.
Is there something else I’m not understanding or should try?
Mahalo,
.. ev ..
June 15th, 2008 at 1:11
Hi Sam,
your plugin works fine, but whenever I try to edit an extisting topic, wordpress crashes, giving me an error with cookies. In other words, if I try to edit an article, WP don’t let me login, and I need to disallow all the plugins via MySql.
Can you help me pls ?
June 17th, 2008 at 21:20
Hi Sam
It would seem that the plugin is adding several tags in my posts thereby messing up the post.
You can see for yourself on the front page of my blog
Any ideas?
James
June 18th, 2008 at 23:54
hi, I was looking around and could find any information about positionning the language selection link… let’s say i’d like to have them in the header instead of the sidebar…could this be possible?
June 19th, 2008 at 10:59
Axl
You need to add in your header file where you want the list of languages to appear
James
June 19th, 2008 at 11:00
Axl
my previous post did not show the correct code:
James
June 19th, 2008 at 11:02
lets try again
put xlanguage_list_langs() in between the standard php markup tags
James”
June 19th, 2008 at 23:41
thanks! I’ve got another little question… I installed the plugin on 2 different blogs hosted on 2 different hosts. In one blog everything works great and in the other, everything works too but I don’t get the button for the languages in the visual editor…
This might be an hosting problem I think… or maybe you have a great solution to help me:) I can put the code directly but i don’t think the writers could…
June 20th, 2008 at 0:47
our blog is read by people that likely speak multiple languages (spanish and english), so the goal is to show them a post in their preferred language if their is a translation (and the preferred language would depend on their browser preference, which is built in the plugin), but to show all original posts regardless of their browser preference. so if their was a english post and the user’s browser had a spanish preference, the english post would show.
is this possible? if so, how would we set it to then give the language preference by allowing them to select (show only english posts, or show only spanish posts)?
thank you!!
June 20th, 2008 at 15:42
Sweet. Thanks a lot. Amazing plug in much needed. Thx again
June 21st, 2008 at 8:22
Cool plugin. It doesn’t actually translate the post to different languages, does it?
June 23rd, 2008 at 7:32
[...] el plugin Babel que estaba usando hasta ahora para poder escribir este blog en dos idiomas por xLanguage que he descubierto hace poco y que parece ser que me permitiría que el blog fuese totalmente [...]
June 23rd, 2008 at 23:51
Thanks for this useful plugin, will install it right about now
June 25th, 2008 at 22:23
I had the same problem with date month not being translate. After reading the usage guide and all the comments, I realized it had to do with the .mo… So i made a copy of fr_FR.mo and renamed it fr.mo and now everything works fine… Might not be the best solution but it’s a quick way to get around this problem…
Now I was wondering if the filters can be applied to any content? In clear, can link title tags could be translate with the filters?
or could this text content be translated with the filters?
June 27th, 2008 at 4:26
[...] plugin we opted for in the end was xLanguage by the extremely helpful HelloSam which, whilst our php skills weren’t really prepared for [...]
June 28th, 2008 at 0:13
Hi there! I found your AMAZING plugin. In fact I’ve been looking for something similar for so long….
At least I’ve managed to imagine how to set it up properly but now I have a (hope) little problem. The toolbar isn’t showing in my composer editor, so I don’t know which tags to use. I’ve selected the XHTML parser (the one) and I’m using Wordpress 2.51 with the last version of your plugin….hope you can help me….
Thanks in advance
June 28th, 2008 at 6:43
Great plugin!
BTW, say I have two languages: English and Japanese.
If I write a text that is available in English only, then setup Japanese as English fallback, are there anyway I can make it show /lang/ja in the url of these texts instead of lang/en, since these texts would be in Japanese and not English…
June 28th, 2008 at 6:47
Oh yeah and it would be cool having the flags shown in the upper-right side of every entry, showing the languages available for that specific entry, like in jLanguage.
June 28th, 2008 at 20:17
It would be really cool if it also did the translations for you. Accurate translations, that is…
June 28th, 2008 at 21:27
I write a new comment just to say that I have resolved my problem, was just that I erased the images when I was changing them to use some wonderful famfam flags…now all works WONDERFUL. VERY VERY GREAT plugin!. Thanks for it!.
Just one question though. I haven’t understand how to localize widgets. Well, in fact I do, but I don’t know how to apply your instructions. I have some “normal” wordpress text widgets in my sidebar to show some things but the title isn’t localized even though I use the | thing. And I can access the code of this embeded plugin. Is there any way to get this titles translated?. I was thinking about using samsarin’s php widgets (it’s similar to the text plugin but it allows to use and execute php code) instead of normal text widgets…but I can’t find the correct place to put your code in it (I’m a noob in all this things)……Any advice?
Samsarin’s plugin page: http://www.samsarin.com/blog/2007/03/10/samsarin-php-widget/
Thanks so much in advance
June 29th, 2008 at 6:52
Again I write to say I’ve resolved my problems. Now my blog is fully bilingual using samsarin’s php widget instead of normal text widgets….
June 30th, 2008 at 23:22
Hi,
I get this error message when I activate the xlanguage plugin in WP 2.5:
Fatal error: Cannot redeclare class xlanguageplugin in httpdocs/wp-content/plugins/xlanguage/xlanguage.php on line 996
Do you think it is a compatibility issue, or a server configuration issue?
Thank you.
Christian
July 1st, 2008 at 5:28
I get the same error using wp 2.3.3
Fatal error: Cannot redeclare class xlanguageplugin in /var/www/web53/web/wp-content/plugins/xlanguage/xlanguage.php on line 996
many thanks
Gabry
July 2nd, 2008 at 8:11
Sounds like a very useful plugin that would make a person’s site that much more accessible.
July 2nd, 2008 at 8:12
[...] encarecidamente (de nuevo), para aquellos que quieran su blog en varios idiomas el plugin xlanguage. Por supuesto, no traduce automáticamente, tendréis que escribir el contenido en varios idiomas [...]
July 4th, 2008 at 2:08
Hi there, I wanted to first say what a great plugin this is. I would like to contribute but I really need to solve one thing…
Some blog posts will be written in only 1 language – how can I make the posts page only display the posts that actually have a post in the language preference that a user may have? Otherwise, it lists all posts and just gives the ‘not available in this language’ message. I have set xLanguage to show no message if a language isn’t available but it still shows the empty post and the date. Any ideas how I can hack around this behaviour?
July 7th, 2008 at 22:44
Hi, I’ve managed to make the blog i’m working on fully bilingual (I’ll post link when it will be online) with your great plugins. Now, just fine tuning everything and I was wondering if it is possible to had title for the language link?
July 8th, 2008 at 9:44
I can see lots of different ways that this is so useful. Thanks!
July 9th, 2008 at 12:19
After reading through the posts and experimenting with the other multilanguage plugins their seems to be a limitation on all the multilanguage plugins and that is the ability to hide posts that are not in the selected language. So if I have a bi-linguagl blog and language A has 100 posts with only 5 translations in language B, when switching to language B it is going to list all 100 posts with 95 that say “unavailable” versus just the 5 posts that have translations.
Am I missing something here? hopefully so, because I’d love to use this… Please help! thank you for the fantastic plugin.
July 9th, 2008 at 16:02
This looks like a very nifty plugin to have. I don’t do anything other than in English but believe that my foreign friends might be interested in checking this out. Will point them here.
July 10th, 2008 at 0:25
This looks like are great multi language plugin, I have a couple of blogs that I want to add spanish to, so I am going to give this plugin a shot. Thanks
July 10th, 2008 at 7:03
O this is such a great plug in. Wow. Wondering if there are a few more languages supported by this but anyhow getting this plug in
July 10th, 2008 at 10:48
I look forward to putting this plug in to good use. Thank you.
July 12th, 2008 at 19:20
good plugin
will have to try
thanks
July 13th, 2008 at 4:22
hi there,
after adding a third language, i got this message:
*
Warning: Invalid argument supplied for foreach() in (…)wp-content/plugins/xlanguage/xlanguage.php on line 845
Fatal error: Cannot unset string offsets in (…)wp-content/plugins/xlanguage/xlanguage.php on line 865
*
my wordpress-installation stopped working and i was forced to delete the plugin. after a reinstall i tried to activate the plugin again… but still recieve the same error message.
any chance to fix this… ?
robert
July 14th, 2008 at 17:58
problem solved. i had to reinstall wordpress myself instead of using the default install from my host.
but now… i got a new problem:
Fatal error: Cannot redeclare class xLanguagePlugin in
(…) /wp-content/plugins/xlanguage/xlanguage.php on line 996
already 2 people here with the same error. i’m on 2.5.1 and using your plugin 1.3.3
any chance you could help…?
robert
July 14th, 2008 at 22:53
ok, ok… i don’t want to spam your blog.
last problem solved, too. i had to reset the xlanguage options. and that was that!!
hope to put your plugin in good use.
thanx for your plugin!
robert
July 15th, 2008 at 15:39
have you had the chance to test with WP 2.6?
Cheers
July 15th, 2008 at 16:08
I installed xLanguage and configured English (en) and Japanese (jp) languages, but when I try to access /lang/en and /lang/jp I get “Page not found”. It seems that /?lang=en is the only way to access the site in English? How do I enable /lang/en and /lang/jp URLs to start working??
thanks!
-Jim
July 15th, 2008 at 16:14
Sorry somehow permalinks got turned off. I turned them back on and now /lang/en and /lang/jp are working.
July 17th, 2008 at 21:14
I also want to know the process of this plugin with WP2.6.
July 17th, 2008 at 21:55
I upgraded to wp2.6 yesterday and everything is working just fine with the plugin.
July 18th, 2008 at 0:25
I use xLanguage for a long time, but now I would to add a related posts plugin. The posttitles which have to show under related posts are not splitted in the choosen Language. The title shows me like this “Englishtitle|Germantitle” but it should be like “Englishtitle” and the other one when I choose the German language.
July 19th, 2008 at 1:26
[...] downside for those wishing to upgrade is that they’ll have to start looking at that plugin compatibility page again. The first test will be for large plugins like xlanguage, although one comment on the [...]
July 19th, 2008 at 20:55
best of the best it is,
July 22nd, 2008 at 16:30
Hi sam, I’m using Supercache and think it works well for me
July 25th, 2008 at 13:05
Hi,
with WP 2.6 in my menu on the left hand side the headings are not parsed anymore, will say that I have like this “Gallery | Gallerie” instead of only one of the words depending on the language settings…
Cheers
Yogie
July 25th, 2008 at 16:12
Same problem
July 28th, 2008 at 2:18
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.
July 29th, 2008 at 4:23
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.
July 31st, 2008 at 21:39
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.
August 1st, 2008 at 4:34
Sorry, my fault. Now xLanguage works great for me in wordpress 2.6. It was a problem with the php version in my server.
August 1st, 2008 at 7:56
[...] now up and functional. Old plugin for multilanguage i18n has been replaced with the more advanced xLanguage. One of the best plugin ever [...]
August 1st, 2008 at 22:52
[...] 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: [...]
August 5th, 2008 at 19:06
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.
August 6th, 2008 at 2:40
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!
August 6th, 2008 at 9:41
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!
August 7th, 2008 at 21:06
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
August 7th, 2008 at 22:20
To support any other 3rd Party plugin, there are two options:
1. See if they support .mo file localization. That’s how the Wordpress itself, the most themes and modules support the multi-language for hardcoded display element.
2. if it’s about admin configurable element, then you have to hack the logic that prints out your content. By making sure they go through apply_filters(‘localization’, …), the language tag will be functional on them.
August 17th, 2008 at 2:21
What a great way to make your blog available and accessible to people all over the world.
August 19th, 2008 at 5:35
It never ceases to amaze me the number of things that wordpress can do.
August 22nd, 2008 at 6:16
nice plugin, but I have one problem:
maybe it is the the permalink rewrite rule.
Problem is that I do not know how to change the rewrite rule (is there ar tag like %language%?) to get a valid link to my posts.
the Plugin works (with wp 2.6.1) but if I click on a link the url changes (/lang/fr/ is prepended to the rewritten url after the .tld ) and the link does not work any more.
please help! I promise I will donate if I can get it to work, because xlanguage is better then gengo which tends to screw up the database on deinstallation.
August 22nd, 2008 at 6:52
another thing is that the option “Explicit Redirection” “never” has no effect on the url creation. the url is always like this : “http://domain.tld/lang/en/postname”. so /lang/en/ is always displayd after I click on a link, and I get a blank page.
xlanguage works without permalinks but i want to have them.
any suggestions?
ray
September 1st, 2008 at 21:32
[...] xLanguage Ett plugin för du som bloggar på flera olika språk. xLanguage låter besökaren välja mellan vilken språkversion av bloggen som denne vill läsa. Användargränssnittet är dock inget för nybörjare och kräver viss erfarenhet av Wordpress. [...]
September 3rd, 2008 at 17:51
I have a question: does the plugin allow for a distinction between the feeds in the two languages?
Right now I am using a plugin that does not. And readers will see feed items in both languages, or just one language.
Thanks.
September 8th, 2008 at 12:29
I installed and activated xlanguage, but when it was activated it gave me the following message on the top of the admin page. What is the problem here and how can I solve it?
Warning: fopen(/var/www/vhosts/sourena.net/httpdocs/wp-content/uploads/xlanguage-parser-11914147621541470766.log) [function.fopen]: failed to open stream: No such file or directory in /var/www/vhosts/sourena.net/httpdocs/wp-content/plugins/xlanguage/admin.php on line 141
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/vhosts/sourena.net/httpdocs/wp-content/plugins/xlanguage/admin.php on line 142
September 9th, 2008 at 18:43
xLanguage does not work together with wordpress 2.6.2. After upgrading I recieve:
Warning: Invalid argument supplied for foreach() in /…/wp-content/plugins/xlanguage/xlanguage.php on line 845
Warning: Invalid argument supplied for foreach() in /…/wp-content/plugins/xlanguage/xlanguage.php on line 908
Fatal error: Cannot unset string offsets in /…/wp-content/plugins/xlanguage/xlanguage.php on line 935
And I must delete the folder in order to gain control over my blog. Can’t solve the problem even with reinstallation.
September 9th, 2008 at 20:36
I figured out the problem. I leave a different collation in wp-config.php and get_option worked wrong with extended chars of xlanguage options in wp_options table.
September 10th, 2008 at 23:51
Certainly!
September 11th, 2008 at 2:13
xlanguage is another one of those cool but not really necessary wordpress plugins. Thank you.
September 11th, 2008 at 2:20
I use xLanguage since a long time on my website and it works fine. I hope for Updates.
September 11th, 2008 at 7:36
I use this tool and it helps me a lot! One thing, though, I’ve lost the feeds I put next to each category in my templates; the code is there but it doesn’t show up in the blog. Also, is there a way for the titles like “Links”, “Categories”, etc. to be translated?
Great work on this widget!
September 11th, 2008 at 22:12
Since I’m a Greek guy, I have several blogs in the Greek language, but also my readers might want to read them in english, so I hope xlanguage will help me a lot.
Thanks a lot
September 12th, 2008 at 22:05
Hi,
I installed xlangauge plug-in, and added zh-hk and zh-cn through the plug-in’s option page. However, when I compose a blog using the Rich Editor, I only see the “Highlight the paragraph language” and “Clear the language tag of the selected text” options from the xLanguage Toolbar. I don’t see any options to set the selected text to the languages that I added. Am I missing something in the installation?
In addition, I’ve added the xLanguage widget in my site. However, I saw broken images on the language icons, and the site does not switch the language when I click the specific language link.
FYI, I have put the zh-HK.mo and zh-CN.mo files under wp-content/languages. Do I need any additional plug-in in order to get xLanguage working?
Thanks,
Terence
September 12th, 2008 at 23:09
Terence,
I have the exact same problems. I have broken images in my home page, and I don’t see any of the icons that supposed to show up in the “Write/Post” Page. The only thing that works is ” | ” in the title.
September 13th, 2008 at 0:41
FYI. The installation problem mentioned in my previous message is on WordPress 2.6.2.
September 13th, 2008 at 1:27
I have the same problem on Wordpress 2.6.1.
September 15th, 2008 at 15:08
Hi Sourena, Terence: Please try to clear the cache of your browser. If it does not work, please try to reset the xLanguage options (at the 3rd page of the xlanguage options page) and try again. Thanks.
For the mo file, please be aware that the filename is case sensitive, i.e. you should rename the zh-CN.mo to zh-cn.mo, same for zh-HK.
September 16th, 2008 at 20:15
I learned much from your post. Thank you.
September 17th, 2008 at 21:50
Hello,
I am trying to use this wonderful xLanguage plugin. Everything is
working very well, except that I don’t find a way to use the filter hook
in the sidebar H2 heading (no widgets!).
Any help or a direction where to look would be greatly appreciated.
The code:
<ul class="submenu ">
Novinky | News
<a href="">
Thanks
Goofy
September 18th, 2008 at 14:41
Hi, I found your blog on this new directory of WordPress Blogs at blackhatbootcamp.com/listofwordpressblogs. I dont know how your blog came up, must have been a typo, i duno. Anyways, I just clicked it and here I am. Your blog looks good. Have a nice day. James.
September 24th, 2008 at 0:02
Hi Sam, I live in HK and want to write my blog in both eng and chinese
I am very happy to find this plugin.
However I have a installation problem
my WP version is 2.6.2
xLanguage version is 1.3.3
once I actived the xLanguage in admin page
it said:
Fatal error: Cannot redeclare class xlanguagepluginbase in /home/dsilentcom/domains/d-silent.com/public_html/blog/wp-content/plugins/xlanguage/plugin.php on line 103
is it a reason I installed “qTranslate ” before?
September 24th, 2008 at 2:07
Greetings, this is a great plugin, I will make a donation once I have it running because It really helps me out!
The problem is that everything works, except the content. The titles, tags and categories, all are translated, but the content of the post is displayed in both languages simultaneously, one is tagged as english and the other as spanish (en, es), and it makes no difference.
I Run WPmu 2.6.1 ans xLanguage 1.3.3 with K2 RC3 I really need urgent help. I tried 569 and r669
Thank you
September 25th, 2008 at 19:57
I’m using this great plugin but I found conflict with other plugin which uses pagination.
For sample : i have a glossary page (using IMM-Glossary) in this url (for sample) :
http://www.mydomain.com/glossary/lang/en/. When i click the second page, its 404 error because the browser opening :http://www.mydomain.com/glossary/lang/enKey/2/. Its supposed to be openinghttp://www.mydomain.com/glossary/Key/2/lang/ento show correctly. Please help because I have no idea whats code must be tweak to fix this problem. This problem also found if I using FAQ-Tastic and EZ-FAQ plugin thx n regards,September 26th, 2008 at 3:19
Hello from Bavaria,
I have a problem with widgets and xLanguage.
The plugin works fine so far with categories, pages, posts and the widget you provided for switching the languages.
Problem: it does NOT work with the other widgets (like Category, Pages, Text …all standard as far as i know…).
Any idea or hint were to check for misconfiguration or error or db-problem or …???
(I am still using WP 2.5.1 and this one is installed on a mySQL 4.x db, in this case the terrafirma-template 3.5 and some other nice plugins like the TinyMCE adv.)
Thanks in advance!
Pete
September 27th, 2008 at 17:44
[...] di qualcosa di più versatile e meno pesante è stata lunga, ed alla fine ci siamo indirizzati su xLanguage di Sam Wong, un plugin con maggiori funzionalità, che offre la possibilità al visitatore di [...]
September 28th, 2008 at 13:51
Hi, thanks for this great plugin.
I worked for me on windows when developing the blog, but when I move it to the linux server I got this error:
"Fatal error: Cannot redeclare class xLanguagePlugin in /var/www/wp/wp-content/plugins/xlanguage/xlanguage.php on line 996"
Any idea why this is happening, I read some other comments and is the same problem.
I’m using wp 2.6.2 on ubuntu php. 5.2.4 with Suhosin-Patch 0.9.6.2
September 29th, 2008 at 20:54
Thank you, thats great…
September 29th, 2008 at 23:24
[...] kind of very basic translation system, just to allow as much readers as possible. I also found a good comparasion of multilingual [...]
September 30th, 2008 at 2:14
Looks good, when I get a chance I am going to install it on a new blog project I am working on.
October 2nd, 2008 at 2:19
great plugin, better than global translator
October 2nd, 2008 at 9:13
[...] xLanguage, qTranslate: todo o conteúdo na tabela posts utilizando [...]
October 7th, 2008 at 3:30
Is it possible to choose domains instead of permalinks for xlanguage? For example to show german text on http://www.domain.de/year/month/postname and english text on http://www.domain.com/year/month/postname ?
That would be GREAT and gives our website a more professional look…
October 7th, 2008 at 13:39
Thanks for providing links to the tiny flags. That was very helpful!
October 11th, 2008 at 0:35
is this plugin support indonesian language?
my site write in indonesian language an i want to use this plugin..can this plugin translate from indonesian to english?
October 11th, 2008 at 1:01
To bung eka: No. This is not a auto translation tool. This plugin provides you a way for the user to select the language they want to see, but you have to write your post in multiple languages.
October 11th, 2008 at 16:06
Wow.. Cool..
seems closes to joomla
October 11th, 2008 at 19:52
These are not surprising my anymore, but thanks..
October 15th, 2008 at 15:29
This plugin provides you a way for the user to select the language they want to see, but you have to write your post in multiple languages.
October 16th, 2008 at 8:43
okay..thanks for the answer, this is a usefull plugin for me..great job..
October 17th, 2008 at 17:57
Is this a plugin which gives users to select their language?
It would be great for my new sites.
October 21st, 2008 at 20:58
Nice plug-in. So you can translate everything in the post including the resulting RSS feed? Now, that’s a really cool feature.
I can’t wait to see how that works on a few of my blogs.
October 24th, 2008 at 6:11
best search engine google
October 27th, 2008 at 8:20
[...] the site is multilingual, just like the business. I used the XLanguage plugin to allow both the French and English copy to reside on the same pages. Using <span> [...]
October 27th, 2008 at 13:43
nice plug in
October 27th, 2008 at 21:01
Plugin XLanguage very good thing, it is fairly easy to manage. It lets you choose the language that you want. And it functional. My advice for all to use this plugin.
October 27th, 2008 at 21:05
I now nokia n95 and I have a lot to him know of programs, but that I have not heard, can be a bit more about it? I see you at the forum described most frequently asked questions. Excellent site
October 29th, 2008 at 7:28
This seems be be a very handy plug-in, but when I try to install it I get a Fatal Error (version 1.3.3 on a fresh 2.6.3 version of Wordpress without any other plugins or theme). The error message says: can not redeclare class xLanugagePlugin on line 996 in xlanguage.php.
Would be very happy if you could look into this problem. Many thinks.
- Daniel, Sweden
October 29th, 2008 at 15:51
For those who can not get this plugin to work, perhaps you want to look at qtranslate (qianqin.de/qtranslate). Although it lacks many of the features that xLanguage claim to offer, it works with my installation of Wordpress. It is very easy to install and it has a very intuitive user interface.
October 29th, 2008 at 20:25
Hi Sam, for some reason I can’t get the language selection in my sidebar. When you say ‘Also, put the xLanguage widget up so the users are allowed to switch language as needed.’, how do I do that?
Thanks
Alice
October 30th, 2008 at 5:24
So now I got xLanguage to work with my installation thanks to the tips from the author to perform a reset (Settings -> xLanguage ->
Options). Many thanks!
Compared to qtranslate I find this plugin more useful because it guesses which language to use and saves choises in a cookie.
Things I liked with qtranslate that I miss from xLanguage are:
- A separate “Title” field for each language when composing a post. With xLanguage I have to manually add a tag?
- Also the Dashboard/Admin pages changes language (with the default theme). Perhaps this can be done with xLanguage too?
Another suggestion for improvements is:
- Some hints of how to customize the theme/widget to include a flag/symbol and change the displayed text (right now it says e.g. “english english”; don’t know why).
October 30th, 2008 at 15:25
Thanks for the plugin, I used online service like babel fish which i did nt quite like
October 31st, 2008 at 6:09
Thanks for the plugin, I used online service like babel fish which i did nt quite like
October 31st, 2008 at 21:32
Thanks that is a vast improvement
November 1st, 2008 at 7:55
Indeed I couldn’t agree with you more.
November 5th, 2008 at 22:57
Hi Sam,
I got some Problems with the Installation. My english is to bad. Is there a german or french documentation outthere?
November 6th, 2008 at 11:48
Cool plugin Sam, I was using qtranslate before which works well but is a bit more simple. This one really gives greater functionality – It is also worth the extra effort to have all those additional people able to view our blogs! Thanks
November 6th, 2008 at 13:18
Hi, I don’t know why i can’t see the language icons from the sidebar, and also, there’s no language options on the editing tool bar, however, I can see the highlight/ deselected icons. Just the language numbers icons are missing. Do you know what could be the cause? (please check the site url here to see the sidebar issue). Thank you very much!
November 6th, 2008 at 23:43
Hello,
i can see the language choices from the editor after clearing cache!
now only the sidebar has issue displaying the icons. Do i need to manually add the icons?
November 7th, 2008 at 3:36
xLanguage does not ship with any icon, please refer to http://hellosam.net/lang/en/project/xlanguage/4 for adding flag image to the side bar, as well as instruction to customize the template/theme, etc.
November 9th, 2008 at 14:06
Hi HelloSam,
thank you so much for getting back to me, this is really an amazing plugin.
i tried to do a search in the files, but i didn’t find where i can alter the width and height.
Can you kindly let me know where i can find the line? thank you!
November 9th, 2008 at 14:17
I also made a page with xlanguage…which is awesome, by the way. The posts work great in all languages. I also have a page with contact forms made with cformsII plugin. I made a form for each language and put the code to load them in between language tags. However, only the first form in the list loads for every language. Any ideas?
I am using Wordpress 2.6.2 and the newest of all the plugins.
November 12th, 2008 at 6:32
Nice plugin. Will have to try it when I get time.
November 13th, 2008 at 6:16
Changing the width and height seems to work for me in Explorer but not in Firefox – can anyone point me in the right direction please.
November 14th, 2008 at 18:10
Thank you so much for this great plugin!
There seems to be a bug with tags: the tag cloud displays well, but not the list of tags after a post. You can check that on my website: http://michaellanglois.org
Is there a way to fix it? Thank you!!!
November 15th, 2008 at 3:14
hi SAM!… how can i apply the filter to a simple html text between the “a” tags…
thanks!!
November 17th, 2008 at 17:23
Hi
I get the message “Rendering of admin template [...]/wp-content/plugins/xlanguage/view/admin/advanced.php failed” when looking at ‘Language (Advanced)’ and ‘Options’. This occurres since 2.6.3. Before that it worked.
Thanks for your help, and great plugin!
November 17th, 2008 at 21:07
it is really an amazing plugin.thank you so much for it
November 18th, 2008 at 19:40
Hi,
I’m having trouble with getting the static front page link in the navbar to translate. When I turn off the option the page and the link in the navbar translates fine, but when i turn on static front page, it just shows Home.
Please help, I’m not very good at this
Here’s the code responsible:
<li id="home" class="page_item"><a title="Home" href="">HomeNovember 20th, 2008 at 1:10
I have seen many plugIns for wordpress, some are very useful and some less but your plugins is top! You can be sure that I download it and use it in my next blog. Thank you for sharing it.
November 21st, 2008 at 19:02
Finally! The perfect solution I’ve been looking for! I have tried and tried to find a way to provide multi-language content on my WP blog. This is awesome. Especially since it even does the tags and titles for me.
I did get the “can not redeclare class xLanugagePlugin on line 996 in xlanguage.php” error after I installed it. But your fix helped me solve it. Thanks alot!
November 24th, 2008 at 20:37
Hi Sam,
thanks for the great plug-in. I managed to get the widgets to translate as well. I downloaded the .mo files for the languages and I placed languages folder in include, content and my theme. However, I am still unable to make the dashboard switches languages too.
If I changed define (‘WPLANG’, ”); to define (‘WPLANG’, ‘ja’); for example in wp-config.php I get the dashboard in Japanese. But I want the dashboard to switch too. Is it possible to get the dashboard to get localized as well?
November 24th, 2008 at 21:46
chocobo: I’m afraid the behavior is by-designed. xLanguage is designed not to interact in the Admin mode.
November 24th, 2008 at 21:52
Thanks for your quick reply Sam.
Aha, I see, is this like a security feature ? the reason I am asking is that, I have an educational web blog and I will need to get translators to help me translate the material on my web blog to different languages. I thought by providing them with translated dashboards then things gets easier for them to work with. I thought this could be done that’s why I asked. Thanks again
November 27th, 2008 at 8:49
this plugin is complete bullocks… dont use it…
November 28th, 2008 at 11:24
Thanks for your plugin. it is great.
My website have the following error message above my wordpress admin pages. How could I fix it? Is it because any DB record issues? Does compete uninstall and install help? How can I do it?
Warning: fopen(/home/[my website folder]/wp-content/xlanguage-parser-166285373723007836.log) [function.fopen]: failed to open stream: No such file or directory in /home/[my web site folder]/wp-content/plugins/xlanguage/admin.php on line 141
Warning: fclose(): supplied argument is not a valid stream resource in /home/[my web site folder]/wp-content/plugins/xlanguage/admin.php on line 142
Thanks.
December 2nd, 2008 at 0:43
Although I have a business I am currently developing a english/arabic/urdo blog site for a client?
Does this work for any or all of these languages
Thanks
December 5th, 2008 at 11:01
I was able to configure this and use it with two languages: en and spanish. I downloaded the es.mo files and installed them.
When I use the xLanguage widget to switch languages, instead of directing me to “http://blog…” is goes to “https://blog…” Obviously, going to a secure web page is not good, since I don’t have https setup. Any ideas on how to fix?
December 6th, 2008 at 18:05
I activated your plugin in my wordpress 2.6.1 blog. When I activated the widget, viewed the language twice. It displayed English English rather than English. I’ve re-check the option page but the error still occured.
December 6th, 2008 at 21:27
Another wordpress plugIn but this time it is worth to use it. Thanks for posting.
December 6th, 2008 at 22:10
I am really impressed.
December 7th, 2008 at 16:36
Is there a limit how many language we can use at once?
December 7th, 2008 at 23:43
Hi WYS, actually the first English will be replaced by an icon say US flag and then besides it there is the language name. The language name should corresponds to the icon file name or xlanguage wont read it. So if your language name is us-en then you should have in the icons folder inside xlanguage plug-in folder a file name us-english.png (or gif as I am not sure) and another file called us-english-activated that will be display the current selected language. There are already some sample files out there. If you want to add more flags then get famfam country icons and extract into the same folder. Just make sure of the file name and extension. I already tested that on English, Japanese and Dutch and all worked.
December 8th, 2008 at 9:39
Thank you very much to you chocobo2k. I’ve already resolve my problem by using your instruction. Thank you Sam. Great plugin..!
December 8th, 2008 at 13:58
[...] · Reply · View agarassino: Interesante plugin para wordpress en 2 o más idiomas: http://hellosam.net/project/xlanguage 2008-12-08 01:08:49 · Reply · View weborglodge: @EdwardMoore WordPress has a [...]
December 9th, 2008 at 20:48
What happens with the links and filenames? Can they also be changed?
December 9th, 2008 at 20:49
What happens with the permalinks? Do they also change with the different languages?
December 9th, 2008 at 20:55
To IMC, according to what I know, xLanguage treats what’s between language tags as a whole block. Thus everything inside the language span tags will be hidden and completely replaced by another block. So videos, images, links, files, text…etc all are gonna be replaced, at least that’s what I got by using XML span tag option. I hope that helps.
December 9th, 2008 at 20:57
to IMC, yes the do change too. How about trying it for yourself
December 10th, 2008 at 19:24
Great plugIn but is it “only” wordpress compatible? Drupal user should move to wordpress?
December 10th, 2008 at 19:41
v 1.3.3 is the last one? Only for sure.
December 11th, 2008 at 21:13
hello,
thx to allow me to use this great wordpress plugin.
Do you know a form plugin compatible with xlanguage?
best regards
December 12th, 2008 at 3:49
Is xLanguage Wordpress 2.7 compatible?
December 13th, 2008 at 4:35
There are some “issues” with this plugin and wordpress 2.7, especially the permalinks.
When I installed wordpress 2.7, the xlanguage seems to be incompatible with it. I was wondering if any other users had the same problem.
It seems the plugin gets confused with the permalinks. When I post a comment before the 2.7, it is like
http://www.domain.com/2008/11/13/waking-up/lang/en/#comment-350
but now, it happens in the contrary
http://www.domain.com/2008/11/13/waking-up/#comment-350/lang/en/
and it marks a 404 error page not found.
December 13th, 2008 at 10:31
I have problem using this plugin with v 2.7
Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/en.js) is not within the allowed path(s): (………../httpdocs:/tmp) in ……/wp-admin/includes/post.php on line 1187
you have a solution?
December 14th, 2008 at 21:36
Спасибо классная статья
December 15th, 2008 at 12:59
I will check this out
December 16th, 2008 at 21:06
This is a fantastic plugin and made my life A LOT easier! Thank you so much for the really great work. I hope it will be compatible with WP 2.7 soon. One more thing: Is there a way to use it with feedburner ie. redirecting the language specific feeds to the corresponding feedburner feeds automatically? Thanks again for this. You’re a legend.
December 16th, 2008 at 22:02
Отличная тема.
December 19th, 2008 at 4:46
Действительно интерестно.
December 20th, 2008 at 20:50
hello! automatic installation fails under WP 2.7
—-
Installing Plugin: xLanguage 1.3.3
Downloading plugin package from http://downloads.wordpress.org/plugin/xlanguage.zip
Unpacking the plugin package
Folder already exists.: xlanguage
Installation Failed
December 21st, 2008 at 21:36
[...] nos presento algún que otro plugin goloso. Especialmente me gustó la combinación entre Xlanguaje y More fields para realizar sites multilingües. Asimismo me llamó la atención Scissors, para [...]
December 24th, 2008 at 15:20
Hi Sam thank you for this work, no hurry no worries but when do you expect that x-language will work with 2.7?
December 24th, 2008 at 15:22
Hi Sam, Thank for this work. No hurry or worries, but when do you expect that your x-language will be working with 2.7?
December 26th, 2008 at 21:41
I couldn’t get it to insatll porperly on the new Word press. Will you have an update for this soon? Thanks.
December 26th, 2008 at 23:43
Hi!
first, thank you for the plugin, it’s really wonderful.
I have just a problem with wp-dtree, I see you use it; how did you use it with several language?
December 31st, 2008 at 15:42
[...] xLanguage [...]
January 2nd, 2009 at 7:08
This plugin is downloaded 5,220 times..Good number..
Also,Is it support Turkish Language?
January 4th, 2009 at 20:53
dear Sam,
in the plugin subfolder \VIEW\XLANGUAGE\ I find list_langs.php. It says: “To customize, you can copy this file to YOUR_THEME_DIR/view/xlanguage/ and the theme’s one will be used instead.”
So it seems that this is where I add the icon (small flags) locations that represent the different languages on my blog. But where are these settings called? By the widget? I prefer tot alter the header.php and insert code that handles the language-selection. Which code snippet would do the trick?
BTW: the best multi language I’ve seen so far! Good work
January 5th, 2009 at 0:56
Perfect timing, testerrr. I am releasing a new version (2.0.1) which will looks for the flags files in YOUR_THEME/view/xlanguage/images. No more modification to the template if all you needed is adding the flags.
January 5th, 2009 at 1:24
hi. Thanks for plugin
perfect.
Regards
January 5th, 2009 at 2:01
I got the flags to work with the older version by renaming and placing them into where the site was expecting them (plugins/xlanguage/images). I also removed the border around the flags by adding Border=0 to list_langs.php where the URL is defined.
And I succesfully added the selector to the header.php by adding the right function (as mentioned by Sam in the manual). it was a case of RTFM for me :p
January 5th, 2009 at 2:23
[...] 差不多八個月沒有更新啦。現在xLanguage 2.0終於可以把純外語文章隱藏,在Category List下、在Feed裏、即使Search也不會出現,而不是再顯示”This post is not available under…”。當然你還是可以選用以前的處理手法,而且你更可以針對每一個語言來獨立設定其特性。 [...]
January 5th, 2009 at 10:48
Hi there!
Thanks for creating and sharing this wonderful plug-in.
For some reason it’s not working for us in the list of tags that appears after each post, I tried adding the_tags to the filter hooks, but that didn’t work.
Also, WP platform text (“leave a comment”, “no comments yet”, “logged in as”, etc.) is not changing to the right language, even tho I uploaded the .mo files… is it supposed to change? any idea why its not working? The only text that changes are the days and month names.
Thanks again!! and greeting from Argentina.
January 5th, 2009 at 10:58
Mariano, please make sure the MO file are named correctly, exactly matching the language code. MO file are named as xx_YY.mo, while language code is usually xx or xx-yy (depends on what you have chosen!), they must be 100% match, and it is case sensitive. I hope it works well
January 6th, 2009 at 7:27
Hello Sam,
Thank you for the quick reply!!
I’ve tweaked several things and I still can’t get it to work. I’m trying to have a Spanish version of our blog and I think that the problem is that the available translations are in files named es_ES.mo and since the plugin won’t accept the _ character or the capital letters, I had to rename the files to es-es.mo or just es.mo (always matching what I enter in the plugin configuration)… is it possible that the es_ES thing is still somewhere inside the .mo file? Is it possible to change it? I tried with Poedit, but I couldn’t find where.
Any other ideas?
Thanks a lot!!
PD: If I finally get it to work, I promess I will make a donation.
January 6th, 2009 at 15:09
Hi,
I have just updated to the new plugin and found that my “other language” buttons have vanished.
I was using your last version with this tag which worked fine in WP2.7.
Is there an easy way for me to get this working again?
thanks,
January 6th, 2009 at 20:25
Hi,
after upgrading I couldn’t get my flags and widget to work again showing flags and switching from one to another language…
Can you please help me?
Thanks in advance!°
Yogie
January 6th, 2009 at 21:48
Hi again.
I have had a bit of time to re-read your new instructions for installation and have discovered that I had to recreate the view/images folder inside my theme. This now works to show the flags (but the flags only) whereas before it showed “[flag] Other language name” etc.
Where can I add the code so I can show the language name and the flag?
thanks,
Andy
January 6th, 2009 at 22:38
Well to me simply adding the xx.png and xx-active.png files will not work
I added them into /wp-content/themes/”mytheme”/view/xlanguage/images/ and also into the plugin folder – No Success!
January 6th, 2009 at 23:26
Hello,
First, thanks for for this good and really extensive plugin !
I’d like to know how I can delete le word “lang” in my url,
to have this
http://www.example.com/fr/date/post
instead of this
http://www.example.com/lang/fr/date/post
Thanks
January 7th, 2009 at 4:23
Andy: sorry I (half accidentally half intentionally) changed the default template.
Please use the old template to restore the previous look and feel.
The template of the previous version could be downloaded at http://plugins.trac.wordpress.org/browser/xlanguage/tags/1.3.3/view/xlanguage
Put it (other_post_lang.php) into /wp-content/themes/_YOUR_THEME_/view/language (create the folder as needed)
Louis: Removing the /lang/ this is not possible just yet. Stay tuned.
Yogie: Please do me a flavor in checking a few things. 1. The filename is correct, “xx” is corresponding to your language code, and it is CASE Sensitive. 2. The files are uploaded with correct permission. For example, here is my files structure under /themes/.
hellosam1/view/xlanguage/images
hellosam1/view/xlanguage/images/en-active.png
hellosam1/view/xlanguage/images/en.png
hellosam1/view/xlanguage/images/zh-active.png
hellosam1/view/xlanguage/images/zh-hk.png
hellosam1/view/xlanguage/images/zh.png
hellosam1/view/xlanguage/images/zh-hk-active.png
January 7th, 2009 at 4:45
Hi Sam,
well for example the german flag is here: http://www.yogie.de/wp-content/themes/yogie-mod/view/xlanguage/images/de.png and there is also de-active.png, en.png and en-active.png.
In my settings I use de-de and en-us as locale codes…
How should the permissions of the images look like?
January 7th, 2009 at 4:50
Ooops, writing my mail and seeing your mail again I figured out that I have to rename my files to de-de.png, de-de-active.png sorry etc. now it works thanks!
January 7th, 2009 at 5:57
Hi Sam,
I’ve noticed a problem after upgrading to WP 2.7 and unfortunately xLanguage 2.0.1 doesn’t solve it: on my blog front page I have links to the various language versions (<a href=”/lang/en”> et cetera) and clicking them now says 404 not found!
A workaround was to go to xLanguage’s preferences and change permalink style from prefixing to postfixing. For me it’s not really a big issue. However, due to the warning about postfixing not working with paged comments and other plugins, and because other users upgrading will likely see this I thought you would like to know..
January 7th, 2009 at 7:20
Hello Dear Sam,
Please don’t forget about me… I’m still struggling with the _ES -es thing (see comment #348 above). Is there something I can do to help solving this? I’ve seen some people having the same problem.
THANKS A MILLION!
January 8th, 2009 at 1:27
Hi Sam!
First off all, regards for the plugin.
I’m trying to get rid easily from that ugly “/lang/” in the permalinks. Can you help?
Also I’ve found nothing in the usage guide refering to categories or tags. How can i define the language for those?
Many thanks in advance and best regards.
PS.: Don’t you have a forum or something where to support?
January 8th, 2009 at 1:35
Hi Raúl. No there is no way to remove /lang/ yet, but this is surely one of the most popular requests and I am listening.
Category and tag: use the single line mode, like how you write post title. that is, separated by |. Use single line mode on the “Name”, while keeping using simple english for the “Slug”. For posting under new tag, please tag your post with a correct slug first then go back to the management interface to modify the name into multilanguages.
January 8th, 2009 at 22:08
That worked for me. Thanks for that.
January 10th, 2009 at 2:41
new instructions for installation gooood
January 10th, 2009 at 20:35
Hi Sam,
I am biginner
Can you help me please.I am experimenting with your plugins on <a href=”http://noncredit-money.org/this blogI am Serbian and my default language is serbian.The otheer language on this blog is Englisk.
But if you click on “serbian” the text in Serbian show up properly,the category also,but below the Serbian text it is visible English text, it is not hidden.
And also,if you click on ‘english” the text and category iz also properly,in English,but below english text Serbian is visible,not hidden.
How to hide this,how to solve this?
Thanks.
January 10th, 2009 at 20:39
This is that experimental blog:
Experimental blog
January 12th, 2009 at 0:38
Now,I have no problem to write in two languages when I am writing posts,but to write bilingual pages.
Like for posts also for pages I am using HTML tag for Serbian language and for English language but did not work,the pages did not show ap on the top of blog,like it’s not exist.
Maybe this is happening because I did not put “.mo” file into wp-content…?
I did not put into directory /wp-content/languages/ the “.mo” file of Serbian because the name of that file is “sr_RS.mo” , but the language code of Serbian is “sr”.
HelloSam said that “.mo” fila and language code must 100% match,and I think it is not so in my case.
HelloSam, or someone else, can you tel me should I rename “.mo” file,and how?
Also,in the xLanguage widget on the blog I have no button for Serbian language,just have it for English.You can see that in this screenshot and I have no language buttons into post like HelloSam’s example on his blog.
What I am doing wrong?
What to do?
This is experimental blog I am talking about
I shoulg build bilingual blog for one my friend and this is the first time I work with some language plugin.
I must say that Xlanguage is grat plugin!
January 12th, 2009 at 3:37
Dzonson,
I checked your new blog, I can switch between SR and EN and it seems to be worknig correctly. Though in EN there is an Image but SR there is not. You might want to check the HTML tag is done correctly. Please use HTML source code mode to review the tag, you would see the text are tagged by <span lang=”en”> and <span lang=”sr”>, that’s how xLanguage doing its job.
MO file is not needed for language switching and writing in multiple language. MO is just needed to get the translation of the buttons, links and those Wordpress stuff, but nothing related to your own post.
For the icon, you have to make your own. I didn’t include every icon for every possible languages (there are thousands of thousands language in the world!). Please draw your own, or pick one from famfamfam.com, and put it in /wp-contents/themes/_your_theme_/view/xlanguage/images/ (create the folder yourself). Refer to “Complete Usage Guide 2″ for more info.
January 12th, 2009 at 5:44
HelloSam,
Thank’s for the answer,I’ll check what you said.
January 12th, 2009 at 14:14
Hi sam, why language selection no come up in my admin text editor (wp 2.6), am i must use version 2.7 ??
How to add language selection in sidebar without widget (manually) ??
Regards
Rudi
January 12th, 2009 at 16:52
At 1st-used-network-hardware.com we’ve been buying and selling used hardware for more than a decase.
January 14th, 2009 at 21:25
I have a theme with hard coded text in the header.php. Is there a way to make that multilingual aswell? I tried span=”" but that didn’t work…
Thanks
January 17th, 2009 at 6:11
#1 I use inove theme and activating xlanguage does make the blog menu empty. You can check my site, it didn’t removed the plugin yet because it’s really cool.
#2 can you activate account creation on trac?
#3 How can I show the “All languages” option on the language menu? I followed the instructions but I don’t see how can I tell to somebody to switch to “xx-all” lang.
January 18th, 2009 at 4:41
Hi there,
I found and installed your plugin which seems to be just perfect to my needs: I am starting a blog and decided to have it bilingual (German/English). It installed smoothly, I have the option windows, added the two languages, activated the widget – but I am encountering two problems, one minor, one serious:
1) There is no such thing as an xlanguage toolbar on my edit window (It looks, by the way, pretty different to your screenshot). How can I make the toolbar appear? Did I miss out something?
1a) There is, however, a possibility to use a custom field called xLanguage_Available. If I add it, an “unspecified error” occurs. If I update the post, the custom field has been added, with the value “,de,en,”. What do I do with that custom field?
2) The first language “Deutsch” (German) is written on the widget area on the blog – but there is no speech bubble next to it, just the text. The second language “English” does appear with such a speech bubble, sporting, however, only “E” and not “EN”. How do I make the speech bubble appear? Why doesn’t it in the first language? Can I change the speech bubble’s content, and if so, how?
Thank you very much in advance and please keep on the good work!
Regards from Berlin, Germany
Martin
I am using wordpress 2.7 and IE7.
January 19th, 2009 at 0:03
Hi
I have problem with xLanguage. Switching pages works fine, but with xLanguage plugin function doesn’t work.
Look to http://oniar.eu – there are diffrent places used this wp_list_pages. In header – all page names are included and showing the both language )I am using as separator in single line mode. But in footer and sidebar – its needed to have function – and this doesn’t work.
What I need to add to theme, to get everything to work?
January 20th, 2009 at 18:25
Hi,
is there a fix or an example on how to set a tag correctly? I placed the more tag in each language section, but the first languange is shown up only, in the total view of the article the language works correct… to place the tag I used the TinyMCE editor..
January 20th, 2009 at 19:16
Hi,
This may not be the preferred way to fix your More tag problem; but it seems to work for us.
When creating a multi-language post we only use 1 more tag. If you consider your teaser text in each language is put before the more tag and the rest after then its simpler to understand
eg
language 1 teaser text (or intro paragraph)
language 2 teaser text (or intro paragraph)
language 3 teaser text (or intro paragraph)
-more tag-
language 1 rest of text
language 2 rest of text
language 3 rest of text
Please let me know if there is a better way to do this.
thanks,
January 20th, 2009 at 20:46
Hi Andy, thanks for the hint and for me it works and it is ok to handle in that way…
January 27th, 2009 at 20:59
Hello Sam,
I have Worpdress 2.7 and xLanguage 2.0.1 installed (I upgraded from previous version). I am having a problem with flag icons. The xx.png does not show up at all. But the xx-active.png works fine
I copied the flag icons to
wp-content\themes\default\view\xlanguage\images
and
wp-content\plugins\xlanguage\view\xlanguage\images
But still only active icon show up. I even went ahead and reset all options to default configuration and redid the add language but still same result
January 29th, 2009 at 15:45
Wow, awesome plug-in. I never came across a plug-in like this. but it sounds so cool. I really want to try it out. but how is the stress on the blog? as i already have few extra plug-ins installed. Thanks for the awesome plug-in. Cheers
January 30th, 2009 at 7:01
[...] kann, habe ich nicht nur Wordpress auf den neuesten Stand gebracht (Version 2.7), sondern auch das xLanguage-Plugin installiert. Mal sehen, wie das so [...]
January 31st, 2009 at 5:45
[...] (totally with title, rss, categories working, not just the post) and allows visitors to pick …..read more Download Plugin! Version 2.0.1 Last Updated: January 4, 2009 Author: Sam Wong, Huizhe Xiao [...]
February 3rd, 2009 at 3:25
Hello you lot,
I am using WP 2.7. and Xlanguage 2.4 works fine, but …
1.)Although the title of the post is displayed correctly, the URL does not.
if I use single line filtering mode e.g. TitleInEnglish|TitleInGermany in the title of my post and my default language is English the title of the post is TitleInEnglish
but in URL there are displayed both titles English and Germany without pipe it means there is something like /lang/en-us/TitleInEnglishTitleInGermany
2.)Question – It is really necessary to display /lang/en-us/? It would be better without this.
Thanks
Jeremy
February 3rd, 2009 at 3:29
Sorry Xlanguage version 2.0.1
February 3rd, 2009 at 9:31
The plugin works, except if I have a table inserted to my page. If I comment out the table, the rest of the page is translated. If not, it does not translate anything. Please help, thanks.
February 3rd, 2009 at 23:25
Hey Sam.
at first i have to say: thank you – great plugin!!!
I have WP 2.7 and xLanguage 2.0.1 and everything worked fine. I translated a few of many pages into 3 Languages (en,de,es). Today I wanted to do a few more pages, but instead of doing what xlanguage should do, it displays all of the three versions. Are any problems like that, or even solutions known?
February 4th, 2009 at 16:43
Hey Sam, great plug-in. Tried it out and it started of like a charm. Loving it. Still converted it to de only. But it works great. Just thought to drop a word and thank you. Keep it up man. You rock. Cheers
February 5th, 2009 at 17:59
I had further problems with your plugin but found out an interesting thing:
if i modify the style of my text for example like this: text and i want to do it in a special language it only works like that: text
February 6th, 2009 at 12:43
Hey, that’s an awesome plug-in. I’ve got few users from different countries and this was ideal for them. I implemented it few weeks back and the feedback is awesome. Just thought to say thank you and say hi. Cheers
February 6th, 2009 at 23:51
I need language switching between Spanish and Portuguese but basically for the menus, pages, category names, etc (the static content)
However, I don’t want to post different content for each language in my posts. I was wandering if the method that xLanguage use will reduce much duplication work.
If I understood right, after I set up the basic bilingual navigation, I would’t have to do any tagging or customizing in particular with the posts, since both versions of the blog will share the same multilanguage post content, right?
II’ working with WP 2,7 localized in Spanish with Arthemia Premium theme, also localized in Spanish)
February 8th, 2009 at 8:43
I have been looking for a plug in like this for a long time. I hope it works as good as advertised. If so, I will be one happy camper.
February 8th, 2009 at 8:59
It would me nice if you includ the some cool features qtranslate have, I think yor plugin is better, but if you include the qtranslate stuff, you are going to be invensible.
February 8th, 2009 at 13:32
I’ll try this out, thanks for sharing. Yes, I am also grateful you translated the language to english as well. What plugin did you use to translate your text?
February 8th, 2009 at 22:59
Dear, how do I change of language on a page?
I have a little div with some flags, which link should I put on each flas to display the language?
thanks
February 9th, 2009 at 7:13
Great plugin, thank you, although I found a couple of issues while trying to get this working with my setup:
Some of the views used
<?rather than<?phpto open a PHP code block, and my server wasn’t parsing these as PHP.The version of John Godley’s Plugin class you’re using has been updated to cope with the new WordPress capability to have your plugins, themes, uploads, etc outside the main WordPress directory.
My suggested fixes are here as a diff, in case you are interested.
February 12th, 2009 at 0:25
how do I change of language on a page?
February 12th, 2009 at 0:30
@Allen McDaniel
Use parser “Square Brackets”…
February 12th, 2009 at 0:33
And you shopuld unckacked “Filtering” mode in “Language (Advanced)”
February 12th, 2009 at 16:15
hi. can i use xlanguage translate the navigation bar into other language. how can get the same function like your blog?
February 12th, 2009 at 18:33
@eric…
If you have Conten filtering “enable” you will have the problem with pages into navigation bar.The “enable” should bu unmarked like in this screenshot.
I am using Sguare Bracket,and into the same post you should write bilingual texts…
February 12th, 2009 at 19:38
how can i choose to use another Theme instead of the default one for some languages in the “Presentation” ?
February 13th, 2009 at 3:20
[...] xLanguage (plugin page and example) [...]
February 13th, 2009 at 3:39
@Allen McDaniel
Use parser “Square Brackets”…
February 16th, 2009 at 14:44
Pls can anyone tell me, how to use this plugin when im using static page as a front page ??
I’ve add 2 language (English and Indonesian), if i try to change language in my front page, its displaying my latest post, not the static page that i choose from admin.
im using WP 2.7
and xlanguage 2.0.2
February 21st, 2009 at 11:00
Yey – OK, got it resolved by changing Permalink setting in WP Settings from Default (I used “Day & Name”)
February 23rd, 2009 at 11:19
That’s a really cool plug-in. I definitely try this one out. Too bad I didn’t come across it earlier. Nice work anyway. Love the idea for the plug-in. Cheers
February 24th, 2009 at 15:27
I have instaled the plugin and every thing looks ok, but when I try to go to the spanish version, I get the next error: “The browser connected successfully, but the connection was interrupted while transferring information. Please try again.”
Help me please
Bea
February 26th, 2009 at 20:04
How do I get the language to show up in the sidebar?
Also when I try to tag in different languages, all I get is a strikethrough effect and both languages will show in the blog.
How do I fix this?
I’m using Mac Os X Leopard and Safari browser.
February 26th, 2009 at 23:22
Very helpfull..
February 27th, 2009 at 1:48
[...] trying to investigate the code, however, my php coding is a little weak for this. I tried with the xLanguage plugin, but unfortunately it has some installation issues. Nevertheless, I wrote in the Supporting [...]
February 27th, 2009 at 4:38
Hi!
Im wondering how i get rid of the text missing message i have som products in one lang only and dont want anything to appear in the other. using custom fields.
Thanks for a great plug-in/Lasse
February 27th, 2009 at 4:48
I have a webshop and I want to sell to Dutch and English visitors. Your plugin is just what I needed. At least I thought so. Because it looks like it is not possible to make the e-commerce plugin by Instinct multilingual. Am I right?
Regards.
February 27th, 2009 at 11:12
That’s a really cool idea for a plug-in. It will be really useful for most of the bloggers nowadays as many people from different countries visits blogs. Nice plug-in. I’ll give it a go in the weekend.
February 27th, 2009 at 21:08
HELP!
I dont want anything to be displayed if text is missing in one language how do i do this???
February 28th, 2009 at 23:43
This is very intelligent thing and promote our web in different country where English is not understand
we can used it in any country really cool:-p
March 2nd, 2009 at 4:25
Hello,
I’m a newbie and I have a question: The URL of my starting page ends with /blog. Now when I click the language switch on the starting page, the URL becomes /blog/?lang=en-us, resulting in a syntax error unexpected T_STRING. (on all other page I don’t get this error) What can I do to prevent this parse error?
Please help/
March 2nd, 2009 at 18:51
To other newbies: I solved the question from my earlier post (syntax error) by changing the permalink structure to numerical.
Thanks.
March 2nd, 2009 at 20:32
I’m a bit wondering. how could we changed some picture within the theme or even make theme by oueself?
March 3rd, 2009 at 5:08
I operate many different blogs that are popular in different countries. However my main language is English and it would not be proper for me to try to write in any other languages due to my handicap. This xLanguage plugin for Wordpress would greatly assist me in communicating my blog to all users that visit my sites. Thank you for the detailed write-up and your help is always greatly appreciated.
March 4th, 2009 at 3:15
and xlanguage 2.0.2
supportive?
March 7th, 2009 at 12:07
有谁知道要怎么让 Theme 本身的页面也能运行多语言呢?
比如在 sidebar.php 加了一些字句需要中英文的版本。谢谢!
March 10th, 2009 at 10:38
Thanks for the tips. I am trying to offer my blog in many languages and this will help me a lot.
March 11th, 2009 at 15:27
I’ve got the same issue as Jakob. I have managed to highlight the languages when writing a post by using the control keys. However, once I visit the post on my blog, both languages show up. I’m using Windows XP and browsed with Firefox + IE. Same results. Any ideas?
March 13th, 2009 at 18:05
That’s a really useful and fun plug-in
Great work with it. Language support has now come to many of the products we use and it’s really good to see blogs also supporting many languages. Keep up the good work. Cheers
March 17th, 2009 at 1:24
First of all thanks for this great plugin. It’s amazing and it suits my needs for blogging. I have a question. I have a blog in Spanish, English and Icelandic. Sometimes I translate the text into all the 3 languages, but sometimes I just blog in Spanish and English. So if an Icelandic user comes to the entry I would like to show them the text in English. However, although I have set English as a fallback language for Icelandic and it seems to work in the titles, it doesn’t work in the entry text (it doesn’t display the text tagged as English). How can I fix this? I don’t want to filter the posts.
March 18th, 2009 at 4:20
By the way: I downloaded and installed the latest version: 2.0.2 but in Wordpress it says I am using 2.0.1 (plugin section of the Dashboard).
So I am not sure what version I am using: 2.0.1 or 2.0.2.
Grtz, Jay
March 18th, 2009 at 4:24
sry to spam your blog, but there’s one other thing: I enabled the filter and all of its settings, even rebuild the index twice but when switching between the two languages it still shows all posts for both languages, even when I disable (by removing the lines) the fall back settings.
Leaves me to say that your plugin is awesome and nearly perfect
March 18th, 2009 at 14:09
Hi, Sam, do you know why you get so many comments? you should learn some SEO knowledge and then you get the answer
March 19th, 2009 at 21:38
I have added 2 flags on my sidebar, but I want when you are ina determinate post, when you click on a flag, it translates the current page. Actually in my site it goes to the main page (translated)
how can I do?
Which is the php code I should inster as a link?
thnks
March 23rd, 2009 at 22:23
Nice and vers useful plugin !
One problem – The offical German locale code is “de-DE”. Unfortunately the plugin doesn’t take this. It only takes lower case letters. To work around this I take the de code and have to copy the offical de_DE.mo file to de.mo which isn’t nice. Can you please adjust this for the next update ? There are other locales wiith uppercase letters too (e.g. en_US).
Regards, Albrecht
PS: Is there any way to get rid of the “lang” string in the URL? I would prefer to have only the locale code in my permalink
March 24th, 2009 at 3:09
There is no doubt this plugin would be very useful in making sites more accessible. Keep up the good work.
March 24th, 2009 at 9:48
nice share
March 24th, 2009 at 9:48
Cool tool thanks for posting this up
March 25th, 2009 at 10:23
I had trouble with your v2.0.1 and I had to remove it. But few days back I gave the newer version a try and it worked perfectly. Thanks for the wonderful plug-in. Keep it up. Cheers
March 25th, 2009 at 19:22
hi Sam, I’ve figured it all out! the issue I had with the filter (comment #425) is fixed. I hadn’t noticed the xLanguage custom field (in the dashboard post edit page) where it says what languages a post supports. probably i had to rtfm :p
A minor issue on that: after regenerating the meta data, articles are given both language codes in this custom field. even if it isn’t translated. that can be set correct very easily manually though.
March 26th, 2009 at 13:58
Sam,
Great plugin! One thing, I was having trouble getting more than one flag to show up, and so I was digging around and found that in the /xlanguage/view/xlanguage/list_langs.php file there is:
and my server was tripping up on that, so I changed it to:
That worked better!
Also, I understand the filtering method works just fine, but it you the date can be pulled from mo files, are there other strings that can be automatically done as well?
Thanks,
March 26th, 2009 at 14:02
Ok, evidently that didn’t display as planned, but I found an opening php tag there it was just “«?” and not “«?php “
March 26th, 2009 at 16:14
Flags are working fine for me without any change in the code. I embedded the code into my template which I am going to “make mulitlanguage – aware”. Works fine …
Again: The /lang/.. string in the URL is a real show stopper for SEO aware blogs. Should be solved very soon – Can anybody help ??
March 26th, 2009 at 17:15
Re: language code:
The plugin requires a 2 to 4 letter code for the language locale. The pattern is “xx” hyphen “xx” all lowercase. Wordpress itself requires 2 to 4 letter code with the pattern “xx” underscore “XX” last two letters capital. Running xlanguage out of the box, man has to rename all its .mo files provided originally by wordpress to match the xlanguage “xx” hyphen “xx” pattern and get things to work. Also SEO …..
March 26th, 2009 at 22:29
I will try to come up with a better idea so renaming wouldn’t be needed, but so far there isn’t such a plan just yet…As it’s a one-time operation anyway.
For SEO, you could try the following in the configuration:
1. Create a language called “all”, mark it as the default for Search Engine
2. In Language (Advanced), in the “Mix and Match” table, specify in the “Show” box of “All” to includes all your language, comma separated.
3. Try to use a browser and preview how does your site look in /lang/all, make sure it all languages are shown there.
4. Back to the Language (Advanced) page, in the “Presentation” table, allows Search Engine to ONLY see the “All” locale, and User to ONLY see those “non-All” locale.
5. Then now, all the search engine can see are “all”, and there won’t be /lang/xx for the search result, because such a link is not available!
6. You could use UserAgent switcher to verify this setup.
March 27th, 2009 at 6:39
Sorry my english firstly, i read well but i cant write
, So its useful post for me and i bookmarked your blog.
March 28th, 2009 at 5:24
Hi there,
first off, thanks a lot for a great plugin!
I have a question, rather of a cosmetic matter, how do I remove the language indication “bubble” icon to the left of the language name on the main page (like here on the upper-right corner)?
Thanks!
- loocas
March 28th, 2009 at 21:53
Thanks for a great plugin.
But, when I moved the site from /var/www to /var/www/testserver I experience a problem with the header.
what do I need to do with these warnings?
Warning: fopen(/var/www/site/wp-content/uploads/2008/10/xlanguage-parser-176060526809320669.log) [function.fopen]: failed to open stream: No such file or directory in /var/www/testserver/site/wp-content/plugins/xlanguage/admin.php on line 156
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/testserver/site/wp-content/plugins/xlanguage/admin.php on line 157
Warning: Cannot modify header information – headers already sent by (output started at /var/www/testserver/site/wp-content/plugins/xlanguage/admin.php:156) in /var/www/testserver/site/wp-content/plugins/xlanguage/xlanguage.php on line 243
April 1st, 2009 at 6:55
hi, thanks for the plugin!
how can I change language in a button in the header?
really thanks!
April 8th, 2009 at 2:19
谢谢您
April 8th, 2009 at 3:05
great sharing. this is a great plugin
April 14th, 2009 at 5:13
I get an error when using the following piece of code:
$posttags = wp_tag_cloud(array('format'=>'array','number'=>20));The error looks like this:
Could you have look at this?
Thanks!
April 15th, 2009 at 6:33
Hi there Sam. First I must say this is the greatest wordpress plugin I’ve found so far. I’ve been using it for almost a year or year and a half. But I have a problem… since the last version I have this
[code]
Warning: fopen(/home/.wooshie/dibujor/ejeda.com/wp-content/uploads/2008/06/xlanguage-parser-1341106798274786538.log) [function.fopen]: failed to open stream: No such file or directory in /home/dibujor/ejeda.com/wp-content/plugins/xlanguage/admin.php on line 156
Warning: fclose(): supplied argument is not a valid stream resource in /home/dibujor/ejeda.com/wp-content/plugins/xlanguage/admin.php on line 157
Warning: Cannot modify header information - headers already sent by (output started at /home/dibujor/ejeda.com/wp-content/plugins/xlanguage/admin.php:156) in /home/dibujor/ejeda.com/wp-content/plugins/xlanguage/xlanguage.php on line 243
[/code]
apearing in my dashboard (withou the ‘code’ of course). I haven’t changed any configuration from my blog, nor the location or host or anything. Just apeared one day for, apparently, no reason. I’ve tried to upgrade Wordpress to resolve the problem, it didn’t work, updating xlanguage doesn’t work either. Currently I have Wordpress 2.7.1 and xlanguage 2.0.3
Fortunately you can’t notice any problem visiting my blog but it’s really annoying having that error lines OVER the header of the dashboard……
any help?
anyway, THANKS again for your really good plugin
April 16th, 2009 at 3:25
Sorry I am real busy in these days. So here are a quick hint that hopefully could be useful – check the existence of the file (the log file that it is complaining). If the file is not there, simply create an empty one, and allows the web server to write into it – which usually means chmod 777.
April 16th, 2009 at 6:22
Hi Sam, thanks for your quick response. I think the problem is here “Warning: fopen(/home/.wooshie/dibujor/ejeda.com” , that .woosie part between /home and /dibujor. I’ve received a mail from my domain hoster saying that they’ve changed my account to another server. This isn’t a problem (I didn’t noticed at all) save for this problem with xlanguage. If I deactivate xlanguage there’s no warning at all so…. there’s some place where xlanguage calls for this path instead of a plain /home/user ……. that’s why it can’t find the .log file. Where can I change this behaviour?
Thanks again Sam…take it easy, and have a rest man.
April 16th, 2009 at 6:38
I’ve done as you said… the file IS there and with 777 enabled. Error message still appears so, I think the problem is what I said before…. the path. Where can I modify that route?
April 17th, 2009 at 8:02
Hi,
I’ve read all the comments and noticed many people having the same problem as I am, but you haven’t answered.. I have activated the plugin, tagged the texts (xhtml) and made sidebar function and the prefix appears in the url. But plugin does not hide the “wrong language” -tagged text, they both appear simultaniously. When tagging, editor shows a strikethrough effect and code seems to be right, adding span lang=”fi” or span lang=”en”. I’m using finnish as primary and english as translation, using codes “en” and “fi”.
Also when trying to use square bracket mode, plugin added the bracket to the visual editor making it visible in the post/page. So it looked like this to readers: [langen]text text text[/langen]. The XHTML span-tag doesn’t have that problem but still won’t work properly.
I have read your user guides a hundred times but still not finding the solution
PLEASE help me, I really want to make the plugin work!!
April 17th, 2009 at 8:06
Forgot to say, I have display filtering enabled, no mix&matches and my page is xhtml valid.
April 17th, 2009 at 13:04
@Tiina
As far as I know, the default tags for you should include the bracket character: [lang_en], [/lang_en], [lang_fi] and [/lang_fi].
Did you change this format in your settings?
If not, please use the tags above instead of the ones you mentioned.
April 18th, 2009 at 5:52
@Tiina,
I recommend using XHTML over [lang_...] because it makes less cutters and cleaner code, however XHTML mode requires your post to be absolutely XHTML valid and parsable – which the WP editor is known to not always producing one.
Especially if you have the more or nextpage tag, you have to make sure the HTML tag does not span across it.
So back to the topic, the [lang_en] should work, but as Volker pointed out, it’s [lang_en] but not [langen].
XHTML should also work, start trying with simple “Hello, World” post before you start tagging a complicated multi-page teaser enabled post. If the XHTML encountered is not valid, it will be logged. The log can be retrieved in the 4th xLanguage options page.
Also try to change the Subject to “Language 1|Language 2″, if even this are getting filtered, something obviously went wrong. May be the plugin, configuration, or some other plugin and theme you are using.
April 18th, 2009 at 5:54
@Dibujor:
So you said your absolutely path changed?…hm…you can either change it correctly if you dig into the WP MySQL database and change it…
Or the only workaround I can think of right now is to start over – reset the settings (3rd options page) and recreating everything again.
Good news is that you won’t have to retag all the messages and posts.
April 20th, 2009 at 20:51
Hi Sam, thanks!. I made as you said. Reset the settings to default worked like a charm and it wasn’t so hard to enter the settings again. But now I’ve found another problem…. as you can see in my sidebar, the splitter doesn’t seem to work in the “links” section. I use a widget to display my links and the title of the link categories is splitted like this ” Amiguetes|Buddies” and that is exactly what is shown entirely, instead of “Amiguetes” for language 1 (spanish) and “Buddies” for language 2 (english). It worked well before and I haven’t changed anything. It works well now in any other part of the blog, except for this… any help?
April 20th, 2009 at 23:39
Hi Sam, sorry for been bothering you. I’ve fixed the links error, just adding “link_category” to the single text filter hooks. I usually search before asking for help but……
well, I have the same error displaying the tags under my posts. Not all posts have tags but whenever they are, they show as “trabajo|job” (or whatever). I’ve added “the_tags” in ALL the hooks but it isn’t displaying properly……. perhaps I’m using the wrong filter?
April 24th, 2009 at 14:25
[...] lediglich Blogposts in unterschiedlichen Sprachen verfassen möchte, könnte mit xLanguage bedient sein. Auch dieses Plugin wird jeweils auf die aktuellste Wordpress-Version angepasst, [...]
April 24th, 2009 at 15:25
[...] lediglich Blogposts in unterschiedlichen Sprachen verfassen möchte, könnte mit xLanguage bedient sein. Auch dieses Plugin wird jeweils auf die aktuellste Wordpress-Version angepasst, [...]
April 25th, 2009 at 1:40
Hi Sam, First – thanks for the plugin. I am working on getting you food!!
A small question: I there special problem concerning tags. I have a and nested your text into this .
Problem is switching language only works when I put the … into a leading followed by a .
Next problem is that when I switch from “html” to “visual” view in the editor the … is gone and language selection doesn’t work either.
Any help appreciated !!
Alex
April 25th, 2009 at 1:46
Ok that didn’t work at all… All my editing in the comment is gone. Sorry about that. Let me try to describe my problem then.
I am creating a div in my post and I nest the text for the two languages inside the same div.
Problem is it only works when I put a paragraph tag around the language tag inside the div.
The real big problem is that the paragraph tag is gone after I switch from “html” to the “visual” editor.
I can only test it in preview. As soon as I sae the post the paragraph tag is gone too.
Any help appreciated !!
Alex
April 25th, 2009 at 19:55
Hi Sam,
I have another question, this time related to SEO. Following your recommendations I’ve setup a third language (All) and mark it as the only available to browsers (and not the users). I’ve redone my sitemap and sent it to google. I can see all the URL’s on my sitemap have the “/lang/all” thing on them (I don’t know how the users will see this when they make a search via google…) but now, reviewing your sitemap.xml (I can’t find any other user with xlanguage AND a sitemap.xml), I see your URL’s don’t have that /lang/all part, just the plain usual url’s.
How have you done that?
April 27th, 2009 at 5:37
Hello Sam,
first of all thank you for the very good plugin!
However, I’ve got a problem.
I use a theme with its own PO file and original English version of WP 2.7.1. The theme uses _e() and __() as appropriate.
When I invoke load_theme_textdomain(‘themedomain’) from theme’s functions.php, I see no translation at all. When I use ‘default’ as the domain name, it works fine, but I have a trouble if I install same language PO in wp-content/languages – the translations seems to be merged and I often have a translation from languages’ PO instead of the theme’s one.
What can you recommend?
April 27th, 2009 at 15:22
Does it work without any problem with wordpress 2.7.1? I have a project in mind where I could use your plugIn very good. A short yes or no would be perfect – thanks.
April 27th, 2009 at 16:38
Hello. The plugin is working great, except for one big problem that I have: I can see all the posts translated to the different languages, except in the HOME page, where it shows you a brief introduction text of each post, but always in the same language, no matter which language the user selected.
Any help?
Thank you very much.
April 28th, 2009 at 16:17
Could you translate everything in English.Thanks in advance.
May 1st, 2009 at 0:20
Hi. Great plugin, but I do have one question:
say I have two languages set up on a website. And I would like to set language no.1 for all visitors, nevermind their browser preferencies, cookies or else. Simply, every new visitor should see the site only in language no.1 and then, if he wants, to be able to switch to no.2 if he likes.
I was trying to play around with the preferencies of the plugin, but no luck there, is there a workaround for this?
thanks in advance
May 1st, 2009 at 18:03
I am going to build up and search site for hotels in different languages. Maybe your tool exact what I am looking for – I will test it and till I know more I want to thank you for sharing.
May 7th, 2009 at 18:11
Hi HelloSam, hi Dibujor,
I came accross the same problem when changing my hosting company for my main blog. And then again when I upgraded and the hoster changed my webspace. The reset worked fine for the main blog (running on WP 2.6.7) but it crashed my admin panel for my other blog (http://www.binomsc.com) .
I asked my friend who knows php better. He suggested to use “DOCROOT” or “SYSROOT” instead of “dirname(__FILE__) and use this feature regularly (e.g. every day) to update the path to the logfile.
Pls help / change / update! Some lunches are promised
Martin aka binomsc
May 14th, 2009 at 23:21
Hi, anyone knows how to prevent xlanguage to display the available languages on my post custom fields? I’m Using this outside of the loop ,
, and on each post I get” xLanguage_Available: ,es,en-us,”.
Thanks!
May 19th, 2009 at 5:29
[...] xLanguage Ett plugin för du som bloggar på flera olika språk. xLanguage låter besökaren välja mellan vilken språkversion av bloggen som denne vill läsa. Användargränssnittet är dock inget för nybörjare och kräver viss erfarenhet av Wordpress. Relaterade inlägg:Wordpress 2.6.2 och säkerhet [...]
May 20th, 2009 at 14:54
I just started off with xLanguage and working smoothly for me. Even though i got that error “can not redeclare class xLanugagePlugin on line 996 in xlanguage.php” i managed to scroll down and make it through. Because i have seen some installations like that before. In fact this article could be very useful for someone to solve their problems with xLanguage. Thanks
May 20th, 2009 at 21:16
I get the folowwing error: Warning: Invalid argument supplied for foreach() in /home/public_html/wp-content/plugins/xlanguage/view/admin/language.php on line 102
May 22nd, 2009 at 20:16
Thanks for the instructions.It is really helpful.Keep it up.I will back
to read something else.
May 22nd, 2009 at 23:29
I also see the same problem as Arto in Comment #383 – whenever I have a table in my page, none of the pages is translated.
I am using Wordpress 2.7.0 and xLanguage 2.0.3.
May 22nd, 2009 at 23:37
Further to my earlier post about inserting a table causing translation to break. I find that if I add a paragraph tag around the text inside my table cells (and also around the used by xlanguage), the problem goes away. However, each time I switch back to Visual view in Wordpress, it removes the paragraph tags (presumably because it thinks it does not need them).
May 23rd, 2009 at 22:22
re: James Mernin: I get the exact same problem. I posted here a few weeks ago to no avail…
I tried the plugin “wp-unformatted” but that didn’t help either. I am sure our problem is with the main editor of WP. It re-formats the html content if you go back and forth between “visual” and “html” editing. As long as you stay in the “html” editing mode all is fine. But I had to configure a blog for a non html person. Therefore I solved the multi language through tags and deactivated the plugin. But now we need seperate articles per language: more…
Maybe someone here knows how to disable auto-format in the WP editor for good?
May 25th, 2009 at 5:53
Alex: You are correct that the Wordpress editor has a part to play here but I think that xLanguage just isn’t handling the effects of the WP Visual editor correctly. I have noticed that if you eliminate *all* white space between paragraphs inside your table cells (or explicitly add tags as I recommended), then the translation works fine. In fact, you can use any characters except spaces between the paragraphs.
However, like you said, as soon as you switch to the WP Visual Editor, Wordpress replaces some of your carefully formatted HTML and xLanguage breaks again.
I also noticed that some older HTML that is not XHTML compliant also breaks xLanguage (e.g. img tags are typically not terminated in HTML and this means that they are invalid XHTML)
May 26th, 2009 at 11:44
That’s a really cool plug-in. but does it affects the performance of the blog? with all the content it needs to load? I’ll check this out tonight. Thanks.
May 27th, 2009 at 5:05
[...] xLanguage Wordpress Plugin The Network under Posted by root 20 hours ago (http://hellosam.net) Enable wordpress to do multilanguage posting totally customizing your wordpress all my editing in the comment is gone sorry about that i am working on getting you food a small question i there special problem the network under the bright bright sky is pro Discuss | Bury | News | xlanguage wordpress plugin the network under [...]
May 29th, 2009 at 13:50
That’s a really cool plug-in. but does it affects the performance of the blog? with all the content it needs to load? I’ll check this out tonight.
May 29th, 2009 at 16:56
This is a rally useful plug in. But i suggest if it can help some of the scientific terms properly it would take users far away with this. Hope there will be better upgrades soon.
June 1st, 2009 at 12:17
That’s a really awesome plug-in. I came across few of these before but not as great as this one. Thanks for the information. I’ll check this out and see. Cheers. Keep up the good work.
June 2nd, 2009 at 7:14
I have big problem. When I formatted some text (for example to list, heading, bold or something else) nothing to be translated. I see formated post on every language on same site. In html code is chaos. I clear my html, but nothing help for translate. When I not formated one text, everything is ok. What you say for this?
I try qlanguage plugin, but it is not work for search on different language, how work xlagunage. Now I try zdmultilang first with or without xlanguage.
June 2nd, 2009 at 13:00
I try this plugin: “PS Disable Auto Formatting” and work xlanguage with formated text such list, table, heading etc… I activate this plugin while I formated text. After post entrys: both (with visual editor and html editor) formated text is now visible only on own language site, but everything is deformating. I must edit all css files and template files on my theme (index.php, single.php,archive.php …) to format again all entrys. This is not a simple way to haeven, but work… But when I inactivated “PS Disable Autoformating” plugin. All formated text kept our format in right format after deactivation. May be not necessary edit css and template to change my life… What you say for this? Am I really stupid?
June 5th, 2009 at 21:33
Hi,
I think this is a great plugin and I am really excited tying it on my website.
Now, I seem to be missing something.
I have published something in english and spanish for test.
I have figured out that if I change the ?lang= property manually in the url, it displays the language I want.
And also figured out how to link to archives in each language,
but I can’t figure out whether or not this plugin will create automatically a button for changing languages.
I’ve seen that in this blog it gives the option of changing language at post meta data line and also on the side bar.
I admit that I have modified both the meta line and the side bar before trying this language plugin.
I only wanted certain things to display. Could that be causing the problem?
Is this plugin supposed to create these language buttons?
June 5th, 2009 at 22:30
Is there a way to specify the translations for the “Archives” and “Meta” sidebar widgets? Not the translation for the titles, but for the links in those widgets? i.e. “June 2009″, “Site Admin”, “Log out”, etc
June 5th, 2009 at 23:48
the same question. is there a way to use this plugin just for sidebar? i mean is it possible that the user could only change language for my sidebars text?
June 6th, 2009 at 0:07
@Kristijonas: Just do not translate any other content on your side?
June 6th, 2009 at 2:48
Also, what is the best way to go about translating a lot of the “default” wordpress text. Stuff like
Posted by on · Leave a Comment
Filed under , tagged with
Speak Your Mind
Tell us what you’re thinking…
and oh, if you want a pic to show with your comment, go get a gravatar!
Logged in as . Log out
Submit content
June 8th, 2009 at 0:11
binomsc: i need to change page titles, that i see in my sidebar, not the content inside. found something about it in the manual, (Widget Title Customization) but didn’t get it…
June 8th, 2009 at 0:29
ok, i got it. but what about Tagline? When i add tags around it, i can see whole text in page (with span tags). Should i hook it somehow, so it would work the way i need?
June 8th, 2009 at 19:25
ok, I have the plugin install. now show with WP 2.3.3 fatal error
I have gone wrong? Thank you
June 8th, 2009 at 19:55
Thanks for usefull post, good luck!
June 9th, 2009 at 18:05
Seems like xLanguage is a very efficient plug in for people who use other languages. Specially for Asians IMO. Tell me more about this plug in. Like how many languages does it support etc.
June 9th, 2009 at 20:53
Yet another dead student project? OpenSource is cool, BUT… Is anything EVER answered here? Did you starve? Did you abandon the plugin? Can you imagine thet there are people trying to get your stuff to work and you just sitting there and meditate in silence doesn’t help.
A bit anoyed… Either answer, update the plug or shut the whole thing down.
June 9th, 2009 at 21:25
Well said Alex!
This is a great plug-in but is flawed in a number of key areas for me and I’m beginning to lose patience with it. It is annoying to see so many comments go unanswered. What’s more, the number of comments here really warrant the creation of a proper forum for the plugin. What we are commenting on here is no more than a single blog post.
June 9th, 2009 at 23:27
@Alex and @James Mernin:
Very demanding posts…
May I ask you whether or not you already donated something to finance Sam’s work? Or are you expecting full time work and 24/7 support for free?
And even if it is a “dead student project” – it is open source, so start to maintain/improve it yourself! You are not able to? Then go and hire some experienced php-developer to fix it for you. You don’t want to pay him? So… then I would expect you to be a bit less demanding – or find some other – better – language plugin. Good luck.
June 9th, 2009 at 23:55
@binomsc
I guess you could say that our comments are demanding but I prefer to think of them as constructive and honest. I posted a number of progressive comments some weeks back that tried to focus in on one of the problems I was having in the hope that it might provide extra details for Sam for the next release. When others would have moved on to another plugin, I took the time to stick at the problem so as to be as accurate and precise as I could, but to date have received no response.
That said though, I do accept your point in the spirit in which it has been put and certainly do not expect full time or free support. I guess this plugin is a victim of its own success as the volume of comments on this issue suggests.
June 10th, 2009 at 0:15
@James Mernin
Thanks for your respond. And you have a point, too. Probably Sam is really “overrun” by the success.
I just think this is a great plugin. Even if it has bugs – it is the best I found by far, and it was developed by just one guy. Maybe he is just on vacation, or has to pass some exams
That’s why I was upset about Alex’ post (and your agreement) and decided to react…
BTW, Sam sent me a short email last time I posted a request/suggestion saying that he will be busy next days and weeks but will review it asap. Probably, because I also made a small donation – which is just fair IMHO.
So let’s hope Sam -or some other developer – will find time to support and fix some stuff.
June 10th, 2009 at 1:54
I wish I am still a student but I am not…there was so much free time by then. I must honestly admit that I am devoting much less time on this project while I’m engaged in something else now.
@Alex, @James Mernin, @binomsc
I appreciate your comments and understand that those are from your heart and in good faith. Only those who cares will leave such a critical comment, those who doesn’t care would have left right away.
BTW, I’ve followed up your questions in email. Let me know if you have further question, or if you can’t receive my reply, or anything…Thanks.
June 10th, 2009 at 3:44
[...] xLanguage oleh Sam Wong, atau [...]
June 10th, 2009 at 5:39
Hi Sam,
Thanks for replying, and even through email. I am sorry about my comment. Sounds harsh when I read it now…
But hey, it helped, we got an answer!! And thank you for that. True that I stuck and will stick with the plugin. It’s concept of not having to put in separate articles for the separate languages is great !!
@James Mernin: I can only second what you said. You really exactly put it the way I meant it. Because I stuck with the plugin I got annoyed that it was screwing with me and that’s why I posted here again.
@binomsc: Thank you for your words. I like it when people speak up. I’m not an ass, I love what I do and then it can be that I get emotional about it. But I did post quite some time ago and I did spend many more hours on my blog because the language formatting would get lost alllllll the time. And no I haven’t donated anything. Shame on me. But my pockets are empty too and I got mouths to feed… I will – promised (now that I know I need to post at wordpress for fixing the syntax reformatting
)
June 11th, 2009 at 7:27
Hi Sam,
First off thank you for the wonderful plug-in . it is fitting my needs very well. I have a question and hope someone can offer a simple answer. If I would like my Categories names and Navigation bar translated, what code goes where. I’m new to this and can not figure out this step. I will be complete when I do this.
Thank you or anyone who can help in advance.
I’m sure it’s not as complicated as I’m making it, but I just can’t figure it out.
June 11th, 2009 at 11:35
@David A
To translate the system text, please use the MO file. Please refer to http://hellosam.net/project/xlanguage/4
June 11th, 2009 at 16:29
@David A
Have you tried to use the separator: | ?
You did not provide your website, so I can not check if this is the problem, but try it.
If you have a category like “Games” and want to have it in Spanish as well, the category name should be changed to “Games|Juegos”. Same for navigation – your navigation is probably the name of a static page, isn’t it? If your page (which is a navigation item) is “Contact”, and you want to have it in Spanish, you should change the title of the page to “Contact|Contacto” or something like that.
BR
Martin
June 11th, 2009 at 18:54
Hm…need to try it. Hope It will fit my needs the best.
June 11th, 2009 at 18:55
Hello. I guess you get this a lot, but can we expect a wp2.8 update of the plugin anytime soon?
June 12th, 2009 at 9:06
There’s still a static page bug when the permalink settings are set to “Default”.
June 12th, 2009 at 13:39
Hi,
I installed this yesterday but the buttons in the editor do not work properly when using the newest safari 4 version on the mac. When you click on the language button, the highlighted text is struck through. All ok in FF however
June 12th, 2009 at 16:32
the separator “|” works smoothly in all sections, but….
I don’t see the toolbar at all!!!
This is so weird….Can anyone help me plz?
June 12th, 2009 at 18:59
June 13th, 2009 at 0:36
I don’t have an ETA for 2.8 update yet. Stay tuned.
Toolbar – I admit it might not work well in different browser. That’s a real hard thing to tune.
If you don’t see the toolbar, try clear all your browser cache and reload.
June 14th, 2009 at 0:36
are you sick of been skint? my site has some solutions to make you money for free check it out
June 14th, 2009 at 18:23
Hi everybody using xLanguage, … , even it’s good plugin has also some problems … maybe someone can help to solve them … anyway thnx for developing this plugin
June 15th, 2009 at 16:43
Hello
What have I to do when i want to change the pictures before name of language?
June 15th, 2009 at 16:56
@maskeiw
The images associated with the various languages are in wp-content/plugins/xlanguage/view/xlanguage/images. All you need to do to change them is replace the files in this directory. However, please note that there are 2 image filess for each language (one for the language when it it active and one for when it is not active).
Also, if you want to add image files for a new language you can place image files here too. You just have to make sure you give them the proper names.
June 16th, 2009 at 5:42
I put xlanguage in to wp-files bat not are into widgets tools
June 17th, 2009 at 3:47
Thanks for the previous reply! I have another question
Our site template uses a static page for the home page (configurable in Settings>Reading>Front Page Display). The translation links do not work if we try to change languages while on the home page. It will take the user to the normal homepage listing all the posts, instead of just translating the home static page. The language preference is changed correctly, it just takes the user to the wrong page.
Is this more likely to be an issue with xLanguage or our site’s template? Is this fixable?
June 17th, 2009 at 4:12
Hello
thanks for nice plugin.
We are using your plugin with Exec-PHP Plugin ( http://bluesome.net/post/2005/08/18/50/ ).
The problem is that if we use language tags on pages where we want to execute php code – then out php inserts does not work.
We tried it in different ways, wrapping only the text translated into language tags, leaving php tags, it didn’t work.
Can you please advice if we can solve this issue?
Thanks in advance
June 17th, 2009 at 18:52
@Ben Middleton
I had this very same problem (i.e. clicking the static Home tab shows the site posts instead). I think the reason it is happening is because Wordpress treats the static/home page differently and uses the main URL for the site as the hyperlink rather than the page_id for the page in question.
In any case, I was able to solve the problem by enabling permalinks on the site.
June 18th, 2009 at 2:12
@Vladimir
The article have to be 100% XHTML valid. My best bet is that the <?php ?> tags are breaking the things.
May be you want to use an alternative way to tag the language of your text – try the Square Bracket option (find that in the advance option page)
June 18th, 2009 at 5:12
Hi, i’ve got a problem with this plugin.
I’m a web developer, i installed this plugin, followed all the instructions (widgetized the sidebar, and set up everything).
Almost everything in the blog is working fine, the flags, content and theme i18n are great, but i can’t login on wp-admin.
When i attempt to login wordpress processes the form, and it redirects me to the login form again with no error message :/
if i attempt to login with fake username and password i get the error message “incorrect username…” as expected, but if i use my real user data nothing happens!
please if someone knows a way to fix this please let me know, i need to make that site works as soon as posible.
thanks for the hard work
June 18th, 2009 at 6:31
Hi Sam,
Thanks for this excellent plugin. For my new company I have started to use WordPress (Joomla is too big) and found yours to be very valuable. However, I am using WP2.8. When I want to login to the admin panel, I cannot unless I rename the xLanguage plugin directory to something different.
You you know what’s going on? Is this a PHP issue?
Bart
June 18th, 2009 at 23:27
@ Twinmold : version 2.8 with german language pack.
June 19th, 2009 at 1:33
Hi .. nice plugin .. but anzway … Does someone have a “Header problem” and at a same time knows how to resolve it?
June 21st, 2009 at 22:48
No other site I found was as helpful as yours has been to me!
June 22nd, 2009 at 2:17
Я конечно, прошу прощения, но не могли бы Вы расписать немного подробнее.
June 23rd, 2009 at 22:15
I think I meet the “Header Problem” too, all the pages works fine in switching languages except home page, when I switch there is 404 error . But my another Site works perfectly.
June 24th, 2009 at 18:00
[...] I have been pondering many approaches for making Mortfiles Evolved available in both Swedish and English and so far I have looked at using a Wordpress MU setup, using the translation service like I have here on this website, getting creative with custom fields and finally using something like WPML or xLanguage. [...]
July 2nd, 2009 at 0:15
Hi, I like this plugin. I want to add it in the header.php not in widgets, how can i do that? thanks
July 2nd, 2009 at 3:18
This is very helpful, thank you! You’ve made it very easy and simple to follow!
July 2nd, 2009 at 16:55
Hi! I read again this tutorial and I got it finally I transferred the code to the header. How about the css? I want to change how it looks to match my menu. I want it just texts line up side by side not blocks. Thanks
July 2nd, 2009 at 21:18
again, nevermind, i found it. Thanks for this plugin.
July 4th, 2009 at 11:07
Hi.
Sorry, never mind – I got lucky. Instead of calling from within a widget, just calling it directly worked… but maybe that’s still a bug?
cheers,
.M
July 4th, 2009 at 15:03
What a great concept for Word Press plugin. I have never heard of a translating plugin.
Hosting Discounts
July 5th, 2009 at 3:36
Cool plugin, i’ll try to add it tomorrow. thanks for the info
July 8th, 2009 at 4:12
Dear Sam, xLanguage is by far the easiest translation plugin I’ve tried. Unfortunately, when I installed it under WP2.8 or 2.8.1-RC1 some javascript on the “new posts” page broke, unableing me to insert/upload new media or even accessing the submenus of the admin area.
Could this be a conflict with version 2.8?
I tried to deactivate the plugin but the problem remained. What is going on?
July 8th, 2009 at 21:37
@Luciano
Sorry I do not have time to work with WP 2.8 yet. And apparently it has to be fixed…I hope someone could provide me a patch or something. ha.
Anyway, it would take a week or two for me to iron that out.
July 8th, 2009 at 22:05
@HelloSam thanks for the quick answer. I’m willing to help fixing it. I already faved the trac.hellosam.net/xlanguage/ in my browser so I can keep up with upcoming issues and see how I can help. You could try to engage developers from the community more often trough trac. Cheers!
July 9th, 2009 at 7:49
Hi
I’m getting problems with permalink. When I change its default behavior (from /blog/?p=1 and so on to /blog/post-name etc) it not redirected to the correct url. In other words, after enabling permalink option and setting permalink to /blog/lang/en/post-name 404 error is thrown
Should I do an aditional configuration or something else?
gratz
July 10th, 2009 at 11:37
@Leo Have you set your .htaccess file properly? It may note be writable…
July 10th, 2009 at 23:59
How can I register on trac.hellosam.net/xlanguage/ to create tickets?
I have found something the bug I previously mentioned. I believe it is caused due to a conflict with TinyMCE and XLanguage. The Webdeveloper Toolbar add-on for Firefox found the following alert: “The stylesheet http://myblog.com/wp-admin/?xlanguage-tinymce-css&ver=5&ver=3241-1141 was loaded as CSS though its MIME Type, ‘text/html’, is not ‘text/css’.” in Source-File: http://sbvirtual.com/sbteste/wp-admin/post-new.php Line: 0
And also this error: “Error: uncaught exceptionSyntax error, unrecognized expression: [@href^='#']”
I still couldn’t find in which files of the plugin it adds the TinyMCE buttons. Hope this can be of help…
July 11th, 2009 at 14:52
Thanks, going to give the plugin a try!
July 12th, 2009 at 21:41
Thank you very much for useful product, i’m going to give it a try too and i will post my review. Keep updating it, as i am planning to install it under WP2.8 javascript as “Luciano Santa Brígida” did.
Thanks
July 13th, 2009 at 21:52
@Luciano: Is that v2.8? I didn’t try 2.8 yet but I suspect my plugin is not compatible with it.
July 13th, 2009 at 23:06
Sorry my english firstly, i read well but i cant write
, So its useful post for me and i bookmarked your blog.
July 14th, 2009 at 17:52
Hi,
Thanks fo rthis mod, it workds great. Is there anyway of displaying the languages in the header area?
Many thanks
July 15th, 2009 at 12:07
To display languages in the header, do the following:
1. Edit the header.php file in your template and add the code : after the navigation bar or wherever you want the languages to appear.
2. If you don’t want the languages to appear with ul/li tags, change list_langs.php and replace the ul/li sections with and just echo out the images and language text. Upload the new list_langs.php file to /view/xlanguage/ under your theme directory.
3. You can set a class for this div in your CSS.
Hope that helps.
July 15th, 2009 at 12:09
The PHP code I added didn’t show, so let me try again…
xlanguage_list_langs();
Put that with beginning and ending PHP code tags where you want the language listed.
July 15th, 2009 at 22:58
I hope someone could provide me a patch or something. ha.Anyway, it would take a week or two for me to iron that out.thank u for sharing.it is very interesting article also.
July 20th, 2009 at 8:23
Hi! I finally ran into this plugin! It’s great, I just have a problem and I was wondering if you can give me a hand… I followed the “SEO optimization” instructions, but in the xLanguage widget appears “All” as the third language. I’m using WP 2.8.1. There’s some way to make it not appear there?
July 21st, 2009 at 8:36
Hello,
I just wanted to post a note to (potentially) help others in a situation similar to mine.
I’ve been trying to find a way to “hard code” some language changes into the template and read comments #120 & #122.
In the first comment, the author discusses an IF/ELSE statement that could be coded as follows…
if (xlanguage_current_language_code("cy")) { ... }(where “cy” is the abbreviation of the language)Then, in comment #122, the author of the plugin suggests that the code above should actually be written as
if (xlanguage_current_language_code == "cy") { ... }However, in my attempts to hard-code a similar solution, I’ve found that the first snippet of code is the one that worked for me.
(that being something along the lines of
if (xlanguage_current_language_code("cy")) { ... })Hope this helps anyone attempting to do the same thing!
July 21st, 2009 at 9:59
FOLLOW-UP to POST #552
My apologies, I think that I wrote before I should have. It turns out that neither option worked.
I tried using
...php...
if (xlanguage_current_language_code("fr")) {
echo "French Title Here";
}
elseif (xlanguage_current_language_code("en-us")) {
echo "English Title Here";
}
else {
echo "Fallback Title Here";
}
and
...php...
if (xlanguage_current_language_code == "fr") {
echo "French Title Here";
}
elseif (xlanguage_current_language_code == "en-us") {
echo "English Title Here";
}
else {
echo "Fallback Title Here";
}
Sadly, neither worked. So, the question still remains: how does one call language control within the template code?
July 22nd, 2009 at 2:22
This is the plugin I was looking for. xLanguage is just great.
July 26th, 2009 at 22:48
Hey,
Seems there is a bug while using the plugin ‘Sociable’ … once activated all the language show up… if desactivated… each language work properly.
best regards,
July 27th, 2009 at 2:24
once again
when using some reserved character in my content (such as & etc) i got parsing error.
Actual problem :
thanks in advance.
July 28th, 2009 at 11:17
Hello,
I’m using yahoo as a hosting company, they do not allow access to the .htaccess file. In order to use permalinks I can only use a custom structure [ /index.php/%postname%/ ] unfortunately when using xlanguage I get 404 errors. Can you suggest any args, structure tags that will resolve this issue?
Thanks
July 28th, 2009 at 19:20
Hi! It sems to me that “Single line filtering mode |” does´t work in this case:
$parent_title = $page_query->post_title;
Can anybody help me? Thanks.
August 2nd, 2009 at 1:25
I visited your site and the xLangauge plugin seems to work correctly. In my design (Theme) I’m using the Pages Plugin to build the menu at the top. The above described method is simply to make the title of the pages work. Either way thanks for posting!
August 2nd, 2009 at 16:20
thanks for information shared….it is beneficial for me n i appreciate it.
August 2nd, 2009 at 23:26
Thanks for the information shared….I believe it is beneficial for people like me who are interested to know and find out more.
August 4th, 2009 at 23:50
Hi Sam,
any chance to upgrade the plugin to work with WP 2.8.x? I would like to upgrade my websites to new WP-Version, but not without your plugin
Best,
Martin
August 5th, 2009 at 22:06
nice done!
it will be great if there are a few widget templates in the next version.
For example – I would like to use FLAGs images nexto to the name of the language and also in the WYSIWYG editor..
or only glossy flag icons…
August 5th, 2009 at 23:27
@Ralev (comment #564)
You can change the images by uploading your preferred ones (e.g. the flags or the glossy flag icons) to
[your Wordpress installation]/wp-content/plugins/xlanguage/view/xlanguage/images/
For each language there are two files, one for active (selected) and one inactive – of course you can use the same here
You only have to rename the files according to your language ID. Assuming you use English, the ID is “en”, so there are two files: en.png and en-active.png If you are using Spanish, it is “es”, so the file names would be es.png and es-active.png. For Italian you would use “it” giving you file names it.png and it-active.png …. I guess you get the pattern, don’t you?
I changed the pictures on my sides according to better meet the themes, it’s easy. You just have to be careful with updating the plug-in, that you do not overwrite your specific files with the standards – this happens to me all the time and then I have to upload my files again
August 6th, 2009 at 3:32
This plugin is very useful, but I this search engine optimization will be more difficult using more languages on your wordpress blog. This is why I am using SEO Toolkit Pro to optimize my blog.
August 6th, 2009 at 4:24
@binomsc,
I am using xLanguage with 2.8.3 and it seems to be working fine so far. It says only tested up to 2.7, so I guess I am testing it!
August 6th, 2009 at 15:31
I have a question. In the header.php file of the theme I use, there is a code describing the menu of the site in header.php
<a href=”/”>Home
<a href=”">RSS feeds
How should I change the code if I want the “Home” and “RSS feeds” to change with the language? The page titles change automatically when I put the “|” character in their titles, but these ones don`t.
Actually, my question is valid for all texts which are in the theme files. For example, my theme`s footer has a text field in which I can enter a short description of the site. How should I transform it so it can change together with the language?
Thanks in advance.
August 6th, 2009 at 23:36
@Georgi Kamov,
Try :
August 6th, 2009 at 23:38
oups …
Try
August 6th, 2009 at 23:40
sorry, impossible to copy-paste a piece of HTML code in these comments ???
August 10th, 2009 at 17:25
Hi,
I run WP 2.8.3 and my Wordpress URL (xyz.123.user.com/wp) is different to my Blog URL (domain.com). The plugin works fine, but the url rewrite has some errors now. Instead of showing the domain.com/lang/de/contentpage it shows xyz.123.user.com/wp/lang/de/contentpage. It works, but this is bad for SEO issues. Can I change a database entry or is there another fix for that?
Best
Alex
August 10th, 2009 at 17:35
Thanks for this information, this plugin is very useful.
August 10th, 2009 at 17:45
Another Question:
Should I update my Google Sitemap Infomation? Instead of domain.com/contentpage for example domain.com/lang/all/contentpage?
August 11th, 2009 at 12:49
I just downloaded xLanguage today and I notice you reference a user guide. Where can I find it? I am having a problem with the setup and I think if I had your guide handy it will be helpful.
I set up our static website to use US english (en-us) as the primary language with french (fre) as the 2nd choice and saved. But I don’t see any results. Any suggestions you can make will be greatly appreciated. Thank you so much!
August 11th, 2009 at 17:11
@Carol
I had a look at your site and it looks like you have setup xlanguage fine (as it changes to language specific URLs).
I hope not to upset you with this question, but are you aware that you have to “manually” translate every static page (and article) you write and then mark the English part as “English” and the French part as “French”? This is done by selecting the text and hit one of the language buttons in the editor. In the title of the site or article, where you have only one line, you have to use the | as seperator.
Let’s assume you have a welcome page. The title is “Welcome” and the text is “Hello, welcome to our site”. As I can not speak French I make the example with German
The title would be:
“Welcome | Willkommen”
and the text field would be.
“Hello, welcome to our site.
Hallo, willkommen auf unserer Webseite.”
While the first sentence is selected and marked as language 1, the second sentence would be marked als language 2.
All parts not marked as special language will appear on all language versions. I use this for all images and galleries or videos etc. which I do not have to add twice.
Here I uploaded a screenshot for you.
Hope that helps?
Best,
Martin
August 11th, 2009 at 20:07
Hi Martin,
You are so kind. Yes, I’m aware that we have to manually translate the text. But I don’t see the controls, even after activating the widget in the admin area. That is why I sent the post.
Someone else, who speaks french, will be doing the translation. I sent her an email to verify that she can see xLanguage in action. As long as she can see it that’s what counts. Or maybe I’m not looking in the right place. What I will do is restart my browser and check again.
I appreciate your response very much and thank you for this plugin!
Thank you and have an amazing day!
Carol
August 11th, 2009 at 20:10
I do have one additional question: I see where the visitor can choose the translation links in the sidebar. Is there a way to put those links at the top of the list of links for those pages where we currently have links to other pages? Right now the language links are shown at the bottom of those links. I’d like to make sure that if we add pages the xlanguage links will remain at the top.
Also, I there a way to substitute the language choices with icons representing the flags for the country of the translation?
Thank you again!
August 11th, 2009 at 21:32
Hi Carol,
you’re welcome. Just to clarify: I did not develop that plugin, I am just a fan of this great tool
Regarding your questions:
1) Images: Yes, you can change the image presented with the links. I have changed it myself on my pages and descriped the way to do it in comment #564 .
2) Location of the language links: this depends from the theme you are using. Usually you can manage the theme widgets, and reorder them. I am not sure which version of WordPress you are using? I am using a German version of WP, but in your version it should be “Theme/Design” => “Widgets”. Pls have a look at this screenshot – although it is in German, the look should be similiar in your dashboard. You can re-arrange the blue boxes on the right side, placing the “xlanguage List”-box where you like, and save it!
3) Finding the controls: if you set up the languages correctly, they should show up in the editor when opening / drafting / changing any article or page. I am not sure if it is a problem if you are using “en-US” or “fre” instead of a double-letter code (like “en” or “fr”)?
Good luck!
Best
Martin
August 12th, 2009 at 0:55
Right now the language links are shown at the bottom of those links. I’d like to make sure that if we add pages the xlanguage links will remain at the top.
August 13th, 2009 at 15:49
I am using the xlanguage plugin to translate my posts (great plugin btw). But at this time I need to translate a brief descriptive paragraph that is hardcoded in the header template.
August 14th, 2009 at 3:04
Hi,
that’s a great plugin !
I just have a problem with IE8 on Windows 7 : the languaged color highlighting doesn’t work (works great with other browsers)
Thank you so much !
Julian
August 14th, 2009 at 18:21
Hi, xlanguage was working fine on my pc but recently switched to mac ox and the highlighting and bubble icons dont work properly. When i highlight it puts a line thru it like the scratched ABC icon and then even if I double click to make it disappear the languages dont appear on their corresponding pages. I retried it with my pc and still worked fine.
Any suggestions or will i have to switch templates to use my mac?
August 14th, 2009 at 18:36
@Jenni (comment #583): which browser are you using? I work on MacOS X (latest version) with Camino Browser and Firefox Browser, both are fine on my WordPress Websites.
August 14th, 2009 at 22:23
thanks…before i got your msg i downloaded camino browser and all works fine now. thanks…
August 16th, 2009 at 4:59
Thanks so very much for your help. I upgraded to WP 2.7 and that didn’t help, but it did help that you said your plugin was working. I decided to try using a plugin other than Blogger Re director and was actually successful with that.
August 17th, 2009 at 3:25
To fix the redeclare issue, move the class file to a separate file, and reference to it using an include_once dirname(__FILE__).’/xlanguage.class.php’; from xlanguage.php
August 17th, 2009 at 4:09
August 17th, 2009 at 4:10
“Under Mix & Match, for the language ‘all’, list all your languages in the ‘Show’ field, list nothing (empty) in the ‘Available As’, and set -1 in the ‘Position’.”
hi,
when I do as sited, my settings isn’t saved. Do you know the cause? It’s a bug?
Thanks
August 17th, 2009 at 5:22
Hi Roonan,
I think you refer to my post:
August 17th, 2009 at 17:42
Hi Alex,
I wasn’t responding to your issue specific, but more in general to the notice accompanying this plugin:
August 17th, 2009 at 20:26
@SEOctrl / #588:
I checked it myself (WP 2.7.x) and it worked fine. One issue I can imagine is to use “,” as separator between two language codes, e.g. “de,en”. When I tried “;” (de;en) I got an error message.
Which WP-version, which operating system and which browser are you using?
Can you make a screenshot of your settings page of xlanguage plugin?
Best,
Martin
August 18th, 2009 at 8:56
Hi Martin,
In post #577 you directed me to comment #564 for your explanation for changing images to flags that represent the country of the translation. On our site, we have no existing images to replace. We’re using en-us for english and fre for french and no images appear. I noticed that when I originally used en that what appeared to be a bubble appeared, but not with en-us. How do I assist xLanguage in displaying icons where no images are currently being displayed? Thanks so much.
August 18th, 2009 at 16:39
Hi Carol,
I guess (again, I am not a developer of that plugin) that xlanguage is looking for a image which has the same name like the language code. As currently there are no such image files for your language codes (fre, en-us) available, it can not show any image.
Here is what I would try to do:
1) Choose the image(s) you want to use. Remember, there is usually one image if the language is selected, and one image if the language is not active. If you want to use the country flags for instance , you could use one colored version (for active language) and a grey-scale version if the language is not selected.
2) Scale the pictures to the right size and save it with the names of your language code. For you, there should be four files:
- fre.png (french, not selected)
- fre-active.png (french, selected)
- en-us.png (English, not selected)
- en-us-active.png (English, selected)
3) Upload all files to the folder [your Wordpress installation]/wp-content/plugins/xlanguage/view/xlanguage/images/
4) Hope the best
Good luck!
Martin
August 19th, 2009 at 23:37
Very usefull plugin. Looking forward to a new version where /lang/ is removed
August 20th, 2009 at 10:22
Well, Martin,
The flags are not showing up now that I’ve uploaded the us-en.png and the us-en-active.png. I uploaded the same for the French flag. I noticed in the original code for this plugin the only images provided are en.png and en-active.png. Does this mean that this plugin does not support images? Or are we using language abbreviations on our site that the plugin is not expecting? I thought in another post someone was able to display flags.
August 20th, 2009 at 10:25
BTW, I realize you are not the developer but I do appreciate your assistance. Does the developer provide feedback at all?
August 20th, 2009 at 16:38
@Carol
I tried it twice but it looks like I can not answer you here. I added some links, but the commenting field does not like it if I put in to many links. Maybe the comments have been automatically filtered by Askimet SPAM-protection plugin and have to be approved by Sam (the developer) manually.
However, I try to send you an email via your website
Best
Martin
August 20th, 2009 at 20:51
Interesting plug-in indeed. Certainly was helpful. I had no trouble installing it. Thanks a bunch for the plug-in. Appreciate it.
August 21st, 2009 at 0:21
A question….
Can i also use the single line filtering mode in the description field of all in one SEO?
August 22nd, 2009 at 0:46
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. The presentation of the template functions can also be customized in your theme folder without touching the code in the plugins.
August 22nd, 2009 at 3:21
Hi! Thank you very much for the plugin! Great work!
I have one question so far. How do I make it work with “custom_more” fields. Here’s more info about this field — http://www.wprecipes.com/create-custom-read-more-links-on-your-wordpress-blog
The “|” thing does work with titles, but doesn’t with “custom_more”((
Hope you can help! Thanks in advance.
August 26th, 2009 at 6:18
[...] habe dann xlanguage getestet, aber irgendwie kam ich damit nicht so gut zurecht. Also wieder gelöscht und zur dritten [...]
August 26th, 2009 at 13:02
Is there an abbreviation for french that includes an image when the link is displayed. From experience ‘fre’ does not allow an image to be displayed with it.
August 28th, 2009 at 1:57
Hi Carol,
I have tested it on my side – I had no problems adding French language with fre as code and using the images fre.png and fre-active.png as images. Probably check again for CAPITAL letters. Make sure that you always use lower case letters, in the options as well as for the image file names.
Best,
Martin
August 29th, 2009 at 12:57
I reinstalled the blog and experience the problems described in 229, 239 (but number of string is 102) :
*Warning*: Invalid argument supplied for foreach() in */home/xxxxx/public_html/wp-content/plugins/xlanguage/view/admin/language.php*on line *102*
I use permalinks
Hey guys, do you know reason? I only reinstall the blog – before this msg was absent
Thanks
August 29th, 2009 at 13:21
It begins then add all language:
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.
August 30th, 2009 at 22:52
I took some time to get it to work, but now it works. Great plugin. One remark: On activating the plugin the menu for the plugin “wordpress-admin-bar” disappears. Just to let you know. But for this blog I dont really need the adminbar.
August 31st, 2009 at 0:12
Hi
I started trying using your plugin.
It looks great but I have some problem with the title.
I made a test with a page in Japanese and French.
I put the title in Japanese and French and between the 2 titles I put a | mark.
When I click on Japanese language in the sidebar widget, only the Japanese part of the title appears which is normal.
But when clicking on French, the title is Japanese title|French title.
Did I miss something about the way of writing the title ?
August 31st, 2009 at 5:46
Yes I did miss something. Now I understand
August 31st, 2009 at 7:54
Hi
I have another problem.
On my site, as home page, I set a static page, not my latest posts.
But when I use xLanguage, the home page is showing the latest posts. Is there a way for the home page to show a static page with xLanguage ?
Thank you
August 31st, 2009 at 11:02
Hi, Thank you very much for such a great plugin. Will try to do my best to contribute in one way or another.
I have not played many days with the pluggin, but so far, here are the problems I can across:
1) On the toolbar widget, the other language url change http to https.
2) “Almost pretty” Permalinks stopped working, I had to set it back to Default.
3) The front page static links stopped working.
If you can direct me to any documentation on how to fix those, that would be very appreciated.
Keep up the good work.
Patrice
August 31st, 2009 at 20:02
Hi Sam,
I want to report that when I insert an image (from file or url) in the post/article, the xLanguage doesn’t get to handle the two languages I’ve selected in the post. If I delete the images, it works ok.
Any I dea how to solve it? I have tried to add and remove manually the tags in the images, but didn’t work. Any reply and tip would be appreciated.
Thanks in advance,
Lucato
August 31st, 2009 at 22:21
Hi Martin,
I tried again to get the flags to appear and like magic they did. Perhaps I did have the filenames capitalized before but it’s all working fine now for english abbreviations of en-us (as the instructions provide) and en, and for french abbreviations of fr and fre. I guess it will work with any abbreviation you give it as long as the filenames match. Thanks for the follow up!
September 3rd, 2009 at 2:23
Hi,
I’d like to contribute $, but I would first like to get some help in fixing the home page issue on my installation, can someone contact me please?
Thank you.
Patrice
September 3rd, 2009 at 3:32
Just to share with you all, regarding the issue I’ve reported on #612, I got to solve it. Instead of using the default XHTML parser I’ve changed the option to “Square Bracket, then XHTML if no square bracket tag were found” and now I’m using the Square Brackets instead of the tag.
September 3rd, 2009 at 3:37
@raphael_ber (Regarding #608).
Have you tried to change the “|” for you own code, maybe it can be conflicting with Japanese characters. In the xLanguage option you can change it for the code you want to. Maybe you can use “#t#” or something else. Well, just a suggestion. Try a different stuff. ;0)
September 3rd, 2009 at 5:15
@Lucato
Regarding #608
This problem is fixed already, thanks !
It was just because I added 3 available languages in this order: Japanese, French and English.
And in my post title, I added only 2 languages. When I added an English title, it could then work.
So when you have x languages, I guess you should x-1 | in the title (one between each language).
The problem I raised in #610 seems more difficult.
Thank you
September 3rd, 2009 at 18:49
Can’t believe I’ve only just come across this – I can translate by blog pages to French and Spanish now, thanks a lot!
September 8th, 2009 at 5:07
This plugin has a problem with WP 2.8. When you create a language, then you can’t log out and log in again. It’s a pity cause it’s the best pluging for the translation
September 9th, 2009 at 0:51
Hi
Is it possible to use this plugin also to have image captions in multiple languages?
I tried with the | but that didn’t work.
Thanks
Arto
September 9th, 2009 at 17:27
Hi folks, I need a help. My site is in two languages pr_BR|en-us, but the months in the locale.php file are in pt__BR. I’ve tried to edit the locale.php and added the “|” in the months, but it didn’t work. It showed both like “Setembro|September” instead of showing only the 1st for the 1st language and the 2nd for the 2nd language. Any tip how to get to use the months, week days, dates translated for the 2nd language?
Thanks in advance.
September 9th, 2009 at 19:10
I guess the bug #8 which is said to be fixed in v1.3.1 remains/reemerged in v.2.0.4. My home page is static and when there is a ?lang=xx query string in the url, the blog page comes instead.
September 10th, 2009 at 16:31
This theme element: title=”Permanent Link to ”
breaks, when the post/page title contains anything like …
Result:
title=”Permanent Link to …”
–> an extra: TITLE”>
in front of the page title.
Any ideast of how to write the title
September 10th, 2009 at 16:38
So, I wanted to use inside a title = ” … ” element. This breaks HTML, because the title will then contain a span and there will be invalid nested quotation marks. This is already a language specific theme file…
September 10th, 2009 at 17:52
Guys, I need a help. I’m using xLanguage for two languages en-us (English) and pt_BR (Portuguese) and the months in the locale.php file are in pt__BR. I’ve tried to edit the locale.php and added the “|” in the months, but it didn’t work to make each month for each language. So, It showed both like “Setembro|September”. Do you guys have any tip how to get to use the months, week days, dates translated for the 2nd language? How does xLanguage handle it?
Thanks in advance.
September 11th, 2009 at 23:39
If you want to 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 is a full featured plugin allows you to blog in different language, and allows user to select which version to read. It works for blog post, page, tags, categories.
September 15th, 2009 at 1:02
when I insert an image (from file or url) in the post/article, it isn’t visible. while inserted in the static page – it works ok.
also I want my home page to be static page, but xlanguage always shows my blog entry as my home page.
September 15th, 2009 at 13:57
Great plug-in. I loved it. Still experimenting around but I really wanted to say something about it. Great job. Cheers
September 16th, 2009 at 13:56
Awesome plug-in. I really love the fact that the plug in only needs a little configuration to start off things. Appreciate the effort. Cheers
September 17th, 2009 at 16:37
After installing Bootcamp and Windows on my MacBook I found out that IE7 does not play nicely META refresh. In protected mode IE7 does not follow it (or maybe just not to external domains). The solution is to wrap the meta tag in a noscript tag for crawlers and use a javascript redirect for browsers. Though it should be noted that the Google crawler actually follows both a meta refresh redirects and simple javascript redirects.
September 17th, 2009 at 18:41
Hello,
First of all I’d like to say that this plugin is great! I love that it doesn’t require any changes in the database and overall it’s a very solid plugin.
But I’m experiencing some difficulties, probably due to my own incompetence.
I’m trying to include the first three posts from a specific category on a separate page by using the query_posts function included in Wordpress. Previously I had two mirrored but translated categories, one for each language.
But I don’t know how I can select the correct language in the query_posts code when the two categories become one. As it is now the permalink defaults to the first language installed and the excerpt/content/title visible on the page also defaults to the first language.
I’d like to make two different pages getting the first three posts. One in language X and the other in language Y.
In short: How can I set up the permalink and contents to select a language when I’m including posts on another page?
September 18th, 2009 at 18:04
Great plug-in. I loved it. Still experimenting around but I really wanted to say something about it. Great job. Cheers thank you
September 25th, 2009 at 4:56
Nevermind my problem. I found a solution to forcing a language without using the url/cookie/browser detection.
Just declare the correct variable after the inclusion of the Wordpress-header (and its contained plugins, including XLanguage). For example:
language = 'YOUR LANGUAGE CODE'; ?>
It might be a good idea to redefine the variable $xlanguage after you’ve used the section of your site with the forced language requirement so nothing breaks.
September 25th, 2009 at 8:37
I found out that the plugin is messing up with my s and so there is a parse error. Anyone knows why is this happening? What should i do so that the plugin doesn’t mess with my s ?
thx!
September 25th, 2009 at 8:45
i changed to [] instead of span and it worked ^o) thx anyway
September 25th, 2009 at 9:48
sabross,

maybe you wrote “” and the system printed “s”
but that’s hillarious: “the plugin is messing up with my S”
September 25th, 2009 at 9:53
yep, it’s not printing html entities…
…translating my last comment empty quotes into literal machine language, i meant: “maybe you wrote QUOTE + SYMBOL GREATER THAN + span + SYMBOL LESSER THAN + QUOTE”
September 25th, 2009 at 14:20
Hi folks, any Idea how do I call a second language to the same article. I mean, now a days in my site when I call the second language “PAGE”, it goes to the main page (?page_id=0), but I’d like to make the user be redirected to the same article he/she was reading to the other language. I mean, lets suppose the reader was reading one article (page_id=365) in the LANGUAGE1 and he/she clicks on the PAGE LANGUAGE 2, instead of jumping to ?page_id=0&lang=LANGUAGE2 I’d like to jump to ?page_id=365&lang=LANGUAGE2. So, how to make this page_id=*, understand any page instead of an exact number? Or what link would I use to call the same article in another xLanguage.
Thanks in advance.
September 28th, 2009 at 17:26
Hi, this is a fantastic plugin. I have only one big problem. It is impossible to turn back to the home page that I have created. The home page ends on .nl and when I get to another page of my website, the language is added in the address. But because the homepage misses the language, and should have one to be able to get back, it is impossible to return to the home page. Can you please help me out, because this is vital for my website, as you will understand. Thanks!
September 28th, 2009 at 18:41
great plugin! it works perfectly
September 28th, 2009 at 19:37
Hello,
First, thanks for your plugin. It’s great.
Second, I have a little problem when adding/editing a post in admin. Category names are not filtered in the category box (I’m using the | syntax). I’ve added the “link_category” filter to the hook section with no avail. I’m using WP 2.8.4.
September 29th, 2009 at 0:36
I have a similar problem, when I use get_cat_name(3); I obtain the non filtered result: “Dernier projets|Latest projects”
any idea ?
September 29th, 2009 at 22:12
Great stuff!
But I have some problems with OSM-plugin. Once I just enable xLanguage, all content generated by OSM is not displayed in my posts. Does not matter how I manipulate the tags. Don’t know if it is a problem by OSM or xLanguage plugin. Greets, Michi
September 30th, 2009 at 7:46
Hello, your plugin is just amazing.
I am starting to use it on a variety of sites.
I got a question, is it possible to make RSS work with feedburner?
Cheers
September 30th, 2009 at 15:39
I have installed this wonderful plugin. I have also installed the plugin Gigpress. The “View all shows” leads to nothing. The message is “not found, you are looking for something that is not there”. The url of this View all shows is [website address]/gigpress-upcoming, just as I have said in the settings of this plugin. But in the url of the homepage the language value is added, for instance: [website address]/lang/en-us/. The url of another page > also contains the language: “[website address /lang/en-us/giru-2009″. Just adding a language in the url for “View all shows” did not help. My website contains 4 languages.
October 1st, 2009 at 2:30
the plugin is great thanks
October 2nd, 2009 at 22:33
ok, I just used wp_localization(get_cat_name(3)); to get my category name localized.
October 4th, 2009 at 2:02
hi, the plugin is great!!
but why can’t i set the title of it in the widget setting?
furthermore, could you teach me how to change the appearance of the plugin being shown in the sidebar?
e.g. not a list but different flags lining up?
thank you very much!!!
October 4th, 2009 at 17:28
This is a wonderful plug-in and will definitely use this at some point in the future. However, after trying to remove this plug-in from my hosting site; I see that you write a log file to your own server; which cannot be deleted, since you are the owner of that file. Which means I can not completely uninstall this plug-in. I don’t mind if you see that log file; but allow users to delete this log file.
October 4th, 2009 at 23:43
Is there any way to make it works on the nickname input field at profile in the back end? The author name can change in different languages. I tried to use the “|” but didn’t work. Any idea or hacking for it? If not, it is a suggestion for the next update.
October 5th, 2009 at 13:48
All of these types of “my programming language is better than your programming language” discussions are just academic nonsense I cannot believe how much hot air is generated by these types of discussion. Who cares as long as it works and helps me make a living with the minimum of fuss and expense. PHP is good enough for web development (for now), if something better comes along I’ll use that. Worrying about whether it’s pure OO, worse/better than C++/Java etc. i
October 6th, 2009 at 23:19
This plug-in is awesome for French and English in Canada.
I have compared with others but:
-were auto translators (instead of language switching)
-did not offer multilingual for categories, pages, tags.
-errors occurred with my setup
I appreciate the SEO bonus that all languages are within one url for a post
Thanks Sam!
October 9th, 2009 at 13:05
Вижу не первый раз серьезный пост на вашем блоге. Может о надвигающемся кризисе напишите?
October 10th, 2009 at 23:12
Hi,
I have a little problem with this plugin.
I use the mystique theme. I translated the theme and everything works fine till i turn on this plugin.
When i do that the translation for the theme disappears (the plugin works ok and i can switch between languages) when i turn it off the theme translation work ok. Any idea on how to fix it?
October 13th, 2009 at 1:58
Hello,
I found/fixed some issues with xlanguage, hope it can help some people here !
1. xlanguage.php page 929
return untrailingslashit(substr($url, 0, strlen($pre)) . ‘/’ . xLanguageTagPermalink . ‘/’ . $lang . substr($url, strlen($pre)));
The trailing slash should not be removed. Indeed, if the slash is not there, this causes a temporary redirection for all links like categories, pages in the sidebar when fancy permalinks are used in wordpress and are ending with a slash (because Wordpress rewrite rule adds the slash again). Thus, degrading performances a lot when clicking on the links.
2. basic fallback for singletext when not set or empty
Currently, if you don’t set a value when a separator is used, then the values is not defaulted.
example for three languages: News||Novedades
For the second language, nothing will be displayed
Basic fix:
function filter_text_real($content, $forced_single, $lang = ”) {
[...]
if (strpos($content, $this->options['split']) !== false && ($forced_single || strpos($content, “\n”) === false)) {
$index = $this->options['language'][$lang]['pos'];
$parts = explode($this->options['split'], $content);
if ( isset($parts[$index]) && $parts[$index] !== ” )
{
return $parts[$index];
}
else
{
return $parts[0];
}
return isset($parts[$index]) ? $parts[$index] : $parts[0]; /*$content*/
} else {
In bold, the id of the language to fallback. You can probably read the value for the fallback in the options, but for me all languages fallback to first one.
I’m not sure the last return is needed (and one function should have only one exit point actually…)
The code is probably a bit ugly but i’m not at work
There is also another issue (or behavior that should be followed according to me): when a post is written in one language and has some parts not tagged and then it is displayed in another language not tagged in the post, it should fallback to the first language. Currently it is not and it just displays the untagged elements.
I made a fix for that (as I am using 5 languages so it is not always translated) but it is too ugly. Still I think it should be fixed in a next revision.
Thanks for developing such a great plugin! Some great ideas here.
Cheers
October 13th, 2009 at 2:52
I am using xLangugage in my blog. One issue I have is with excerpts. I couldn’t get it working with excerpt text. Any suggestions?
October 13th, 2009 at 3:38
DT, I didn’t check the behavior of the excerpt, but if you are using xhtml mode, first check if you don’t have any parsing error when displaying the page.
Then check if the_excerpt is correctly defined in the list of filters in the xlanguage options
good luck!
October 15th, 2009 at 8:14
мдяяяя :.. *много думал*:. автору спасибо за пост !!
October 16th, 2009 at 9:09
[...] Lo otro, desde ahora vamos a comenzar a escribir en inglés también, gracias al plugin xLanguage. [...]
October 17th, 2009 at 0:23
DAMN! Sorry for the spam. please edit my posts to this:
http://nopaste.info/9b7d12ce90.html
the tags are not shown…also not in the html code tag (
)October 19th, 2009 at 5:52
ok the problem with the html [p] tag is solved… it was my fault. but what about the category-tag?
October 19th, 2009 at 21:50
Thanks so very much for your help. I upgraded to WP 2.7 and that didn’t help, but it did help that you said your plugin was working. I decided to try using a plugin other than Blogger Redirector and was actually successful with that.
I’m not sure what you mean about a problem with the Blogger template body. Where are Blogger tags visible?
October 20th, 2009 at 5:01
Simple question.
How do I have the static element in my page translated. For example, the “Written by” _name “at” _hour… tanslate in my loop under the title?
October 21st, 2009 at 18:49
Hi,
in my theme everything works perfect exept for the drop down menu – the | doesn’t do anything. The menu item just looks bla bla | ugu ugu instead of being switched. This drop down menu utilizes the category and child categories structure of the blog. Where do I need to make corrections for this to work properly – so that xLanguage sorts this menu too?
Thanks
October 22nd, 2009 at 12:37
I am setting up a blog in French and English and most of my posts will be video clips hosted on Youtube. However, I can’t get this plugin to show Videoclip A for French and Videoclip B for English. Any ideas? Thanks!
October 22nd, 2009 at 12:54
I have problems with this plugin. After activate it, my access to blog with original blog’s path is OK (blogdonetmind.com) BUT access to my blog with complet url (www.blogdonetmind.com) produce many requistions and break the normal access. After unistall the plugin, acess is normal again in both path blogdonetmind.com & http://www.blogdonetmind.com
Sorry my english
Thanks in advance
October 22nd, 2009 at 14:46
Having the same problem with Featured Content Gallery 3.2.0. It stops working after activating social bookmarks. I tried de and reactivating several plug-ins, but still couldn’t get it to work once social bookmarks was reactivated. FCG immediately starts working again once SB is deactivated. Any suggestions how else to fix this? thanks.
October 23rd, 2009 at 9:00
We can no longer defend the drug dealers. ,
October 23rd, 2009 at 9:59
By the early 1950s, the continuing American inflation began to turn the tide of international trade. ,
October 26th, 2009 at 1:02
I’m searching for days now, but nobody seems to bother, that the category-slugs are not translated…
Guys: Try to roll over the category-link and you will see that it is not translated!
Somebody has a solution? Pleaaaaase :>
October 27th, 2009 at 5:35
For any of you out there who are looking for exact instructions for adding the xLanguage functionality to the Wordpress Popular Posts plugin here they are:
1. Open wordpress-popular-posts.php in an text editor
2. Search for “html_entity_decode($post_title)”
3. Change to “apply_filters(‘localization’, html_entity_decode($post_title))”
There should be 3 occurrences and they are on lines 264, 276 and 279 in version 1.5.1
-Grant
October 28th, 2009 at 23:44
about the issue first mentioned in comment#120 and replied on #122 (see also #522 #523)
after trying odd codes with my poor php skills i found the solution!
ther’s an error in the syntax of the plugin’s author ‘if’ statement:
this is what the author suggests
if (xlanguage_current_language_code == “cy”) { … }
this is the working one
if (xlanguage_current_language_code() == “cy”) { … }
i found it trying to echo the variable xlanguage_current_language_code
hope it works for you as it did for me..
happy coding
October 29th, 2009 at 15:25
programming language is one of the most difficult course…. i am a programmer…. i have a site http://www.naturalhomerugs.com
October 29th, 2009 at 18:10
Hello,
I don’t know if this is the proper place to report a problem. BTW in admin.php you do this:
if (strstr($_SERVER['REQUEST_URI'], 'post.php') || strstr($_SERVER['REQUEST_URI'], 'post-new.php') || strstr($_SERVER['REQUEST_URI'], 'page-new.php') || strstr($_SERVER['REQUEST_URI'], 'page.php'))
{
$this->add_action('admin_head', 'admin_head_post');
But you spread your javascript over ALL admin pages, so the result is that some plugins that for example use tinymce, don’t work because of xlanguage undefined variabiles in javascript.
Please, could you fix this?
Thank you
October 29th, 2009 at 23:11
Hi
I am using xlanguage on my website. Thanks for the plugin.
My site is in French and English.
I noticed that when I change language, the position of the text (title and content) is not the same.
My default language is French. When I switch to English, the position of the text is a bit more down than the French version.
I looked the source code of the home page and noticed that when I switch to English, I’ve got this html tags that I don’t have in French:
Does somebody have the same problem ?
Thank you
October 29th, 2009 at 23:15
Sorry I thought the code would be printed. The code is like this: >pbr /br /<
October 30th, 2009 at 3:06
My configuration:
- last version of WordPress
- last version of xLanguage plugin
I installed xLanguage. First, the plugin worked well. The title and content of every posts & pages displayed correctly, in french or english, depending of the user language preferences. All links were correct.
When I changed my premalink configuration from default to something more SEO friendly (in this case: index.php/postname… and I’ve also tried postname), every link leaded to a 404 page.
I searched in the comments, in the doc, in other websites… nothing seems to answer my question. Someone had the same problem and found a solution ?
Help/support will be appreciated.
=================================
Ma configuration:
- dernière version de Wordpress
- dernière version du plugin xLanguage
J’ai installé xLanguage. Au départ, le plugin fonctionnait bien. Le titre et le contenu de chacun de mes billets et chacune de mes pages affichait correctement.
Quand j’ai modifié la configuration des permaliens pour quelque chose de plus compréhensible pour les engeins de recherche, soit de default à index.php/postname (et j’ai aussi essayé avec postname), chacun de mes liens mènent à une page d’erreur 404.
J’ai cherché à travers les commentaires, la documentation, à travers d’autres sites… rien ne semble répondre à mes questions. Quelqu’un aurait eu le même type de problème et aurait trouvé une solution ?
Votre aide/support sera bien apprécié.
October 30th, 2009 at 3:49
Xlanguage usually seems a lot harder during the initial stages but you get used to it and it gets really easy to understand after awhile, great descriptive article. Thanks for posting!
October 31st, 2009 at 4:05
It is true, when you try to write it in one language it doesn’t really tag with other languages, I’ve tried to overcome this problem, but it keeps happening over and over again..Could someone please tell me what to do?
November 2nd, 2009 at 4:21
Wow this is super confusing. Please can someone translate what you’re supposed to do after an install in simple terms?
November 2nd, 2009 at 7:08
OK, I figured this out. For the newbies out there like me, here’s what you do.
1) Download and install the plugin in the plugin folder.
Under Mix and Match, for Locale Code es put “en-us” under Fallback.
2) Activate it.
3) Click on Settings > XLanguage (left column).
4) Under Add Languages, type in Locale Code “en-us”, Name “English” (remove the quotes), Add Language
5) Under Add Languages, type in Locale Code “es” (for Spanish), Name “Spanish” (remove the quotes), Add Language
6) At top click on Language Advanced. Click to Enable Content Filtering. Hit Update Filtering Options.
7) Under Presentations, select all check boxes under Availability. Hit Update Presentations.
9) It should be asking you at top in yellow to regenerate the metadata. Go ahead.
10) Open up your latest blog post that you want to translate. Click edit. With the Visual tab selected, you will see 4 new options to use on your menu bar that look like thought bubbles. Highlight the first paragraph and select thought bubble 1 “tag as en-us.” Click over to the HTML tab. You should now see that the paragraph starts with and ends with . Alternatively, you could paste this in yourself.
11) Click back over to the Visual tab. Highlight the paragraph again. Go to Freetranslation.com and paste into their window to translate from English to Spanish (Mexican) or whatever language you are doing. Translate. Copy-paste both the English and translated Spanish into Word. Copy the Spanish text back into Freetranslation.com and convert back into English. Note that it does a decent job but not great. Hopefully you, like me, have some rudimentary Spanish skills and can pick out the words/phrases that don’t work and can find some that do. For example, it translated “boss” into “leader,” so I chose instead to translate “employer” and replace that word.
12) Once you’ve cleaned up the paragraph as best you can, pray that no one who speaks native Spanish laughs at your work and go back into the Visual tab of your post. Paste the translated paragraph beneath the English version as a separate paragraph. Highlight it and now click thought bubble 2, which marks it as Spanish. Click over to the HTML tab and observe how it now has at the beginning of the paragraph and at the end of the paragraph. Alternatively, you could have pasted this in.
13) Assuming the first paragraph is also your Excerpt, copy both English and Spanish versions into the Excerpt field. It is best to do this from the HTML tab to make sure you grab all the appropriate metadata.
14) Update your post.
15) Under Appearance (left column) > Widgets, find the XLanguage List widget. Drag and drop it into the right column wherever you want it. Do not add a Title into the Field, it’s not necessary.
16) Go look at your site. You should now be able to click on either Spanish or English via the widget to change the language of the first paragraph of your post.
17) Now you just have to translate the rest of your post.
November 2nd, 2009 at 7:12
Sorry, have to repost this as it’s picking up part of my instructions as actual code. Whoops!
OK, I figured this out. For the newbies out there like me, here’s what you do.
1) Download and install the plugin in the plugin folder.
2) Activate it.
3) Click on Settings > XLanguage (left column).
4) Under Add Languages, type in Locale Code “en-us”, Name “English” (remove the quotes), Add Language
5) Under Add Languages, type in Locale Code “es” (for Spanish), Name “Spanish” (remove the quotes), Add Language
6) At top click on Language Advanced. Click to Enable Content Filtering. Hit Update Filtering Options.
7) Under Presentations, select all check boxes under Availability. Hit Update Presentations.
“8)” Under Mix and Match, for Locale Code es put “en-us” under Fallback.
9) It should be asking you at top in yellow to regenerate the metadata. Go ahead.
10) Open up your latest blog post that you want to translate. Click edit. With the Visual tab selected, you will see 4 new options to use on your menu bar that look like thought bubbles. Highlight the first paragraph and select thought bubble 1 “tag as en-us.” Click over to the HTML tab. You should now see that the paragraph starts with “” and ends with “”. Alternatively, you could paste this in yourself.
11) Click back over to the Visual tab. Highlight the paragraph again. Go to Freetranslation.com and paste into their window to translate from English to Spanish (Mexican) or whatever language you are doing. Translate. Copy-paste both the English and translated Spanish into Word. Copy the Spanish text back into Freetranslation.com and convert back into English. Note that it does a decent job but not great. Hopefully you, like me, have some rudimentary Spanish skills and can pick out the words/phrases that don’t work and can find some that do. For example, it translated “boss” into “leader,” so I chose instead to translate “employer” and replace that word.
12) Once you’ve cleaned up the paragraph as best you can, pray that no one who speaks native Spanish laughs at your work and go back into the Visual tab of your post. Paste the translated paragraph beneath the English version as a separate paragraph. Highlight it and now click thought bubble 2, which marks it as Spanish. Click over to the HTML tab and observe how it now has at the beginning of the paragraph “”and at the end of the paragraph “”. Alternatively, you could have pasted this in.
13) Assuming the first paragraph is also your Excerpt, copy both English and Spanish versions into the Excerpt field. It is best to do this from the HTML tab to make sure you grab all the appropriate metadata.
14) Update your post.
15) Under Appearance (left column) > Widgets, find the XLanguage List widget. Drag and drop it into the right column wherever you want it. Do not add a Title into the Field, it’s not necessary.
16) Go look at your site. You should now be able to click on either Spanish or English via the widget to change the language of the first paragraph of your post.
17) Now you just have to translate the rest of your post.
November 2nd, 2009 at 7:14
Well, despite putting the actual code that it generates for beginning and end of the paragraphs in quotes it won’t display in my instructions because the blog post thinks it’s actual code. You’ll see it.
November 2nd, 2009 at 8:31
After figuring all this out today, I found a MUCH easier way to translate my blog. While my rudimentary Spanish skills can clean up free translation, it’s too much of a pain as my posts are rather long. I happened across http://www.appliedlanguage.com and found that they will email snippets of code to add to your site which will translate the entire page, links, headers and all, in one click. It certainly doesn’t make for a perfect translation, but it will have to do. I requested codes for Spanish to English (to be able to add the link to translate to English), English to Spanish, Portuguese, Dutch, French, Italian, Russian, Arabic (Modern Standard), Chinese (Simplified, Japanese, and Korean.
They email a bunch of unncessary code around the real code, which I deleted (everything that comes before < a href = ” and after ), pasted them one after the other in a Text widget and I’m good to go! Check out my site to see.
November 2nd, 2009 at 17:52
I had that before also when the language packs worked. Anyway, for some reason no matter which lang is selected to view gallery only my default en_GB is used. newlang= etc paramaters passed on correctly in php but everything just stays in Eng.
I´ve tried various different lang packs but no luck. Could someone please point me in the right direction on how to go about diagnosing this problem.
November 6th, 2009 at 6:57
Success!!!
If you have problems log in on WP 2.8 to the admin area, or log out for that matter, try setting the locale of your wordpress installation to en_US. After doing that I was able to log in and continue my work as usual.
Damn it’s a nice plugin to work with!
November 8th, 2009 at 1:03
Hi, I have a problem changing to another language. Because at the moment I’m using one of my Page as homepage (instead of post page), but when I change to another language on homepage, it will jump to the post page, instaed of the same page but different language, any idea how can I solve this problem?
November 8th, 2009 at 7:12
Hi
I have problems with the Home page link generated with Mystic theam navigation bar when xLanguage is aktivated.
The Home page is a static page, the first shown. The secons page in the navigation bar is the News page where all posts are shown.
So the navigation bar creates the url: …/wordpress?lang=se witch takes me to the News page (…/wordpress?page_id=7&lang=se) instead of the Home page. If I enter the url: …/wordpress I am direkted to the Home page filtered with last active language. If I inactivate xLanguage everything works normal.
Is there any solution to this?
/Stefan
November 9th, 2009 at 14:29
I also tried to use this plugin, but somehow could not achieve, I think this business for aging.
Anyway, thank you.
November 10th, 2009 at 3:29
hi. do you know any way to create sitemap for all used languages?
November 11th, 2009 at 12:37
I have trouble with the plug-in as soon as I add [slideshow id=3] or [table id=1 /]. Anything in [ ] will cause xLanguage not to work anymore. Does someone know how to fix that?
November 15th, 2009 at 17:27
Hi folks,
How can I make some parts of my theme such as the back end input fields for adding ads or texts/codes and the fron-ent at sidebars titles, tag dropdown lists, most popular and others, get to understand/accept the xlanguage code?
Thanks in advance,
Lucato
November 15th, 2009 at 18:10
Well finally I got the Home page to work with xLanguage and the Mystique them.
I had to add an extra prereg_replace() function in the theme header and hard code the page id in the failing link as shown below. Not a general solution but it works for me.
// SteSva Start
$Search = ‘/wordpress’ . ‘\?’ . ‘lang/’;
$Replace = ‘wordpress/’ . ‘?’ . ‘page_id=3′ . ‘&’ . ‘lang’;
echo preg_replace($Search, $Replace,
//echo
// SteSva End
preg_replace(‘@\]*)>\]*)>(.*?)\@i’, ‘$3‘, wp_list_pages(‘echo=0&orderby=name&title_li=&exclude=’.get_mystique_option(‘exclude_from_nav’)))
// SteSva Start
);
// SteSva End
November 17th, 2009 at 1:51
I’ve installed the xlanguage plugin and highlighted text in a post to be in two different languages, Czech and English. When I updated the post, though, the text in both languages was displayed, and nothing happened when I clicked on the English or Czech link to change languages. Any ideas on what I should change?
I’d greatly appreciate it.
thanks!
November 19th, 2009 at 15:31
This might be a stupid question but can’t seem to find the answer in jLanguage the Title had the languages there but with xLanguage it’s not there is there a simple way to have it there? or would I manually have to add the span tag to the title in each language?
Thanks in advanced.
November 21st, 2009 at 17:46
Hi! First, let me thank you for the plugin, makes it easy to write a blog in multiple languages
I have one issue though: I couldn’t figure out how to offer image captions in different languages – the | syntax doesn’t seem to work there. Is there a way?
November 22nd, 2009 at 3:58
its really wonderful as it gives the user very friendly facility to choose among different languages…
November 26th, 2009 at 23:09
Hi Sam:
Your app is awesome, I just have a slight, little, cosmetic problem: the images of the languages! By some sort of reason they are huge. Anything can be done about that? You can check my blog to see what I mean is the domain of the email
November 29th, 2009 at 21:36
Hi,
i’m not shure if this is the right place to post bugs….
i found a bug in “list_langs.php” on line 25
instead of
“<a href="”> ”
it should be
“<a href="”> “
November 29th, 2009 at 21:38
ok something went terrible wrong
line 25 “?php echo $img ?” instead of “?echo $img ?”
hope it will be displayed correctly
December 1st, 2009 at 6:41
Hi ! I use your great plugin with three languages : FR/EN/ES. I also use the plugin POST NOTIFICATION whitch send an email to subscribers when i release a now post. I configured this plugin to add the three languages links. But, strangly, the plugin send an email only in MY language (fr) to every subscriber. I don’t know why..
The plugin (post notification) also have a configuration page where there is a part : “Some plugins use filters to modify the content of an article. You can hope they do not modify one of your emails. Finding the right filter requires some testing.” I think this is where to configure that i don’t want the post notification plugin to not detect the xlanguage tag. But there is no xlanguage tag..
Here is the list i have : wptexturize, convert_smilies, convert_chars, wpautop, prepend_attachment, generate_avatar_in_posts, post_notification_filter_content, visitors_map_post_map_filter, do_shortcode, GA_Filterthe_content, wpu_get_users, wp_dlm_parse_downloads, wp_dlm_parse_downloads_all, xmlgooglemaps_converter
I think i need your help. I can add you to the newsletter if you want, to test, or send you anything you need. I’m with the last version of wordpress.
Thank you very much in advance. I’m not posting my question on post notification plugin (http://wordpress.org/extend/plugins/post-notification/) because there isn’t much help over there, and it seems to have great dev support here with this great plugin.
Hope you’ll be able to help me. Good night,
Arnaud
December 1st, 2009 at 7:27
Hi,
There seems to be a conflict between xlanguage plugin and Contact Form 7 plugin. I created a form, but never succeeded to see the confirmation message after sending the mail.
When I deactivate xlanguage, it works. Does someone faced the same problem ? And found a workaround ?
Thanks
December 1st, 2009 at 19:08
Hello,
I tried your plugin as an replacement for languageswitcher and its really nice. But one big problem: the method “empty_html” clears normal tags like ” as well, which is sometimes used by widgets. This is not a good solution. How can I disable this behaviour?
regards,
Lars
December 1st, 2009 at 20:40
another reason to NOT remove empty tags is that such tags often been used by ajax and or jquery code as placeholders or to insert content, dynamically. When these tags are removed by the plugin in canot work anymore… I already tried to remove some tags from the $useless_tag_names… but without any effect (but I’m also not so familar with regular expressions).
So it would be really great if you could help here.
Thanks!
December 4th, 2009 at 20:58
Hi ! I use your great plugin with three languages : FR/EN/ES. I also use the plugin POST NOTIFICATION whitch send an email to subscribers when i release a now post. I configured this plugin to add the three languages links. But, strangly, the plugin send an email only in MY language (fr) to every subscriber. I don’t know why..
The plugin (post notification) also have a configuration page where there is a part : “Some plugins use filters to modify the content of an article. You can hope they do not modify one of your emails. Finding the right filter requires some testing.” I think this is where to configure that i don’t want the post notification plugin to not detect the xlanguage tag. But there is no xlanguage tag..
Here is the list i have : wptexturize, convert_smilies, convert_chars, wpautop, prepend_attachment, generate_avatar_in_posts, post_notification_filter_content, visitors_map_post_map_filter, do_shortcode, GA_Filterthe_content, wpu_get_users, wp_dlm_parse_downloads, wp_dlm_parse_downloads_all, xmlgooglemaps_converter
I think i need your help. I can add you to the newsletter if you want, to test, or send you anything you need. I’m with the last version of wordpress.
Thank you very much in advance. I’m not posting my question on post notification plugin (http://wordpress.org/extend/plugins/post-notification/) because there isn’t much help over there, and it seems to have great dev support here with this great plugin.
Hope you’ll be able to help me. Good night,
Arnaud
December 5th, 2009 at 1:29
I have 5 languages. I wrote some pages, and in each one I selected one locale in the xlanguage_available custom field. It does what I want: I can see each article only in its own language. But now I’d like to go to the same article in the other language when I click in the widget. AFAIK, I should give the same permalink to all corresponding pages, but this is not possible. How should I do?
December 5th, 2009 at 19:46
Everywhere in your post, when you write an article, you have to use the and ..
Just translate every sentence in your post in all your language. You must have ONE post with 5 language, and not five post with one language each
December 7th, 2009 at 5:59
Good Plugin! Thanks!
December 7th, 2009 at 22:15
HI Guys..
I have use the plugin for a couple of month now and have been very pleased with it, but now i got a problem i can’t solve on my own.
I have moved a copy of my wordpress blog to a localhost installation using MAMP (on mac).
All posts, graphics, pictures have moved fine… but the xlanguage plugin is giving some problems.
It’s like the plugin is not active (it is) so I get both my language versions displayed at the same time.
I have gone through all plugin settings and tried to reset it, but it still displays both language versions…
Any one who has an idea what it could be? It works fine on the live website.
December 11th, 2009 at 3:28
@Andersh
Hey there, have you checked at the Xlanguage plug-in settings page the “Language (Advanced)” link on the top of the page and set the “locale code” for each theme?
December 11th, 2009 at 19:00
That’s a really neat plugin. I’ve got a site which needs multi language support. This would be really ideal. Cheers
December 14th, 2009 at 16:37
Such an awesome plug-in. Just the ideal one for my blog. Appreciate the work. cheers
December 17th, 2009 at 15:39
I have installed the plug in in my local computer and the widget is working properly but when I moved it to the hosted server It appears that is not redirecting it correctly to the second language that I am using. When I click the language option is redirecting it to the correct url but adding the https://……. header. Any ideas to solve the issue would be helpful. Any ideas why the Parser log is not working properly in the hosted server?
December 18th, 2009 at 23:22
This application is just brilliant !I too have an issue with the images of the languages, how do you come around that? I’ve tried everything so far and nothing seems to work!!
December 18th, 2009 at 23:50
@Bryn Thomas : It is not easy. A general remark is that the SPAN code has to be as near as possible to the language-specific parts. For example, if you have an hyperlink which is an image, you begin by opening a tag A, then the SPAN xlanguage tag, then the IMG tag, you close SPAN tag, repeats the last operation for all your languages, and finally close your A hyperlink tag.
Pay attention : a small error displays the texts of all languages at the same time.
Hope it helps …
December 23rd, 2009 at 3:07
hi,
I like xLanguage very much, it has a lot of features and works fine, but I have 2 questions:
1. Is xLanguage compatible with wordpress 2.9?
2. I am not sure, but could it be that xLanguage is adding some tags when switching between editor and html view? I have this problem but have not tested if xLanguage generates the extra tags.
regards
ray
December 26th, 2009 at 6:54
Hi,
there is one problem with Web Accessibility. What will happen when you need to mark one word as another language in a text part?
Did someone test it with a Screenreader?
December 26th, 2009 at 23:09
Hi,
I installed the german wordpress version. http://de.wordpress.com/ The default language is german. All wordpress words are translated to german.
I installed and activated the plugin: first language de, second language en.
It works with article and titles. But now the default language for the wordpress words is english.
December 26th, 2009 at 23:21
Sandra,
Your translations files needs to be named de.mo now. All localization files should follow the same behavior.
Xlanguage unfortunately does not accept de_DE as a locale because _ is forbidden.
December 27th, 2009 at 21:07
Help please have installed the plugin and it partly works but how do you get it to change the Wordpress wouds like Titles headings, the only things that change is the text on the page
December 28th, 2009 at 2:48
Shaun, maybe it is the single line mode?
First language|Second language
Willkommen|Welcome //de and en
You can set the order in the xlanguage option, under mix and match.
Position 0 is the first, position 1 is the second. And -1 will show all.
December 28th, 2009 at 22:06
Hi,
the plugin is great. I love it. Thank you very much.
It would be great, when we could find a solution for screenreaders. The problem is, that in German we use very often english words. This words should be shown in the german selection. In the correct way, it should be marked as english. Otherwise the screenreader would read it in german and that is very bad.
bla bla bla ein bisschen deutsch Home weiter etwas deutsch
The Screenreader will read this in german, and “Home” in english. For the markup, this is the right way to do it.
But this will not work with this plugin.
Here is my idea:
Is it ppossible to use a css class for the language definition?
bla bla bla ein bisschen deutsch Home weiter etwas deutsch
The plugin still makes the markup and adds a class=xx”" attribute. Only when it is spelled in another language we have
to change the lang=”" attribute. Maybe we have to make a prefix for the css classes, so we do not get problems with other definition for css classes?
Best regards,
Sandra
December 28th, 2009 at 22:10
sorry i forgot to write it in the right way:
First Example:
< span lang=”de” > bla bla bla ein bisschen deutsch < span lang=”en” > Home </span> weiter etwas deutsch</span>
Second Example:
< span lang=”de” class=”de” > bla bla bla ein bisschen deutsch < span lang=”en” class=”en” > Home </span> weiter etwas deutsch</span>
December 28th, 2009 at 22:14
Sorry again, it is not easy to write without preview
Second example:
< span lang=”de” class=”de” > bla bla bla ein bisschen deutsch < span lang=”en” class=”de” > Home </span> weiter etwas deutsch</span>
Information for plugin: class=”de”.
Information for Screenreader: first lang=”de”, for home lang=”en”
December 28th, 2009 at 22:31
True, this plugin also have a configuration page where there is a part : Some plugins use filters to modify the content of an article. You can hope they do not modify one of your emails. Finding the right filter requires some testing.” I think this is where to configure that i don’t want the post notification plugin to not detect the xlanguage tag. But there is no xlanguage tag.
December 29th, 2009 at 1:29
This is a great idea for a plug-in – but I can’t seem to get it working on Wordpress 2.9
I have installed it and customised it, but I can’t find ‘Display Filtering’ – it doesn’t seem to exist in 2.9 …. Any help?
Thanks!
December 29th, 2009 at 1:39
Don’t worry – I found it now. Seems I was just being a bit slow!
Thanks for the truly awesome Plug in! 5* rating all