Announcing xLanguage v1.1.0
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 xLanguage plugin, a Wordpress plugin which enables multilanguage blog.
Features Added
- Allows language fallback
Post not available in one language now can fallback to another language, instead of showing the “missing” text only. - Allows different default/availability for User and Robot
For SEO (Search Engine Optimization) purpose, Enable search engine robot to have a different language default and setup, so that for it could crawl the text in all language in one shot. - Added WP-Cache / WP-SuperCache support
These are great plugins for speeding up the Wordpress response time. - Added Feedback System
An opt-in feedback mechanism such that I can further improve the plugin by observing the usage pattern. - Added hotkeys for Toolbar (Ctrl-Alt-`, Ctrl-Alt-1~…)
Tag the text without using the mouse! - Added Parser error log
Instead of showing the embarrassing Parse Error to the user, now it goes to a log file, and you can track which page has failed. - Added new type of parser — Square Bracket
For those who don’t like HTML style. You can choose which parser to use. - Allows theme changing for different language
Different theme could be used for different language, useful for LTR/RTL mixed. - Exposed more Template functions
Now you can localize the text with function, get the current language code and so on.
Major Bug Fixed
- Fixed the blocking bug under PHP4 — The XHTML parser was producing repeating HTML when single tag like <xx /> is used.
The underlaying xml library is very different from each other for PHP5 and PHP4, it does take some time to get it right. - Attempted to fix the Undo problem in composing the post
Now using Ctrl-Z and tagging language shouldn’t cause any problem. - Use of Nonce in Admin Interface
For better security. - Fixed the problem with Theme K2 (Read known problems page for modification to K2 code otherwise Widget won’t work)
K2 can work with xLanguage with minimal changes, see their Issue 569.
There were so many line of codes involved, and it’s so hard to test everything in every aspect. Bug report is welcome, as always.































































中文
粵語
February 20th, 2008 at 1:07
Hi Sam,
I’ve done some research about CSS support for LTR/RTL. There’s a built-in support in WordPress for multi-language CSS files coming from the locale parameter. All you have to do is put in your theme a CSS file named en.css (for english) and other filenames for different languages (he.css for hebrew). I managed to turn my website completely to the other side using CSS including images.
I see you added a function for theme which is excellent.
I’m only missing translations for widgets titles (either custom text widgets or built-in/plug-ins widgets).
I’ll send some updates when I have some time to update to the newer version