• Hi Shane,

    Firstly, thanks for the latest update! Great to see the search fields being remembered in the form plus the fix for child themes.

    I am just wondering how I can translate the search tool into Japanese? I started creating .po and .mo files using Poedit, but I noticed ‘Select XXX…’ (as used in the dropdown) isn’t in the list of editable strings.

    Thanks,
    Caroline

    https://www.ads-software.com/plugins/advanced-custom-post-search/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Creare

    (@shane-welland)

    Well I managed to make a right mess of my quick fix on the SVN, hopefully this hasn’t blown anything else up! The hot fix should be online if you download 1.2.3? Let me know if this solves the problem.

    Thread Starter CarolineElisa

    (@carolineelisa)

    Thanks Shane but I’m still struggling.

    One thing… your plugin does not show up in the list of translatable plugins using the CodeStyling Localization plugin. Any ideas?

    Plugin Author Creare

    (@shane-welland)

    Hey sorry for the slow response. I’m actually going to need to add another line of code to the plugin in order for it to be able for translation, i’ll jump on this first thing tomorrow and update this post when its been done!

    Thread Starter CarolineElisa

    (@carolineelisa)

    Hi Shane, any development on this?

    We are specifically wanting to translate the ‘Select %s’ string in the taxonomy dropdown. I’ve managed to edit the other strings through the plugin settings and by copying acps-results_loop.php across to my theme.

    Thanks!

    Thread Starter CarolineElisa

    (@carolineelisa)

    Hi again Shane,

    The exact phrase I want to translate is line 248 in acps_shortcodes.php:

    $acps_html .= '<option value="">'.__('Select', 'acps').' '.$key.'...</option>';

    But as mentioned, your plugin doesn’t show up in the CodeStyling Localization plugin that I am using to translate the theme and other plugins.

    Hoping you can help!

    Plugin Author Creare

    (@shane-welland)

    Ugh sorry about the slow response, I’ve been incredibly busy and also working on 2.0 so my support has been lacking somewhat.

    I can give you a quick fix for now as no iterations of the plugin will be released until 2.0:

    1) add this line to the __construct function in acps.php:
    load_textdomain(‘acps’, $this->settings[‘path’] . ‘lang/acps-‘ . get_locale() . ‘.mo’);

    2) Create the folder ‘lang’ inside the plugin as well as the acps-[language].mo file you are wanting to translate

    3) Add the following line to the ‘init’ function also in acps.php:
    $this->load_plugin_textdomain();

    hopefully that should work but give me a heads up if not because I’ve not physically implemented that to test!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Translating plugin’ is closed to new replies.