WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
[resolved] support for qTranslate plugin (5 posts)

  1. sjager81
    Member
    Posted 1 year ago #

    It is possible to support qTranslate plugin?
    I use that great plugin and but my User Role Editor language doesn't switch to the selected language. It is always in english :(

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    I suppose that qTranslate doesn't translate WP admin back-end or other plugins interface itself. It uses .mo translation files to make that. If you need to see User Role Editor in your language just contribute into its translation. Take .pot file from the lang subdirectory, rename it into .po file according to your language.
    Check this page if needed http://codex.wordpress.org/WordPress_in_Your_Language
    Then translate it using poedit or other tool. If you send translation file to (my first name [at-sign] shinephp.com) URE will support your language.

  3. sjager81
    Member
    Posted 1 year ago #

    Hi Vladimir,

    I have found the problem:

    In file user-role-editor.php on line 57
    load_plugin_textdomain('ure','', $urePluginDirName.'/lang');

    I changed it to

    function init_textdomain() {
    load_plugin_textdomain('ure','', dirname( plugin_basename(__FILE__) ).'/lang');
    }
    add_action('init', 'init_textdomain');

    Now the language switch woks fine with qtranslate! :)

  4. sjager81
    Member
    Posted 1 year ago #

    It is possible to change that in the next version?

  5. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Yes I will implement this with next update. You will not lose it. Thanks for the hint :).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.