not-only-code/qtranslate-slug — pull request #85 by beheist (2014-12-30 11:18:09+00:00)
Title: Compatibility for qTranslate-X

This pull request adds compatibility with the qTranslate-X plugin, while keeping the functionality for qTranslate and mqTranslate. This was done by creating a new private function that will return the correct plugin prefix - `qtrans_` or `qtranxf_`, depending on what is installed. If both qTranslate-X and qTranslate are installed, the qTranslate-X functions will be used.
The implementation was done by replacing the hard-coded function calls to `qtrans_xyz()` with dynamic calls using `call_user_func()`. Also, wordpress action and filter hooks were replaced. I did not change any css classes since this might break the styling in some templates.
Please let me know if you'd like to take this in, or if you want to stay focused on qTranslate and mqTranslate, in which case I'd like to maintain this as a separate project for users of qTranslate-X.