Minor translation issue..

This topic contains 4 replies, has 3 voices, and was last updated by  Kiran 5 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #467581

    Tsekka
    Buyer
    Post count: 42

    Hi
    In includes\class-geodir-comments.php on line 533 original line is:

    sprintf( _x( '%s ago', '%s = human-readable time difference', 'geodirectory' ), human_time_diff( get_comment_time( 'U' ), current_time( 'timestamp' ) ) ),

    but the .po/mo translation wont work like this(it wont translate word “ago”)

    Anyways, in my case I got it working for now if i replaced it with this:

    sprintf( __( '%s ago' 'geodirectory' ), human_time_diff( get_comment_time( 'U' ), current_time( 'timestamp' ) ) ),

    Hope you can fix it before next update….

    Thanks

    #467630

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I asked to the developers to double check and let us know how to fix this.

    Thanks for reporting this

    #467763

    Kiran
    Moderator
    Post count: 7069

    Hello Tsekka,

    The issue has been fixed already, it will be in next release of GeoDirectory v2.0.0.46.

    See patch here: https://github.com/AyeCode/geodirectory/commit/4c4b981497ee6bf3efc71adc1809b8307b2b4e0f#diff-95f40ebb5af68cfcf6a8a92be62fb5f5R13

    To fix it now you need to update “X-Poedit-KeywordsList” tag in .po files(geodirectory-en_US.po).

    Change:

    
    
    "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_n:1,2;_n_noop:1,2;"
    "_nx:1,2;_x;_ex;esc_attr_e;esc_attr__\n"

    To:

    
    
    "X-Poedit-KeywordsList: __;__ngettext:1,2;__ngettext_noop:1,2;_c;_e;_ex:1,2c;"
    "_n:1,2;_n_noop:1,2;_nc:4c,1,2;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;esc_attr__;"
    "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;gettext;"
    "gettext_noop\n"

    After updating X-Poedit-KeywordsList re-scan .po file.

    Let us know.

    Thanks,
    Kiran

    #467778

    Tsekka
    Buyer
    Post count: 42

    Hi thanks,
    working fine.

    Best regards

    #467786

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket