bugGNU gettext - Bugs: bug #67000, xgettext could warn about URLs...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #67000: xgettext could warn about URLs (and perhaps emails also) in translateable strings

Submitter:  Arsen Arsenović <arsen>
Submitted:  Tue 08 Apr 2025 01:38:06 PM UTC
   
 
Category:  Programmer tools Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Fri 04 Jul 2025 02:03:29 AM UTC, comment #1: 
Bruno Haible <haible>
Group administrator
Tue 08 Apr 2025 01:38:06 PM UTC, original submission:  

When preparing a .po file based on sources, xgettext could detect cases like:

_("GNU GPL version 3 <https://gnu.org/licenses/gpl.html>\n")

(as listed in the manual: https://www.gnu.org/software/gettext/manual/html_node/No-embedded-URLs.html ) and generate warnings about URLs embedded in translation strings.

This could also be done for emails perhaps?  Not sure if there's such a rule in general

I imagine it'd be enough to detect a few URL schemes---http, https, file, ftp, mailto, irc, ircs come to mind---if there's no general heuristic

Arsen Arsenović <arsen>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by arsen (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-07-04 haible StatusNone Fixed
        Assigned toNone haible
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code