Opened 9 years ago

Closed 6 years ago

#1401 closed defect (bug) (fixed)

Warnings: Improve regex for URLs

Reported by: ocean90's profile ocean90 Owned by: ocean90's profile ocean90
Milestone: Priority: normal
Component: Translate Site & Plugins Keywords: needs-patch


New translation warning for Meta - Plugin Directory in Italian #it:
​*Warning:*​ The translation appears to be missing the following URLs:<strong>demo-plugin-name</strong>
The translation contains the following unexpected URLs:<strong>nome-del-plugin-dimostrativo</strong>
    ​*Original:*​ For example: "Demo Plugin Name" will become<strong>demo-plugin-name</strong>
    ​*Translation:*​ Per esempio: "Nome del plugin dimostrativo" diventerà<strong>nome-del-plugin-dimostrativo</strong>

we can probably just whitelist [a-z0-9/] as the last character or something

Change History (5)

This ticket was mentioned in Slack in #glotpress by ocean90. View the logs.

8 years ago

This ticket was mentioned in Slack in #glotpress by ocean90. View the logs.

7 years ago

#3 @garrett-eclipse
7 years ago

I just wanted to update the ticket to log another case on this as it's slightly different, basically in my case the URL check took into account the carriage return at the end of the URL and flagged it as the URL was missing. See screen;

I guess this string has a check to make sure the URL is present. And it's failing that check only because there's a carriage return at the end of the URL.
Permalink -

I see this as a Glotpress issue cause it's URL lookup is taking into account the carriage return.

Hope this is helpful.

#4 @ocean90
7 years ago

#2949 was marked as a duplicate.

#5 @ocean90
6 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 7314:

Translate, Custom Warnings: Add a whitelist for the last URL character to reduce the number of false-positives for mismatching URLs.

Fixes #1401.

Note: See TracTickets for help on using tickets.