[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64921] xgettext marks more strings as c-format in 0.22 than in 0.2
From: |
Anders Jonsson |
Subject: |
[bug #64921] xgettext marks more strings as c-format in 0.22 than in 0.21 |
Date: |
Thu, 23 Nov 2023 09:18:07 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?64921>
Summary: xgettext marks more strings as c-format in 0.22 than
in 0.21
Group: GNU gettext
Submitter: haaninjo
Submitted: Thu 23 Nov 2023 02:18:04 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 23 Nov 2023 02:18:04 PM UTC By: Anders Jonsson <haaninjo>
On l10n.gnome.org, some date strings started to be marked as fuzzy last week.
This was preceded by a Fedora update with new gettext version.
https://gitlab.gnome.org/Infrastructure/damned-lies/-/issues/461
Testing suggests that something happened between gettext 0.21 and 0.22 that
starts marking more strings as c-format. See attached file for a diff of
Shotwell strings extracted between xgettext 0.21 for Debian Stable and
gettext0.22.146-ba3815.
GDate strings that are treated as c-format makes it hard for languages that
uses different order of the tags. Other strings like "(Help)" were also marked
c-format which seems weird.
I first thought that only extraction of vala files was affected, but then I
saw https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2761 as well
for .c files. It was worked around there by the no-c-format flag.
Command used for extraction:
xgettext --files-from POTFILES.in --directory .. --from-code utf-8
--add-comments --output shotwell.pot --keyword=_ --keyword=N_
--keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dcgettext:2
--keyword=g_dngettext:2,3 --keyword=g_dpgettext2:2c,3
--flag=N_:1:pass-c-format --flag=C_:2:pass-c-format --flag=NC_:2:pass-c-format
--flag=g_dngettext:2:pass-c-format --flag=g_strdup_printf:1:c-format
--flag=g_string_printf:2:c-format --flag=g_string_append_printf:2:c-format
--flag=g_error_new:3:c-format --flag=g_set_error:4:c-format
--msgid-bugs-address https://gitlab.gnome.org/GNOME/shotwell/issues
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 23 Nov 2023 02:18:04 PM UTC Name: shotwell.diff Size: 3KiB By:
haaninjo
More strings marked as c-format in gettext 0.22
<http://savannah.gnu.org/bugs/download.php?file_id=55350>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64921>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #64921] xgettext marks more strings as c-format in 0.22 than in 0.21,
Anders Jonsson <=