Opened 15 months ago
Closed 4 months ago
#7142 closed feature request (reported-upstream)
Enable regex search on translate.wordpress.org
Reported by: | Presskopp | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Translate Site & Plugins | Keywords: | |
Cc: |
Description
Pretty please
Change History (11)
#3
@
15 months ago
Can you describe the problem that would be solved by enabling a regex search, with some examples?
#4
@
15 months ago
Well, I believe I can. I'm not asking this just for fun, but because I often find the need to use a regex, which is not currently possible. For instance, I frequently check translations to ensure they align with existing ones, but sometimes a more granular search is required. For example there are situations where I specifically want to find phrases that start with a specific text, especially when there are numerous results to sift through. While I don't have specific examples at the moment, trust me, there are many cases where this is necessary. I'll make an effort to provide some examples once I've gathered them.
#5
@
15 months ago
Example # 1: Let's say I want to search for any string starting with "Sorry" and including "post" ->
look what you get just going for "Sorry":
https://translate.wordpress.org/projects/wp/dev/de/default/?filters%5Bterm%5D=Sorry
#6
@
14 months ago
Example # 2: Searching for a string which only has 1 character ->
"I knew there was this 1 char unicode sign somewhere.."
https://translate.wordpress.org/projects/meta/wordpress-org/de/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=16156486
This ticket was mentioned in Slack in #polyglots by presskopp. View the logs.
7 months ago
#9
@
7 months ago
I would love that features like this could be developed upstream in GlotPress instead of only on translate.w.org, and than deployed to w.org.
#10
@
7 months ago
The ticket now has a GitHub issue on the GlotPress repo by @Presskopp:
https://github.com/GlotPress/GlotPress/issues/1816
For those who don't know what Regex is:
https://help.relativity.com/RelativityOne/Content/Relativity/Regular_expressions/Searching_with_regular_expressions.htm
https://www.php.net/manual/en/function.preg-match.php
https://www.w3schools.com/php/php_regex.asp