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 TicketTagged: Listing Preview, PO File, translation
-
AuthorPosts
-
December 21, 2016 at 8:40 am #328199
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
December 21, 2016 at 9:01 am #328202Update
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.December 21, 2016 at 7:43 pm #328467Hi,
do you have the payment manager installed too?
Let us know,
December 21, 2016 at 10:56 pm #328538Hi Paolo,
yes it’s installed and the problem also occurs for the paid plans.
Let me have your ideas.
Thanks in advanceKind Regards
Robert
December 22, 2016 at 1:29 am #328646Did you translate the payment manager po file too?
December 22, 2016 at 6:54 am #328713Yes, 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.
December 22, 2016 at 7:03 am #328715I can’t find the listing-preview.php. I have checked the /plugins/geodirectory/geodirectory-templates/ directory but it isn’t included.
December 22, 2016 at 4:21 pm #329238Hi,
please provide a link, admin and FTP credentials and our developers will have a look.
Thanks
December 22, 2016 at 9:58 pm #329405This reply has been marked as private.December 22, 2016 at 9:59 pm #329406This reply has been marked as private.December 23, 2016 at 6:04 pm #329812Hi 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
December 23, 2016 at 6:22 pm #329816Ok, 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
December 23, 2016 at 6:37 pm #329822Hey, 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 ChristmasDecember 23, 2016 at 7:20 pm #329837Hello 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
December 23, 2016 at 11:40 pm #329907I 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.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket