Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author r-a-y

    (@r-a-y)

    Not sure I understand the problem. load_textdomain() should work fine. However, I will look at switching to load_plugin_textdomain() in the future.

    Are you using a language switcher plugin or any other translation type of plugin on your site?

    Thread Starter privaloops

    (@privaloops)

    Yes I’m using wpml. Anyway, a plugin should use this function to load localized data.
    I also suggest not to load additional languages by reading wp-content/languages folder.
    wp-content/languages/plugins/ would be better, because if some po/mo are in wp-content/languages, the native language selector for a site in wordpress will show strange languages (“bp”).
    I don’t want to bother you, your plugin is nice ??

    Plugin Author r-a-y

    (@r-a-y)

    I’ll switch to load_plugin_textdomain() for better compatibility with WPML for v1.3.

    However, for backward compatibility, I will use load_textdomain() first to look for a file in wp-content/languages/, if the file does not exist, I will fallback to load_plugin_textdomain(). Does that sound okay?

    Thanks for posting!

    Thread Starter privaloops

    (@privaloops)

    Sounds good ! My colleague will send you french translations asap. Bye

    Hi r-a-y, right, can you please send me a mail to send you the french BP follow po/mo please. You can send me your mail on our form.
    Thank you

    Plugin Author r-a-y

    (@r-a-y)

    privaloops – Try out the latest commit:
    https://github.com/r-a-y/buddypress-followers/commit/74ef39697e8c541d4eb31ccb7d8f7787e467735b

    Let me know if this works with WPML.

    lauranshow – I left a message on your contact form.

    Plugin Author r-a-y

    (@r-a-y)

    lauranshow – I’ve added the French translation files to the bleeding version of BP Follow:
    https://github.com/r-a-y/buddypress-followers/commit/5f6b73d9036bdb1f93702ab33567f510e603b03c

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘plugin should use load_plugin_textdomain’ is closed to new replies.