WordPress.org

Ready to get started?Download WordPress

Forums

Job Manager
[resolved] Only changing Job Manager's language (4 posts)

  1. agiannone
    Member
    Posted 3 years ago #

    Hi,

    Is there any way I can use Job Manager's Portuguese translation without setting my entire WordPress installation to Portuguese?

    I have access to all the config / php files and am happy to edit those if that's the solution. The only issue is that I have no idea where to start looking.

    Any ideas?

    Thanks,
    Ale

  2. Gary Pendergast
    Member
    Plugin Author

    Posted 3 years ago #

    I'm not aware of any way to do this. Job Manager users WordPress' built in translation handling functions, so it obeys the global language setting.

    Someone more familiar than I with i18n may know of a workaround for this.

  3. agiannone
    Member
    Posted 3 years ago #

    Hi, thanks of taking your time to respond, I've found a hack work around which I'm happy with.

    For anyone else interested here is what I changed the method "jobman_load_translation_file" to the following (note the method is found in the functions.php file):

    function jobman_load_translation_file() {
    global $locale;
    $locale = "pt_BR";
    load_plugin_textdomain( 'jobman', '', JOBMAN_FOLDER . '/translations' );
    $locale = "";
    }

  4. Gary Pendergast
    Member
    Plugin Author

    Posted 3 years ago #

    Nice one, thanks for the update!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic