• Resolved enomoto celtislab

    (@enomoto-celtislab)


    The translation file is running in “load_plugin_textdomain()” in “stripe-payments/public/class-asp.php” on line 440. The directory to look for is “stripe-payments/public/languages “.

    However, the actual directory with the translation files is “stripe-payments/languages“. Translation files are not loaded because the directories don’t match.

    P.S. I copied the translation file to “wp-content/languages/plugins” and it works!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    P.S. I copied the translation file to “wp-content/languages/plugins” and it works!

    That directory is the correct directory where www.remarpro.com delivers the translation files.

    Which language are you referring too?

    Thank you

    Thread Starter enomoto celtislab

    (@enomoto-celtislab)

    I want to use the Japanese translation included in the languages folder of stripe-payments plugin.

    The relative path passed by load_plugin_textdomain.
    dirname( plugin_basename( __FILE__ ) ) . '/languages/' is relative to the calling file, so it’s not “wp-content/plugins/stripe-payments/languages”.

    The correct relative position is dirname( plugin_basename( __FILE__ ) ) . '/../languages/' .

    Another way to match relative paths is to call the load_plugin_textdomain() function from a file in “wp-content/plugins/stripe-payments/”, which is the parent folder of the “public” .

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    I have reported this to the plugin developers to investigate further your findings.

    Thank you

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Thank you very much for reporting!

    This has been fixed in previous version of the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translation file placement directory does not match’ is closed to new replies.