• Resolved JopVorm

    (@jopvorm)


    Hello all,

    I’m using the events maker plugin and I use the NL translated PO file to make some custom translations. So far, so good. There’s a little error i can’t seem to fix. When viewing the location archive page the word <Country> isn’t translated and uses the <Zip Code> string instead.

    Am I overlooking something?

    Thx for your reply in advance!

    https://ww.wp.xz.cn/plugins/events-maker/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author dFactory

    (@dfactory)

    Can I see it on the site, to get the context. It seems to be ok in the code.

    Thread Starter JopVorm

    (@jopvorm)

    Sorry for the late reaction… i’ve installed the plugin on another site because the issue occures on a site which is still in development.

    Please take a look at these urls:
    http://www.jopvorm.nl/events/location/locatie-01/
    <Country> is translated but by the wrong string (Zip Code)

    http://www.jopvorm.nl/events/event/test-evenement/
    The word <Location> isn’t tranlated

    Again thx in advance for taking a look.

    Plugin Author dFactory

    (@dfactory)

    Are you using the most recent version of the plugin?

    Thread Starter JopVorm

    (@jopvorm)

    yes i am. Just installed it this morning…

    Plugin Author dFactory

    (@dfactory)

    Did you try that on english version? Maybe the strings in your language are not translated or translated incorretly? Can you check that?

    Thread Starter JopVorm

    (@jopvorm)

    The strings in the PO file are translated correctly. I’ve also tried the english version and the same errors occur. I’ve tried teh plugin on several different domains and the same thigs go wrong.
    Am I the only one with this problem?

    Btw.. When I change the string <country> in the PO file it changes on the backend inside the WP environment but not on the front end.

    Plugin Author dFactory

    (@dfactory)

    There was someone else reporting this, but I thought the issue was solved.

    Is there a string like this in the PO file:
    <strong>Location: </strong>

    The code reposnisibe for the Country is this:

    case 'country' :
    	$field['label'] == __('Country', 'events-maker');
    	$field['content'] = $value;
    	break;

    I’m double checkig this.

    Plugin Author dFactory

    (@dfactory)

    Ok, I found it:

    $field['label'] == __('Country', 'events-maker');
    should be
    $field['label'] = __('Country', 'events-maker');

    in loop-event/location-details.php

    Plugin Author dFactory

    (@dfactory)

    Same in organizer-details.php

    But for the Location: string – it’s not translated to NL I think, because it works fine for other languages.

    Thread Starter JopVorm

    (@jopvorm)

    Thanks for your quite answers and replies! I will change this right away!

    Plugin Author dFactory

    (@dfactory)

    No problem. Of course it will be included in the upcoming update.

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

The topic ‘Country string uses Zip Code string’ is closed to new replies.