• Resolved HappyThemes

    (@happythemes)


    Hi,

    I downloaded this plugin to my computer and added my own translation files (mo/po) to the /lang folder.

    However, when I install the plugin (with my lang files), WordPress automatically create new mo/po files in the /wp-content/languages/plugins/ folder.

    That make my translation does not work by default.

    My questions is, how to disable translation update on plugin installing? I have tried the method below with no luck:

    add_filter( ‘auto_update_translation’, ‘__return_false’ );

    Do you have any solution?

    Thanks!

    • This topic was modified 7 years, 2 months ago by HappyThemes.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Andrew Misplon

    (@misplon)

    Hi 🙂

    Thanks for reaching out.

    Can you perhaps let us know the end goal? Are you adding an additional translation to Page Builder for a single site?

    If you add your translation files to the lang folder within /plugins/siteorigin-panels/, your changes will be lost each time you update Page Builder. Loco Translate would be an easy option to setup your translation. Loco Translate offers a few different storage locations for your translation files.

    Thread Starter HappyThemes

    (@happythemes)

    I want to provide my clients with the modified plugin. I want to change the version number and provide my own translation and to avoid auto plugin update.

    Everything else is fine except the language issues.

    How to disable translation update on plugin installing? I only want the mo/po files located in the plugin’s /lang folder.

    Any ideas?

    Thanks!

    Plugin Contributor alexgso

    (@alexgso)

    Hi HappyThemes,

    I want to provide my clients with the modified plugin. I want to change the version number and provide my own translation and to avoid auto plugin update.

    While it’s completely within your rights to fork SiteOrigin Page Builder, we recommend against it. Maintaining a fork will require significant effort on your part to keep up to date with the latest version. Unfortunately, due to the nature of forks, we cannot assist with resolving issues experienced by your users when those issues have been fixed in the main plugin, and not in your fork.

    Instead of forking SitOrigin Page BUilder, we recommend submitting your translations to the Page Builder by SiteOrigin translation project.

    Our plugin is designed to be very developer friendly so you’re able to extend it very easily. Please give the SiteOrigin Developer Docs a quick read.

    My questions is, how to disable translation update on plugin installing? I have tried the method below with no luck:

    add_filter( ‘auto_update_translation’, ‘__return_false’ );

    You’ll also need to disable translation updates by usingasync_update_translation – please set update to true and language_update to false.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable Translation Update On Installing’ is closed to new replies.