• Resolved MarinaK

    (@marinak)


    Hi there, I’m dealing with a translation issue. I use CodeStyling Localization plugin to translate my site in Greek and it shows a compatibility issue with your plugin. To be precise I get this massage:
    ‘Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.” …Any help?

    https://wordpress.org/plugins/users-ultra/

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Contributor Plugins Area

    (@usersultra)

    Hi MarinaK,

    Thanks for your post.

    Actually, we’re using both.

    This is the code we use for localization.

    // Global + Frontend Locale
    load_textdomain( 'xoousers', $mofile );
    load_plugin_textdomain( 'xoousers', false, plugin_basename( dirname( __FILE__ ) ) . "/languages"  );

    Could you please check if CodeStyling allows you to translate it anyway?

    Plugin Contributor Plugins Area

    (@usersultra)

    Just in case you it’s not allowing you to translate it you could open the ini.php file which is in “init” folder and comment out the following line “load_textdomain( ‘xoousers’, $mofile );”

    Just add this “//”

    So.. the code would look like this

    //load_textdomain( 'xoousers', $mofile );

    let me know if that helps
    Alex

    Plugin Contributor Plugins Area

    (@usersultra)

    Another thing i would like to mention is that you would need to send us the mo and po files so we can add it to the plugin’s language folder. Otherwise, you will lose your translation files every time you update the plugin. I’m sorry that’s the way WordPress works. πŸ™‚

    Let me know if you need a detailed explanation about it.
    Thanks
    Alex

    Thread Starter MarinaK

    (@marinak)

    Ok let me try to translate and I’ll get back to you.

    Plugin Contributor Plugins Area

    (@usersultra)

    Sure, let me know

    Thread Starter MarinaK

    (@marinak)

    Translation not working. At the top of CodeStyling Localization page I get this message:
    “Warning: The actual loaded translation content contains mixed textdomains and is not pure translateable within one textdomain.
    It seems, that there is code contained extracted out of other plugins, themes or widgets and used by copy & paste inside some source files.
    The affected unknown textdomains are: userultra “

    I tried to translate on xoousers textdomain.
    Should I still add “//” in the ini.php file?

    Plugin Contributor Plugins Area

    (@usersultra)

    We will check this texdomain “userultra”. Give me some minutes and I will get back to you

    Thread Starter MarinaK

    (@marinak)

    Sure, take your time.

    Plugin Contributor Plugins Area

    (@usersultra)

    all right. there were two phrases using our old texdomain. we should have a new version up within a couple of hours. I’ll keep you posted

    Thread Starter MarinaK

    (@marinak)

    Thank you very much! I’ ll try again after the update and let you know if it works. Inform me please where to send the po and mo files.

    Plugin Contributor Plugins Area

    (@usersultra)

    Hi MarinaK,
    Could you please update and let me know?

    Thanks

    Plugin Contributor Plugins Area

    (@usersultra)

    Please send the translation files to support_d@usersultra.com

    Thread Starter MarinaK

    (@marinak)

    Hi,
    I updated but nothing changed. Same messages and no translation. Do you think I should try another plugin (free) for translation and if so which one would you recommend?

    Plugin Contributor Plugins Area

    (@usersultra)

    Hi,

    I’d recommend PoEdit.

    Users Ultra has been translated in many languages by using PoEdit.

    Did you comment out the following code ?

    //load_textdomain( ‘xoousers’, $mofile );

    What message are you getting?

    Thread Starter MarinaK

    (@marinak)

    The message i get is
    “Warning: The actual loaded translation content contains mixed textdomains and is not pure translateable within one textdomain.
    It seems, that there is code contained extracted out of other plugins, themes or widgets and used by copy & paste inside some source files.
    The affected unknown textdomains are: userultra “

    I didn’ t add “//” in the ini.php file should I?

    I ll try the PoEdit and let you know.

Viewing 15 replies - 1 through 15 (of 25 total)

The topic ‘Translation issue’ is closed to new replies.