• ah92

    (@haxhiuargjend)


    I’m trying to translate a plugin I published to the WordPress marketplace, but I’m having trouble.

    I created the.pot file, compiled the.po and.mo files, and placed them in the /languages folder at wp-content/plugins/name-of-the-plugin. This is only translating the plugin description, it does not translate the plugin setting page that is created when the plugin is installed.

    If I copy .po and .mo file and place them under this path: wp-content/languages/plugins/name-of-the-plugin then everything gets translated.

    How can I manage to place these translation files automatically into this path (wp-content/languages/plugins/name-of-the-plugin) when someone installs the plugin?

    Or please let me know if I’m missing something in this process?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    To be clear, www.ads-software.com has no “Marketplace”. We don’t sell anything. I assume you mean you have submitted your plugin to our plugin repository ??

    I recommend you don’t directly translate anything. Let the polyglots team do it for you in multiple languages. If you like, you can contribute through the polyglot’s translation system.

    If you provide translation files within your plugin, it indicates you don’t want contributions from polyglots. If you do so, you need to load your translations through load_plugin_textdomain() while providing the proper path for the $plugin_rel_path arg.

    If you need more information about polyglots translations, I suggest asking team members through their #polyglots Slack channel. If you haven’t joined Slack yet, free registration is required.

Viewing 1 replies (of 1 total)
  • The topic ‘Translate my own plugin which is published in WP marketplace’ is closed to new replies.