ADDRESS_MSG translation

This topic contains 21 replies, has 4 voices, and was last updated by  P O 9 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #36918

    P O
    Expired Member
    Post count: 501

    I just tested again and now the address shows. Please share what did you changed.

    This can’t be translated:
    1- Please enter listing address. eg. : 230 Vine Street
    2- Country *
    3- Region *
    4- City *

    Everything else it seems is working fine.

    Are you able to translate those when adding a place in your end ?

    Thanks.

    #36919

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi PO,

    The reason the ADDRESS_MSG can’t e translated is that for it to be translated the wp-admin setting text has to be exactly the same as it is originaly defined but the admin setting is stripping the

    <b>

    tags so it will never be able to be translated from .po file.

    I have changed this and it will be in the next ver, basically just change the line in language.php from:

    define('ADDRESS_MSG', __('Please enter listing address. eg. : <b>230 Vine Street</b>', GEODIRECTORY_TEXTDOMAIN));

    to:

    define('ADDRESS_MSG', __('Please enter listing address. eg. : 230 Vine Street', GEODIRECTORY_TEXTDOMAIN));

    Then rescan the .po file.

    U can also try out bleeding edge GD which has the fixes but might have other bugs as it’s our dev ver. https://github.com/GeoDirectory/geodirectory

    Thanks,

    Stiofan

    #36923

    P O
    Expired Member
    Post count: 501

    Thank you.

    I will tray to translate those 4 in that language file and let you know.

    #36926

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    all these strings can be translated from the back end directly.

    Are you developing a multilanguage site or just a single translation?

    Thanks

    #36927

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    GD>place settings>address>

    #36933

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The Country/Region/City can be translated from the backend but not from the .po file, i have fixed this in location manager and this will be in the next ver also.

    Thanks,

    Stiofan

    #36934

    P O
    Expired Member
    Post count: 501

    Actually everything can be translated there. Yes, just one language.

    The thing is that some are translated in the PO, some not and it confuses a bit.

    I just translated all 4 in GD>place settings>address and it worked.

    Thank you.

Viewing 7 posts - 16 through 22 (of 22 total)

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

Open Support Ticket