The plugin (giveWP) has a .pot file in the main plugin’s directory “wp-content/plugins/give/languages/give.pot” and for some reason when I try to translate a webpage that has a donation plugin inside of it, it doesn’t show the dynamic text of the plugin at all in the editor and I have no control over editing it.
I tried enabling the “fix missing dynamic text” from the advanced settings in TranslatePress’ dashboard but this didn’t fix anything also.
]]>[14-May-2024 09:15:48 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WP_Translations::translate_entry() in C:\test\app\public\wp-content\plugins\translatepress-multilingual\includes\gettext\class-plural-forms.php:152
Stack trace:
#0 C:\test\app\public\wp-content\plugins\translatepress-multilingual\includes\gettext\class-gettext-manager.php(528): TRP_Plural_Forms->translate_plural('Sorry, you are ...', 'Sorrys, you are...', 1, NULL, Object(WP_Translations))
#1 C:\test\app\public\wp-content\plugins\translatepress-multilingual\includes\string-translation\class-string-translation-api-gettext.php(72): TRP_Gettext_Manager->add_missing_language_file_translations(Array, 'de_DE')
#2 C:\test\app\public\wp-includes\class-wp-hook.php(324): TRP_String_Translation_API_Gettext->get_missing_gettext_strings('')
#3 C:\test\app\public\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#4 C:\test\app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array)
#5 C:\test\app\public\wp-admin\admin-ajax.php(192): do_action('wp_ajax_trp_str...')
#6 {main}
thrown in C:\test\app\public\wp-content\plugins\translatepress-multilingual\includes\gettext\class-plural-forms.php on line 152
There is an error loading gettext strings in String Translation editor when a gettext string has ‘original_plural’ field specified in wp_trp_gettext_original_strings table. It seems that there have been changes in WordPress and translate_entry method no longer exists on get_translations_for_domain() result object. I am using WordPress 6.5.3
]]>return '<div id="my_map_123"></div><h4 class="posizione">Position on map</h4><iframe width="100%" height="450" frameborder="0" style="border:0" src="' . $map_url . '" allowfullscreen></iframe><br></br>';
}
]]>I’ve been stuck at this problem for some months now and cannot seem to find any answers from support – maybe someone has had the same problem and can help.
The problem persists if you use TranslatePress and WPBookingSystem plugins.
WPBookingSystem provides email invoices for bookings. The invoice sent using the local language is totally fine and without any bugs. The invoice sent in the second language (English), is bugged.
The date fields in the invoice have some strings that should not be seen by the end user. The strings are: #!trpst#trp-gettext data-
trpgettextoriginal=#!trpen#Oct#!trpst#/trp-gettext#!trpen# 2023
I’ve contacted WPBookingSystem support and they said that it probably has something to do with TranslatePress. They do not know what exactly.
NB! I have already checked the box “Disable translation for gettext strings” and also added the strings for the plugin to exclude them. Although I might not be putting the correct string.
Would anybody know what to do with this bug?
]]>We are using the Ultimate Member plugin with our website and we have been able to successfully translate almost all the strings associated to the plugin except for one.
On the accounts page (Delete account tab), there is a short description text there that doesn’t translate to the other language. The string has been translated on the backend in Gettext strings section (https://paste.pics/NCG4C) but it’s not reflecting on the front page (https://paste.pics/NCG5N)
Kindly advise on how we can resolve this. Thank you
]]>How can I edit the fields on an already created account?
When I then want to display the entry, I see the Custom Metadata Field, but they are shown with the header “Custom Metadata Field” which I would like to change to something else. Is that possible?
Here is a screnshot of a new entry:
https://ibb.co/WBvcCmG
Here is a screenshot of the same entry being edited, notice the last field is now Excerpt, so no longer seeing Custom Metadata:
https://ibb.co/LdFtKHn
And lastly, the template and how it shows “Custom Metadata Field” where I would like to show custom text:
https://ibb.co/mBk0kW6
In addition, I see that it matters when you create the user which field you choose first, as that determines the order they are shown. As I cannot edit it afterwards, it requires me to re-create the entries and remember to choose the same order each time.
All support appreciated, as if this works I think I will be buying this for use on my site.
<a href="myurl"> Link Text </a>
I tried replacing the Link Text as follows:
<a href="myurl"> __('Link Text','myplugin') </a>
but this results in an error.
What is the correct approach to localising the link text? Thanks
]]>