bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #64359] xgettext: "python-format" error in "Advanced String Formatt


From: Porrumentzio
Subject: [bug #64359] xgettext: "python-format" error in "Advanced String Formatting"
Date: Thu, 31 Aug 2023 07:19:39 -0400 (EDT)

Follow-up Comment #4, bug #64359 (project gettext):

Hi! We are facing this same problem in our project, LiberaForms [1]. We had to
use the format '%%-' and '-%%' to mark some variables in MarkDown (.md) files
and we use Gettext (via Pybabel) for i18n.

> You don't need it in all your strings. You only need it in the (few)
specific cases where xgettext has added it AND you are manually determining
that xgettext guessed wrong.

In our case, we have a great amount of strings with these variables which
Gettext identifies as python-format. Therefore, it would take us too long to
add each exception by hand. So, is there any way to apply this exception to a
whole directory?

[1] LiberaForms code repo: https://gitlab.com/liberaforms/liberaforms


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64359>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]