Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor peterdog

    (@peterdog)

    We plan on getting the ONE line of language translated. There is code if someone stumbles upon the customizer.php URL that says it’s been disabled.

    Does that answer your question or am I missing the boat?

    Thread Starter Michel – xiligroup dev

    (@michelwppi)

    From my little boat 😉 after tests…

    I agree about the only line of message but not on 13 lines to do the same thing as these 3 lines if you don’t need vars or specific filters:

    public function load_languages() {
    load_plugin_textdomain( 'wp-crap',  false,  'customizer-remove-all-parts/languages' );
    }

    load_plugin_textdomain function will also tests presence of translation files in WP_LANG_DIR if not in plugin’s language sub-folder !

    Cheers

    Plugin Contributor Parallelus

    (@parallelus)

    It was code copied from an existing project to save time. It’s a more expanded way of doing the same thing, but the end result is the same. It shouldn’t impact the result to change it.

    We wrote this during lunch breaks so I pulled from existing code to save time. If it’s a performance gain to change it, that I’m in favor of doing. Any idea if that’s the case?

    Plugin Contributor Parallelus

    (@parallelus)

    Oh, I think it posted that comment twice. Sorry about that if it did.

    Plugin Contributor peterdog

    (@peterdog)

    We really appreciate you looking at this. We consulted others and the consensus is that our code is as good or better because we have filters.

    It’s also very similar to EDD. Ours: http://ow.ly/P7gvQ EDD: http://ow.ly/P7gFY

    I’ll mark this topic closed now.

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

The topic ‘load_languages function in your class’ is closed to new replies.