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
  • #36865

    P O
    Expired Member
    Post count: 501

    When adding a new place under the address it says “ADDRESS_MSG”.

    Where is that in the po files to translate ?

    Thanks.

    #36879

    Simone
    Expired Member
    Post count: 3515

    ADDRESS_MSG is the constant that refers to

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

    It shouldn’t be visibile, but “Please enter listing address. eg. : <b>230 Vine Street</b>” should. (it is in the geodirectory .po)

    #36881

    P O
    Expired Member
    Post count: 501

    Yes and I have that translated in the PO file, but it shows “ADDRESS_MSG” instead of the text.

    Where can I fix it ?

    Thanks.

    #36884

    Simone
    Expired Member
    Post count: 3515

    If that’s happening it might be due to some error in your previously translated strings.
    Could you try to add the default .po file and see if ““Please enter listing address. eg. : <b>230 Vine Street</b>” appears? It should be also a consequence of your other issue with the not translate strings (country region and city)

    #36885

    P O
    Expired Member
    Post count: 501

    Nope, I just uploaded a fresh downloaded po / mo file without translating.

    ADDRESS_MSG is still showing and of course everything else is in english now. So its not my translation file.

    Thanks.

    #36887

    Simone
    Expired Member
    Post count: 3515

    Could you provide url, login details and ftp in a private reply please?
    Thanks

    #36888

    P O
    Expired Member
    Post count: 501
    This reply has been marked as private.
    #36890

    P O
    Expired Member
    Post count: 501

    My steps.

    Duplicate po file to “geodirectory-es_ES.po” Open and save to generate .mo file.

    Upload .mo file to wp-content/languages/plugins/

    Everything gets translated correctly, but the ADDRESS_MSG city, region and country are not.

    Thanks.

    #36899

    Simone
    Expired Member
    Post count: 3515

    The right way is following this page here
    http://docs.wpgeodirectory.com/translating-addons/

    However, after changing the folder the issue still exists.

    Do you remember what steps you did before? Have you edited some files, in the core? It seems that after that string, the following strings are skipped from the translations (country etc..)

    #36900

    P O
    Expired Member
    Post count: 501

    Nope, I havent touch anything but the translation files. Well and the settings of course, but no core files at all. You can replace the plugin itself if you want to.

    I saw it when I was doing a test publishing a place and after trying to fix it uploading the mo files again with no success, I opened this thread.

    Strange enough a local test works fine.

    Where can the problem be ?

    Thanks.

    #36901

    P O
    Expired Member
    Post count: 501

    I actually just replaced the complete plugin with a fresh copy and nothing…

    So there must be a problem in another place.

    #36903

    Simone
    Expired Member
    Post count: 3515

    Usually the first culprit is W3 total cache. Tried to clean it up but some of the cached files could be still around, let me guess, on your local website you’re not using w3 total chache, right?

    #36904

    P O
    Expired Member
    Post count: 501

    Adding more info.

    In my local test the address text appears, but country, region and city are NOT translating either.

    Correct, in local I am not using it, but things are not translating either.

    #36905

    P O
    Expired Member
    Post count: 501

    Feel free to delete completely w3 total cache. I will re add and configure everything when this is fixed.

    I dont believe that is the problem, but you can try it.

    #36911

    Paolo
    Site Admin
    Post count: 31206

    I had a look too and I can’t find anything obvious.

    I’ve tried to recreate it on my tests sites and I can’t.

    Stiofan is alerted and will look at this asap.

    We will let you know once it’s fixed.

    Thanks for your patience,

Viewing 15 posts - 1 through 15 (of 22 total)

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

Open Support Ticket