Problem with .po file /listing-preview/ text

This topic contains 16 replies, has 4 voices, and was last updated by  Guust 8 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #328199

    Robert Schulz
    Expired Member
    Post count: 8

    Hi friends,

    geo directory is really great.
    Just I have some minor problem with the German translation of the core plugin.

    I’m using Poedit for the translation and even I’ve downloaded the available translation from here. Unfortunately I can not change the text of the listing previous page to German because the following text doesn’t exist in the .po file.

    “This is a preview of your listing and its not updated yet.
    If there is something wrong then “Go Back and Edit” or if you want to update listing then click on “Publish”.”

    I found some other minor problems in the .po file for example the word Register should normally be shown on the Register form of the page, but it appears on the Login form. I fixed by the translation, but somehow maybe there is a small bug.

    Kind regards

    #328202

    Robert Schulz
    Expired Member
    Post count: 8

    Update

    The translation is setted in the .po file

    
    
    #: language.php:92
    #, php-format
    msgid ""
    "This is a preview of your listing and its not published yet. <br />If there "
    "is something wrong then "Go back and edit" or if you want to add listing "
    "then click on "Publish".<br> You are going to pay <b>%s</b> &  alive days "
    "are <b>%s</b> as %s listing"
    msgstr ""
    "Dies ist eine Vorschau Ihres Eintrags, der noch nicht veröffentlicht ist. "
    "<br />Sollte eine Angabe falsch sein, "Gehen Sie zurück zum Bearbeiten" "
    "oder sollten Sie Ihren Eintrag hinzufügen wollen, klicken Sie "
    ""Veröffentlichen".<br>Ihnen werden hierfür <b>%s</b> &  entsprechend der "
    "Tage die der Eintrag <b>%s</b> als %s öffentlicher Eintrag erscheint, in "
    "Rechnung gestellt."
    
    #: language.php:93
    msgid ""
    "This is a preview of your listing and its not updated yet. <br />If there is "
    "something wrong then "Go back and edit" or if you want to update listing "
    "then click on "Update now""
    msgstr ""
    "Dies ist eine Vorschau Ihres Eintrags, der noch aktualisiert wurde. <br /"
    ">Sollte eine Angabe falsch sein, "Gehen Sie zurück zum Bearbeiten" oder "
    "sollten Sie Ihren Eintrag aktualisieren wollen, klicken Sie "Jetzt "
    "aktualisieren""
    
    #: language.php:94
    #, php-format
    msgid ""
    "This is a preview of your listing and its not published yet. <br />If there "
    "is something wrong then "Go back and edit" or if you want to add listing "
    "then click on "Publish".<br> Your %s listing will published for <b>%s</b> "
    "days"
    msgstr ""
    "Dies ist eine Vorschau Ihres Eintrags, der noch nicht veröffentlicht ist. "
    "<br />Sollte eine Angabe falsch sein, "Gehen Sie zurück zum Bearbeiten" "
    "oder sollten Sie Ihren Eintrag veröffentlichen wollen, klicken Sie "
    ""Veröffentlichen".<br>Ihr %s Eintrag wird für <b>%s</b> Tage veröffentlicht"

    But it doesn’t appear on the listing-preview page.
    .po file is saved and uploaded correctly because all other translations appears fine, even at the listing-preview page.
    Please see attached piture, too.

    #328467

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    do you have the payment manager installed too?

    Let us know,

    #328538

    Robert Schulz
    Expired Member
    Post count: 8

    Hi Paolo,

    yes it’s installed and the problem also occurs for the paid plans.
    Let me have your ideas.
    Thanks in advance

    Kind Regards

    Robert

    #328646

    Paolo
    Site Admin
    Post count: 31206

    Did you translate the payment manager po file too?

    https://wpgeodirectory.com/docs/translating-addons/

    #328713

    Robert Schulz
    Expired Member
    Post count: 8

    Yes, it’s translated and I’ve checked the translation, too. But the preview text isn’t included in the .po file of the payment manager.

    #328715

    Robert Schulz
    Expired Member
    Post count: 8

    I can’t find the listing-preview.php. I have checked the /plugins/geodirectory/geodirectory-templates/ directory but it isn’t included.

    #329238

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    please provide a link, admin and FTP credentials and our developers will have a look.

    Thanks

    #329405

    Robert Schulz
    Expired Member
    Post count: 8
    This reply has been marked as private.
    #329406

    Robert Schulz
    Expired Member
    Post count: 8
    This reply has been marked as private.
    #329812

    Paolo
    Site Admin
    Post count: 31206

    Hi Robert,

    files are not where they should:, please review this 2 docs:

    https://wpgeodirectory.com/docs/translate-core/

    and

    https://wpgeodirectory.com/docs/translating-addons/

    and move the translation file where they should be.

    Let us know if that was it.

    Thanks

    #329816

    Paolo
    Site Admin
    Post count: 31206

    Ok, Iìve just been told that now translation files should work also in the location used on your website, so the problem is somewhere else, I asked to the developers to double check cause I can’t find it.

    Thanks,

    @guust, can we change in docs where the mo files must be placed? If now it works for all add-ons to place them in wp-content/languages/plugins we should suggest to use that as it is the simplest option.

    Thanks

    #329822

    Robert Schulz
    Expired Member
    Post count: 8

    Hey, I tried the installation of the .mo .po files as per your documentation but as the problem still was not solved, I switched back to the common way.
    I’m not familiar with .mo files but I believe that the strings shall be declared for translation somewhere and maybe this declaration for this text elements is missing.
    Thanks again for your great support and time.
    Merry Christmas

    #329837

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello your translation file does not seem to be upto date or even contain the correct strings, you should update it and try again.

    I have tested and it is working.

    Thanks,

    Stiofan

    #329907

    Guust
    Moderator
    Post count: 29970

    I checked your payment PO file and it needed updating, which I did for you. You should find the strings in there now for translation.

    Please review https://wpgeodirectory.com/docs/updating-your-language-files/ for future reference.

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount