New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Research better solution for detecting languages with different word count #403
Comments
Maybe @swissspidy can help us here? Or @ocean90? |
I'd just add the
This can't be disabled.
I see the comment: |
This is not handled by the locale options? It looks like a lot redundant work if this needs to be added to every plugin which needs it. The locale is saving the starting day of the week, why not something like this? Couldn't we add this to the locale?
We could use the underlying internal translation function, but I think this is not recommended too.
Thanks for checking. Maybe I just overseen it, because it was collapsed ... |
Yeah why not. Found https://core.trac.wordpress.org/ticket/39733 and https://core.trac.wordpress.org/ticket/47511 that look related. |
I've added my comment to the trac ticket https://core.trac.wordpress.org/ticket/47511#comment:19 Summary: This solution is used on 65 plugins at the moment and it is used inconsistently. WooCommerce is using its own translation, but Jetpack is using the core translation. Although this string is added to GlotPress and remains unused. Solution could be to add this information to the |
There is no traction on the ticket and no action item for this issue, so I close this, as we cannot do anything here. If someone has a strong opinion on adding the ASB text domain, please re-open this issue. |
@Zodiac1978 I hope this is a solution :) |
The ticket got accepted and comes with WP 6.2, so we could use the new way to get the info. Re-opening. |
We are using a core string to detect languages with different word counts (like asian langauges) in:
antispam-bee/antispam_bee.php
Lines 1860 to 1873 in b21d41f
There are at least two problems with this approach:
Additionally there is problem with the translator comment which is not shown:
https://translate.wordpress.org/projects/wp-plugins/antispam-bee/stable/de/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=7264244&filters%5Btranslation_id%5D=61317391
The text was updated successfully, but these errors were encountered: