oferwald
Forum Replies Created
-
Forum: Plugins
In reply to: [Transposh WordPress Translation] flag select widgetHi,
An excellent question (as I have an answer)
Just place the widget in uploads/transposh/widgets directory and it will be safe from future updatessee:
https://trac.transposh.org/changeset/5b45805805e7b7f9a513eb44c8ac21bc5bbd7ea3/transposh-wordpressForum: Plugins
In reply to: [Transposh WordPress Translation] Latest WordPress version 5.3Hello,
This is not a critical error, but a simple notice, which there are a few ways that you may fix:
1. Reduce your php logging level (mainly if you are on production)
2. Add the code to ignore this (either a @ or just check that the variable is set)
3. Are you using woo?Good luck
Forum: Plugins
In reply to: [Transposh WordPress Translation] Do not translate the pages automatically.Hi,
There is no option that differentiates between translations of posts and pages, you can disable auto translation on the complete site level.
Forum: Plugins
In reply to: [Transposh WordPress Translation] flag select widgetHello,
You may write your own widget, there are instructions at:
https://trac.transposh.org/wiki/WidgetWritingGuideGood luck, and feel free to share your code once you are done
Hello Fabio,
First, I want to thank you for your interest and message, they are clear concise and easy for me to work with. Not that its always possible for me to help, but I try.
Now – to this question. W3TC.
First, you are correct, no invalidation happens.
I have only added one Caching plugin support (Super cache) and there I wrote the invalidation my self.
Following your post I have found w3tc_pgcache_flush_post($post_id); and have added the code for doing the invalidation to the codebase (should be in the git soon).If you wish to test this, let me know, as I don’t have a good testing env for this.
However, just one note, the extra translation requests will happen, but as translations are cached, the translation servers won’t be bugged again.
Just contact us through the contact form on our site, we can continue the discussion by email from there.
Hello Fabio,
Thanks for your message, I did take a look at their filters to see if the implementation could really be as simple as that, however this is still not the case.
The main reason, they provide filters that can be run on each url, and an add urls action, this is quite nice for most use cases, but the translation use case is simple:
1. The plugin should provide an action with the original url (not that hard).
2. Transposh than should be able to add the new urls (with a lesser priority, normally). to the sitemap creation.
3. Currently the filters and actions for rankmath does not allow me to do that.To see how its done, take a look at transposh_3rdparty.php at the add_sm_transposh_urls function, where the action triggered by the sitemap generator allows me to access that generator and create the new urls.
A filter which would have allowed my to return an array could have been just as good.
Since I have no account on their support site, I suggest we continue with the broken phone for a while, just forward them my message π
Good luck,
Hi,
Indeed – this does look like an ajax issue,
If you will provide us with a url we’ll try and see what can be doneHi,
I think that those pop-ups are being generated by javascript, this makes enabling translation a bit harder (but not impossible)
In your case there is an element called “data-tipso”, you will need to add support for it either in the parser or where ever it is generated, I really don’t have an easy way of doing this.
Good luck
Hi,
Since I have never seen/heard of that plugin before, I am quite sure that the translated URLs are not added to the sitemap generated by it, although – depending on the design of that plugin, and assuming a proper hook is provided, one can probably do it using the already existing samples of code that exist in the current plugin for other sitemap plugins.
Forum: Plugins
In reply to: [Transposh WordPress Translation] get translated urlSame file,
The function is conveniently called:
get_original_urlI don’t really think that redis should be treated as an in-memory caching option.
Sure,
Just one problem, support was already added 8.5 years ago
https://trac.transposh.org/changeset/657make sure that pecl-memcached is installed in your system
Forum: Plugins
In reply to: [Transposh WordPress Translation] get translated urlThe function translate_url in transposh_utils is what you are looking for, it is not publicly exposed or to be normally used by users, but you can see the code there and do what you need done with it, good luck π